MYSQL各種錯誤彙總

2021-09-26 10:17:30 字數 1098 閱讀 1308

######1. 錯誤10060:

1.1 授權grant all privileges on *.* to 'root'@'%' identified by 'zxc123' with grant option;

1.2 重新整理flush privileges;

1.3select host,user,password from user;

1.4 關閉防火牆

centos 7.0預設使用的是firewall作為防火牆。

關閉firewall:

systemctl stop firewalld.service#停止firewall

systemctl disable firewalld.service#禁止firewall開機啟動

firewall-cmd --state#檢視預設防火牆狀態(關閉後顯示notrunning,開啟後顯示running)

1.5 出現密碼對但是錯誤:

改密碼 :update user set password = password('zxc123') where user = 'root';

######2. 錯誤2003 10038:

2.1netstat -an|grep 3306

來檢視mysql預設的埠3306是否開啟,允許哪個ip使用,如果你發現,前面有127.0.0.1,就說明,3306埠只能本機ip使用

所以,我們需要開啟mysql配置檔案vi /etc/mysql/mysql.conf.d/mysqld.cnf

將bind-address = 127.0.0.1 注釋

2.2 進入mysql,對遠端使用者進行授權,

grant all privileges on *.* to 'root'@'%' identified by '******';

這裡的root 是你遠端登入的使用者,******是你登入使用的密碼,然後可以在mysql資料 表中檢視到你這個使用者已經被新增到user表中

iOS 各種編譯錯誤彙總

1 error macro names must be identifiers yourproject prefix.pch 原因 因為你弄髒了預處理器巨集,在它處於的時候修改了它 解決方法 configiration選擇all configirations,清空它 然後分別重新定義你的debug,...

MySQL登入遇到的錯誤彙總

在登入mysql的過程中,遇到問題 經網上查詢之後,造成這種情況的一般是由密碼錯誤引起的,解決的辦法是重置密碼。1 修改配置檔案,免密登入mysql mac下mysql的配置檔案為my.cnf,在 mysqld 下新增skip grant tables目的跳過密碼驗證,然後重啟mysql the m...

各種編碼彙總

1.解釋url編碼是一種瀏覽器用來打包表單輸入的格式 url 只能使用 ascii 字符集來通過網際網路進行傳送。由於 url 常常會包含 ascii 集合之外的字元,url 必須轉換為有效的 ascii 格式。url 編碼使用 其後跟隨兩位的十六進製制數來替換非 ascii 字元 url 不能包含...