MySQL: How to grant permission to a database for a particular user.

  • Login to mysql
  • grant select, insert, update, delete, create, drop, create routine ,  index, alter, create temporary tables, lock tables on db_name.* to user_name@localhost identified by 'password';
  • Thats it. Your user now has the permission to access the database.

Comments

Popular posts from this blog

How to add Startup Script for MySQL or any other services in Centos/RedHat

Ruby on Rails Installation on Windows 7