mysql常见问题
1 ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded:
linux上连接docker上面的mysql,安装客户端: sudo yum install mysql 设置环境变量: export PATH=$PATH:/path/to/mysql/bin 使用root用户登录 ALTER USER 'your_username' IDENTIFIED WITH 'mysql_native_password' BY 'your_password'; 只需要替换your_username和your_password;
2 查看错误日志
1.获取错误日志文件 SHOW VARIABLES LIKE 'log_error%'; 2 打开这个文件 cat vi