1.修改root密码(其余用户相似)mysql
试过网上看的一些 在mysql数据库执行 update user set password='新密码' where user='root' 执行说找不到字段,猜测可能之前老版本跟新版本数据表结构不同了,因此看了下表,应该是authentication_string字段 update user set authentication_string='新密码' where user='root'。sql
2.局域网或者远程用户没法访问数据库
看了下有些描述的比较麻烦,修改ini配置文件什么的,user表的第一个字段Host,默认是localhost,改为"%"便可,表明全部均可以访问。string