Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to check user grant in mysql

-- to grant all privileges on 1 database and all its table
GRANT ALL PRIVILEGES ON database_name.* TO 'user'@'localhost';
-- to grant all privileges on all databases and all their respective tables
GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #user #grant #mysql
ADD COMMENT
Topic
Name
6+6 =