adspace


How to give user privilages for a db. Login as root. Switch to the mysql db. Grant privs. Update privs.

Answer Posted / Akash Kumar Varshney

To give user privileges for a database in MySQL, you need to login as root, switch to the mysql database, grant privileges using GRANT command, and update privileges using FLUSH PRIVILEGES command. Here's an example: `mysql -u root; GRANT ALL PRIVILEGES ON your_database_name.* TO 'username'@'localhost'; FLUSH PRIVILEGES;`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current mysql version?

1105


What is current version of mysql?

1084


How to Change a users password from unix shell.

1223


Which statement is used in a select query for partial matching?

1247