Creating a new MySQL user by Lloyd Armbrust


This will create a new database and user through the MySQL console:

  1. Download an SSH client (like putty) and log into your server.
  2. Enter the MySQL console.
    mysql -u root -p
  3. Enter your MySQL root password
  4. Create a new database by entering:
    create database your_database_name;
  5. 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.

Leave a Reply


It’s Called Web Design is sponsored by Seeing Interactive and powered by WordPress
Entries (RSS) and Comments (RSS).
53 queries. 0.421 seconds.