mysql user grants

Solutions on MaxInterview for mysql user grants by the best coders in the world

showing results for - "mysql user grants"
Sara
07 May 2017
1-- Grants / privileges list
2SELECT * FROM information_schema.user_privileges;
3SELECT CONCAT('SHOW GRANTS FOR ''',user,'''@''',host,''';') FROM mysql.user;
4
5-- Grant a user
6/*  ALL PRIVILEGES  All privileges
7    CREATE          Create databases and tables
8    DROP            Drop databases and tables
9    DELETE          Delete rows from a specific table
10    INSERT          Insert rows into a specific table
11    SELECT          Read a database
12    UPDATE          Update table rows   */
13GRANT SELECT, UPDATE ON db_name.table_name TO 'my_user'@'localhost';
14GRANT SELECT ON *.* TO 'my_user'@'localhost';
15GRANT ALL PRIVILEGES ON db_name.* TO 'my_user'@'localhost';
16
17--Display user grants
18SHOW GRANTS FOR 'my_user'@'localhost';
queries leading to this page
mysql create database user and grant accessmysql grant connect privilegesmysql create user and grant access privileges to user step by stepmysql create user with grant all privilegesmysql grant grant privilegesroot privileges mysqlmysql user and grant privilegesshow mysql privilegesmysql see privilegesmysql grant privilegescreate database 2cusers 2cgrant in mysqlmysql user privilegesmysql privileges connectmysql grant user access to databasemysql set grant userhow to see my privileges in mysqlmysql view privilegesgrant privileges mysql terminalhow to grant privileges to user in mysqlmysql user database grant typesprivileges in mysql databasemysql db privilegeshow to show grants for users mysqlmysql grant all privileges to user to databasehow to grant a user privileges to a db in mysqlmysql user privileges create databaseprivileges mysqlmysql command line create user grant privilegesgrant mysql userhow to give all privileges to a database in mysqlmysql grant connect to user on databaseshow grants of mysql usermysql command line check your privilegesmysql create user and grant full access to databasemysql create database and user grant all privilegesmysql show grants for all userswhat mysql statement show privilegesgrant user access to database mysqlmysql privileges tableallow mysql file privilegesgrant privileges mysqlmysql privilegesgrant access to user mysql mysql grant user access to all databasesmysql create user and grant all privilegesmysql show privilegeshow to give privileges to database in mysqlmysql grant usermysql grant database create privilegesgrant 25 to mysql usergrant privileges to user in mysqlshow user grants mysqlcreate mysql user and grant privilegesmysql grant create database privilegescustom grant privileges mysql usercreate user and grant privileges in mysqlgrant privileges to other user mysqlmysql show grants for user in databasemysql 5 7 create user with grantadding a new user to mysql and grant privilegescreate new user in mysql and grant privilegesmysql create and grant all privilegescreate mysql user 2c grant privileges 2c and create databases in mysql mysql user database grant on a certain databasemysql query privileges for usermysql grant access to database for userhow to see privileges of a database 2b in mysqlwrite privileges mysqlget privileges for a user mysqlmysql privileges checkmysql check grants for usermysql create database and grant user accsesprivileges in mysqlmysql grant all privileges to user identified by 27passwordmysql grant privileges to a databasemysql server privilegesmysql create user grant accessmysql privileges on table usercreate user mysql grant databasegrant privileges mysql usergrant all privileges mysqlmysql create user to access dbuser privileges table mysqlmysql create user and grant access privileges to usermysql give user grant privilegesmysql grant user permissionsmysql create full access usermysql grant access for user to databasemysql create database and grant all privilegesdatabase privileges mysqlmysql create database and grant all privileges commandcreate user mysql and grant all privilegesmysql connection privilegesmysql user grantsmysql show user grantsmysql privileges explainedmysql user database granthow to grant all privileges to user in mysqlmysql create user with grant optiongrant access user to a table mysqlmysql create user and grantmysql create user database grant privileges to databasemysql show grants for user on databasegrant read privileges mysqlhow to give all privileges to database in mysqlprivileges mysql grantshow grants for a particular user in mysqluser privileges in mysqlmysql account privilegesmysql create user with password and grant access to databasehow to create mysql user accounts and grant privilegeshow to grant privileges in mysqlgrant mysql user access to databasemysql user grants