This one-liner shows how to create a new MySQL user, grant permissions and set the password:
GRANT ALL PRIVILEGES ON mydb.* To 'myuser'@'%' IDENTIFIED BY 'mypassword';
Then run:
FLUSH PRIVILEGES
And that’s it.
© 2024 | Impresser Pty Ltd T/A AGIX, All Rights Reserved | ABN 32130229257 | Terms and Conditions | Linux & Cybersecurity in South Australia | Supporting Business Objectives