标签:localhost password identified 数据库 option
新建用户,并授予所有权限:
grant all privileges on *.* to ‘username‘@‘localhost‘ identified by ‘password‘ with grant option;
进入mysql数据库,查询user表和db表可见权限设置
user mysql;
select * from user where user=‘username‘ and host=‘localhost‘ \G;
select * from db \G;
本文出自 “ThinkPHP学习笔记” 博客,谢绝转载!
标签:localhost password identified 数据库 option
原文地址:http://maplebb.blog.51cto.com/2547849/1635960