grant SELECT on *.* to 'visitor'@'%' identified by ‘123456';
注:mysql5.6版本要加这个,不然本地创建的数据库无法登录
grant SELECT on *.* to 'visitor'@'localhost' identified by ‘123456';
此篇博客介绍了在MySQL 5.6环境下如何为名为'visitor'的用户从%远程主机授予SELECT所有表的权限,以及为什么在本地创建的数据库需要特别注明localhost。
grant SELECT on *.* to 'visitor'@'%' identified by ‘123456';
注:mysql5.6版本要加这个,不然本地创建的数据库无法登录
grant SELECT on *.* to 'visitor'@'localhost' identified by ‘123456';
1886

被折叠的 条评论
为什么被折叠?