How to Grant Privileges to Users in MySQL
MySQL stores all its username and password data in a special database named mysql. You can add users to this database and specify the databases to which they will have access with the grant command, which has the syntax.
sql> grant all privileges on database.* to username@”servername” identified by ‘password’;
The next step is to write the privilege changes to the mysql.sql database using the flush privileges command.
Recent Comments