作者Agust (agust)
看板Database
标题[请益]网站进不去请益
时间Thu Jun 21 01:45:33 2018
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://webptt.com/cn.aspx?n=bbs/Database/M.1529516737.A.3DC.html
※ 编辑: Agust (114.25.227.151), 06/21/2018 01:52:39
1F:→ iFEELing: 你是mysql root还是一般使用者? 06/22 00:09
2F:→ iFEELing: 可以连进去DB的话就从DB里下 repair table 06/22 00:10
3F:→ iFEELing: 从db外面下就要找一下指令怎麽用... 06/22 00:10
4F:→ iFEELing: 如果你什麽都不知道 那找你的 DBA 帮你做比较安全.... 06/22 00:11
5F:→ iFEELing: 用skip-grant-tables是可以让你用ROOT@localhost进去 06/22 00:14
6F:→ iFEELing: 不过修自己的表也不一定得用root吧..... 06/22 00:20