關於Navicat連不上mysql原因

2021-08-24 20:44:50 字數 671 閱讀 2311

1.在阿里雲伺服器開放3306埠

2.在my.ini配置加bind-address = 127.0.0.1 改為 bind-address = 0.0.0.0;

3.在mysql客戶端執行命令:grant all privileges on *.* to 'root'@'%' identified by 'root密碼' with grant option;

4.centos7開放3306埠

開啟埠:systemctl start firewalld

開放埠:

//--

permanent

永久生效

,沒有此引數重啟後失效

firewall

-cmd--

zone=public--

add-

port=80/tcp--

permanent

firewall

-cmd--

zone=public--

add-

port=1000

-2000/tcp--

permanent

重新載入:firewall-cmd --reload
參考centos7開放埠:centos7開放埠

linux php 增加mysql 關於Mysql

mysql是乙個,由瑞典mysql ab 公司開發,屬於 oracle 旗下產品。mysql 是最流行的關係型資料庫管理系統之一,在 web 應用方面,mysql是最好的 rdbms relational database management system,關聯式資料庫管理系統 應用軟體之一。my...

linux下 關於Navicat連線不上資料庫

錯誤 1045 錯誤 1130 做完之後要重啟mysql 或者重啟伺服器 在linux新安裝的mysql資料庫只會有你安裝時候的使用者,一般是root 密碼也是root,在mysql的user表裡面一般會有兩條資料,兩條資料只有伺服器名字不同,乙個是localhost 乙個是127.0.0.1,所以...

關於cuteftp連不上Linux虛擬機器的問題

關於 cuteftp 連不上linux 虛擬機器的問題。1 查詢是否安裝了 vsftpd rpm qa grep vsftpd,rpm安裝包後安裝 這裡顯示 vsftpd 1.1.3 82 啟動vsftpd service vsftpd start 3 關閉linux防火牆的service ipta...