内容参考网上的文章,此处只做记录. 一.can‘t connect to MySql server on ‘192.168.X.X’ 这是因为mysql端口被防火墙拦截,需用linux执行如下指令:(已试过可以) 1.#/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 2.#/etc/rc.d/init.d/iptables save 3.#/etc/init.d/iptables restart 4.查看端口是否开启#/etc/init
一.can‘t connect to MySql server on ‘47.93.X.X’ 这是因为mysql端口被防火墙拦截,需用linux执行如下指令: 1.#/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 2.#/etc/rc.d/init.d/iptables save 3.#/etc/init.d/iptables restart 4.查看端口是否开启#/etc/init.d/iptables status 二.1130-h
[root@localhost init.d]# pwd /etc/init.d [root@localhost init.d]# mysql -u root -p Enter password: ERROR (): Access denied for user 'root'@'localhost' (using password: YES) [root@localhost init.d]# mysql -u -p Welcome to the MySQL monitor. Commands e
问题描述: 本机为win10,mysql安装在阿里云(Ubuntu系统)上,本机使用Navicat远程连接mysql,遇到一些坑,求助于阿里云,最终解决,特此记录一下! 安装mysql sudo apt-get install mysql-server mysql-client #然后按照提示输入密码,默认用户为root 管理服务 启动 service mysql start 停止 service mysql stop 重启 service mysql restart 允许远程连接 找到mysq
解决阿里云MySQL远程连接不上的问题:step1:1.修改user表:MySQL>update user set host = '%' where user = 'root'; 2.授权主机访问:MySQL>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '你的密码' WITH GRANT OPTION; 3.刷新权限:MySQL>FLUSH PRIVILEGES;4.退出:MySQL>EXIT; step2:查看端
1.MySQL端口 因为上一篇文章我就已经给MySQL新建了一新用户,且赋予了远程连接数据库的所有权限(GRANT ALL PRIVILEGES ON *.* TO 'newuser' @ '%' IDENTIFIED BY 'newpass' WITH GRANT OPTION;) 且错误是 Cant't connect to MySQL.... 而不是1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL se
Navicat连接不上MySQL 8.0 更改加密方式 1.先通过命令行进入mysql的root账户: C:\Windows\system32> mysql -uroot -p 2.更改加密方式: mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;Query OK, 0 rows affected (0.10 sec) 3.更改密码: mysql> ALTER USER