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