mysql给数据库授权 GRANT ALL PRIVILEGES ON

mysql> grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by ‘连接口令’;

 

show grants for mustang@'9.123.156.124';

  

GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' IDENTIFIED BY 'NEUTRON_DBPASS';

GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' IDENTIFIED BY 'NEUTRON_DBPASS';

 

posted @ 2015-09-22 12:41  juandx  阅读(7598)  评论(0编辑  收藏  举报