Kroko Just another WordPress weblog

April 14, 2008

How do I add a user to MySQL?

Filed under: Uncategorized — admin @ 11:08 am

mysql -u root -p
(here I enter 'my_root_password' to get through the mysql prompt)

create database my_database;

GRANT ALL PRIVILEGES ON my_database.* TO 'my_user'@'localhost'
IDENTIFIED BY 'my_password' WITH GRANT OPTION;

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Powered by WordPress