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 SSH to remote server without entering password each time.

How to redirect a URL in NGINX

Ruby on Rails Installation on Windows 7