授权给指定用户,使用navicat在其他ip都可以连接linux服务器上的mysql库

grant all privileges on ao.* to 'tony'@'localhost' identified by '123456';

在ao库中所有表. 同意 ,授权     给tony,在本地ip  鉴定码 是123456

posted @ 2016-05-03 20:10  小庄啊  阅读(549)  评论(0编辑  收藏  举报