Forum Moderators: coopster

Message Too Old, No Replies

add a user to a mysql DATABASE.

         

duckxtales

4:04 pm on Feb 1, 2007 (gmt 0)

10+ Year Member



Hi,

what is the mysql command to create a user and add it to an exsisting database?

thx

mcibor

4:18 pm on Feb 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use:

GRANT SELECT, INSERT, UPDATE, DELETE ON database.* TO 'user'@'localhost' IDENTIFIED BY 'password'

or GRANT ALL
or ON database.table

Hope this helps

More here
[dev.mysql.com...]