BCS Create MySQL User

Times may arise when you will need create a new MySQL user. Two known methods are to gain access via the mysql or mysqld commmand.

[codesyntax lang=”text”]

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;

[/codesyntax]

Simply replace the user name and password using this script and a new user will be added.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply

Your email address will not be published. Required fields are marked *