【问题标题】:Mysql error : Error Code: 126. Incorrect key file for table '/tmp/#sql_52e_0.MYI'; try to repair itMysql错误:错误代码:126。表'/tmp/#sql_52e_0.MYI'的密钥文件不正确;尝试修复它
【发布时间】:2013-12-09 10:01:56
【问题描述】:

当我在查询下运行时,它给我的错误是
Error Code: 126. Incorrect key file for table '/tmp/#sql_52e_0.MYI'; try to repair it

查询:

Select id, first_name, last_name, communication_email,birthday,group_concat(email_template_id) as T from uzer
LEFT join user_email_preference ON uzer.id = user_email_preference.user_id    
group by user_id limit 1

当我从查询中删除 group_concat() 函数时,它运行完美,没有错误,不知道为什么?

我用谷歌搜索错误,发现如果你在tmp/ 中没有足够的信息,那么它只会给出这种类型的错误。但是我在这里只获取了一个 reord,而且当我在查询中有 group_concat() 时,它只会给我错误。

【问题讨论】:

    标签: mysql tmp


    【解决方案1】:

    尝试

    "REPAIR TABLE `uzer`"
    

    和'user_email_preference'

    更多详情:mysql repair

    【讨论】:

    • 根据错误 tmp/ 文件夹已满。我已经清空了文件夹,尽管它给了我错误。
    • 你能重新创建你的 tmp/ 目录吗?
    【解决方案2】:

    错误 126 是应用程序运行时错误。通常,当应用程序尝试从特定 DLL 文件重新获取信息但此文件在您的计算机上不再存在时,会发生此错误。

    • 恢复丢失或删除的 DLL 文件
    • 从 Windows 7 安装光盘展开 DLL 文件映像
    • 使用 Reginout 或 Ccleaner 修复 Windows 注册表
    • 重新注册 DLL 文件
    • 删除与 SQL Server 相关的注册表项
    • 卸载并重新安装相关程序

    谢谢

    【讨论】:

      猜你喜欢
      • 2014-01-13
      • 2014-12-11
      • 2011-04-30
      • 2013-11-18
      • 2015-09-25
      • 2013-02-05
      • 2012-08-02
      • 2012-11-28
      • 2013-09-30
      相关资源
      最近更新 更多