MySQL常見錯誤解決方案

2022-03-21 08:12:31 字數 1014 閱讀 4376

1、mysql運算元據庫報1049錯誤的解決辦法:

create database 資料庫名;

建立乙個資料庫即可解決,具體原因還未知

2、 linux下配置mysql開機自啟動

命令echo "service mysqld start" >> /etc/rc.local  或者進入/etc/目錄,直接vim rc.local編輯rc.local檔案,在最後一行新增「service mysqld start」,儲存退出

3、mysql安裝錯誤error 2002 (hy000)解決辦法

問題解決過程,執行以下命令,看提示資訊

#/usr/bin/mysql_install_db

執行 #/usr/bin/mysqld_safe & 執行完成mysql2002錯誤就沒有了,接著簡單設定mysql密碼 #/usr/bin/mysqladmin -u root password 'new-password' 高階設定 alternatively you can run: #/usr/bin/mysql_secure_installation

4、mysql遠端鏈結1130錯誤

在本機登入mysql後,更改 「mysql」 資料庫裡的 「user」 表裡的 「host」 項,從」localhost」改稱'%'。。

mysql -u root -p 

mysql>use mysql;

mysql>select 'host' from user where user='root';

mysql>update user set host = '%' where user ='root';

mysql>flush privileges;

mysql>select 'host' from user where user='root';

Ibatis中常見錯誤解決方案

在ibatis 的sqlmap或者sqlmapconfig配置檔案中如果出現以下錯誤資訊 referenced file contains errors for more information,right click on the message in the problems view and ...

mysql 10055 錯誤解決方案

環境 windows 2003 iis php mysql,伺服器執行一段時間後,提示can t connect to mysql server on localhost 10055 錯誤。無法重啟mysql服務,提示埠被佔。檢查發現埠並沒被佔。重起伺服器後恢復正常。但過一段時間以後,又出現此錯誤。...

MySQL 1045 錯誤 解決方案

mysql error 1045 28000 access denied for user root localhost using password yes 出現這個問題是因為沒有許可權訪問root賬號,或者說你的密碼錯誤了。2 新增免密碼登入語句 skip grant tables 然後儲存退出...