mysql设置密码遇到的坑
设置数据库密码时,报错 ... Failed! Error: The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
解决办法:进入mysql安装路径进入bin 打开mysql.exe,输入以下命令 先刷新一下权限表。
mysql> flush privileges;
在终端启动mysql,输入mysql_secure_installation命令设置数据库密码时
... Failed! Error: Can't find any matching row in the user table
可以在mysql.exe这个文件中直接设置密码
在mysql.exe中输入
set password for root@localhost=password('你的密码');
Failed to save password Error code: -34018 旧版本Navicat Premium 15.0.20没有这个问题,新版本保存不了数据库密码。之前的版本是15.0.22好像,现在下了12.0.16版本就好了