Quantcast
Viewing all articles
Browse latest Browse all 6

mysql’s useful … sqls

Create a new user: 

grant all on mydb.* to myuser@localhost identified by 'mypass';

show grants for ‘username’@'localhost’

revoke all privileges on db_name.* from ‘username’@'localhost’

drop user ‘username’@'localhost’


Viewing all articles
Browse latest Browse all 6

Trending Articles