Search
 
SCRIPT & CODE EXAMPLE
 

SQL

grant revoke privileges to mysql username

#in SQL execute
#GRANT type_of_permission ON database_name.table_name TO 'username'@'localhost';
GRANT ALL PRIVILEGES ON * . * TO 'username'@'localhost';
#reload all the privileges
FLUSH PRIVILEGES;

#Show Privileges
SHOW GRANTS FOR 'username'@'localhost';

#Revoke Privileges
REVOKE type_of_permission ON database_name.table_name FROM 'username'@'localhost';
Comment

mysql grant all privileges to a user

GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';
Comment

PREVIOUS NEXT
Code Example
Sql :: view column data type sql 
Sql :: alter table column change data type to text mysql 
Sql :: refresh postgres config 
Sql :: oracle list columns 
Sql :: postgresql blocked on mac 
Sql :: stpop start psql server 
Sql :: how to edit table name in mysql 
Sql :: how to export database mysql terminal ubuntu 
Sql :: postgresql calculate age from birthdate 
Sql :: how to remove tables from postgresql 
Sql :: to date oracle with time 
Sql :: string to date postgres 
Sql :: update part of a string in mysql 
Sql :: rename column oracle 
Sql :: search stored procedures by name 
Sql :: create table oracle 
Sql :: mysql command line connect 
Sql :: alter table engine mysql 
Sql :: oracle user last connected 
Sql :: how to show all users in mysql 
Sql :: postgresql reset auto increment 
Sql :: oracle compile whole schema 
Sql :: mariadb show tables 
Sql :: update mysql centos 
Sql :: sql decrement value by 1 if not null or zero 
Sql :: oracle failed login attempts 
Sql :: sql sum if 
Sql :: sql set auto increment back to 0 
Sql :: sql server utc to local 
Sql :: operator does not exist: integer = text 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =