看板 Database 關於我們 聯絡資訊
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => INSERT INTO `twbio_ db`.`twbio_stats` ( ip_address, visit_times, browser, system, language, area, referer_domain, referer_path, access_url, access_ time) VALUES ('127.0.0.1', '3', 'Unknow browser', 'Windows NT', 'zh-TW', 'LAN', '', '', '/index.php', '1529400272') ) [2] => Array ( [error] => Table '.\twbio_db\twbio_stats' is marked as crashed and should be repaired ) [3] => Array ( [errno] => 145 ) ) 這兩天正在使用一個測試版的網站(免費),也建立了自己的資料庫, 可能不小心按到設定跑掉了! 現在網站上不去 , 請益要如何解? 看起來這系統是 Windows NT Index. Php 帳號是 1529400272 ? twbio_DB = twbio database twbio_stats = twbio 的狀態? ( [error] => Table '.\twbio_db\twbio_stats' is marked as crashed and should be repaired ) [3] => Array ( [errno] => 145 ) ) 錯誤=表單twbio 是顯示錯誤的且應該要維修 請益維修方式? ------------------------------------------------------------- 剛剛版上朋友建議: is marked as crashed and should be repaired 意思被標記為墜毀,並應 及時修理 這個表內容已經壞了,數據頻繁查詢更新stats表造成的索引錯 誤。那麼到網站後台直接針對ecs_stats表選擇修復,然後又優化,此問題 就可以解決! 請問大家有到網站後台直接針對某個表選擇修復然後又優化的經驗嗎? ----------------------------------- 剛剛有爬文一下 解決方式: # mysql -uroot -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) # mysql ERROR 1045 (28000): Access denied for user 'mysql'@'localhost' (using password: NO) 解釋:沒有ROOT密碼權限。 (網路爬文ERROR 1045 (28000): Access denied for user 'mysql'@'localhost' (using password: NO) ,是因為如果沒有修改pid的路徑,這裡根本登入不進去,何談修改密碼。因為mysql始終無法創建pid文件)解決方式如下: /etc/init.d/mysql stop ( 或service mysqld stop ) /usr/bin/mysqld_safe --skip-grant-tables 再開一個SSH..... etc...! 請問有人有處理過這樣的經驗嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.25.227.151 ※ 文章網址: https://www.ptt.cc/bbs/Database/M.1529516737.A.3DC.html ※ 編輯: Agust (114.25.227.151), 06/21/2018 01:52:39
iFEELing: 你是mysql root還是一般使用者? 06/22 00:09
iFEELing: 可以連進去DB的話就從DB裡下 repair table 06/22 00:10
iFEELing: 從db外面下就要找一下指令怎麼用... 06/22 00:10
iFEELing: 如果你什麼都不知道 那找你的 DBA 幫你做比較安全.... 06/22 00:11
iFEELing: 用skip-grant-tables是可以讓你用ROOT@localhost進去 06/22 00:14
iFEELing: 不過修自己的表也不一定得用root吧..... 06/22 00:20