Creating a new MySQL user by Lloyd Armbrust
This will create a new database and user through the MySQL console:
- Download an SSH client (like putty) and log into your server.
- Enter the MySQL console.
mysql -u root -p
- Enter your MySQL root password
- Create a new database by entering:
create database your_database_name;
- Type the following code into the console:
GRANT ALL PRIVILEGES ON your_database_name.* TO 'your_user_name'@'localhost' IDENTIFIED BY 'your_password' WITH GRANT OPTION;
Remember, MySQL will let you hit the “enter” key and will not submit your query until you include a semi-colon.
If you already have the database created, then skip the forth step.