mysql> CREATE USER 'user_name'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'localhost' WITH GRANT OPTION;
mysql> CREATE USER 'user_name'@'%' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'%' WITH GRANT OPTION;
for .NET Developers, Cloud Architects, SQL Server Performance Tuning, Devops specialist and Azure DevOps.
Showing posts with label user permission. Show all posts
Showing posts with label user permission. Show all posts
Sunday, February 18, 2018
mysql grant privileges
Subscribe to:
Posts (Atom)