MySQL 崩溃表无法保存结果集

发布于 2024-08-15 02:44:38 字数 295 浏览 1 评论 0原文

我有一张损坏的桌子,我不确定如何修复。这是我的错误跟踪的转储:

Warning: mysql_query(): Unable to save result set in 
    C:\Users\programmer\workspace\DBMigration\functions.php 
    on line 10 MySQL Query Failed! 1194: Table 'exp_weblog_titles' is marked as 
    crashed and should be repaired

I have a crashed table which I am unsure how to repair with. Here is the dump of my error trace:

Warning: mysql_query(): Unable to save result set in 
    C:\Users\programmer\workspace\DBMigration\functions.php 
    on line 10 MySQL Query Failed! 1194: Table 'exp_weblog_titles' is marked as 
    crashed and should be repaired

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

信愁 2024-08-22 02:44:38

如果是 MyISAM 表:

  1. 备份 exp_weblog_titles.* 文件,
  2. 将 exp_weblog_titles.MYD 和 exp_weblog_titles.MYI 复制到 D:\work 或任何工作目录,
  3. 运行 myisamchk D:\work\exp_weblog_titles --repair
  4. 成功,您可以将表复制回 mysql数据目录
  5. 失败 - 你会遇到不同的问题

If that is MyISAM table:

  1. make backup of exp_weblog_titles.* files
  2. copy exp_weblog_titles.MYD and exp_weblog_titles.MYI to D:\work or any working directory
  3. run myisamchk D:\work\exp_weblog_titles --repair
  4. on success you may copy table back to mysql data directory
  5. on failure - you will get different problem
忆离笙 2024-08-22 02:44:38

我遇到了和你类似的问题。 REPAIR 命令在我的情况下帮助我 - http://dev.mysql .com/doc/refman/5.0/en/repair-table.html

I had a problem similar to your. REPAIR command help me in my case - http://dev.mysql.com/doc/refman/5.0/en/repair-table.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文