数据库客户端安装,解决本机无法连接远程数据库问题
yum install mysql -y 客户端安装
mysql -h192.168.43.119 -uroot -p1234 数据库连接
https://blog.csdn.net/weixin_34302798/article/details/92392496
mysql8.0时报错:错误号码2058
https://jingyan.baidu.com/article/7908e85cda0de1af481ad22c.html
查看mysql的安装路径
https://blog.csdn.net/qq_33326449/article/details/80247208
远程授权
普通用户
create user 'wangxy'@'%' identified by 'wangxy';
grant all privileges on *.* to wangxy@'%' with grant option;
ALTER USER 'wangxy'@'%' IDENTIFIED WITH mysql_native_password BY 'wangxy';
root用户
create user 'root'@'%' identified by 'wangxy';
grant all privileges on *.* to root@'%' with grant option;
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'wangxy';
flush privileges;
mysql连接的时候报 ERROR 1129
mysqladmin flush-hosts -h 127.0.0.1 -uroot -p
http://blog.itpub.net/12679300/viewspace-1318766/
登录不显示数据库名:
https://blog.csdn.net/fy_lin/article/details/106799229 参考链接
使用命令show grants for root;
可以显示root用户的权限。
GRANT ALL PRIVILEGES ON *.* TO root;
错误代码 plugin sha256_password could not be loaded:
https://blog.csdn.net/qq_41538097/article/details/106905416
ERROR 1130:mysql 1130连接错误的有效解决方法 - 我是司 - 博客园 (cnblogs.com) 1130
navicat 连接mysql错误 1129 host‘x’is blocked
现该问题的原因:
同一个ip在短时间内产生太多中断的数据库连接而导致的阻塞(超过mysql数据库max_connection_errors的最大值)
解决方法: 使用mysqladmin flush-hosts命令, 命令格式如下:
mysqladmin flush-hosts -h 127.0.0.1 -uroot -p