權(quán)限:
ALL/ALTER/CREATE/DROP/SELECT/UPDATE/DELETE
數(shù)據(jù)庫(kù):
*.* 表示所有庫(kù)的所有表
test.* 表示test庫(kù)的所有表
test.test_table 表示test庫(kù)的test_table表
登陸主機(jī):
% 表示所有ip
localhost 表示本機(jī)
192.168.1.1 指定IP
grant all on test.* to user@localhost identified by 'password';