`
badboy_blue
  • 浏览: 48930 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

mysql异常Got error 134 from storage engine

阅读更多

mysql碰到一个奇怪的问题,执行查询没有语法错误,但是抛异常:

java.sql.SQLException: Got error 134 from storage engine

 

错误原因

Even though the MyISAM table format is very reliable (all changes to a table made by an SQL statement are written before the statement returns), you can still get corrupted tables if any of the following events occur:

  • The mysqld process is killed in the middle of a write.

  • An unexpected computer shutdown occurs (for example, the computer is turned off).

  • Hardware failures.

  • You are using an external program (such as myisamchk ) to modify a table that is being modified by the server at the same time.

  • A software bug in the MySQL or MyISAM code.

Typical symptoms of a corrupt table are:

  • You get the following error while selecting data from the table:

    Incorrect key file for table: '...'. Try to repair it
    
  • Queries don't find rows in the table or return incomplete results.

来自:

http://dev.mysql.com/doc/refman/5.0/en/corrupted-myisam-tables.html

 

解决:

CHECK TABLE 表名

REPAIR TABLE 表名

 

 

分享到:
评论

相关推荐

    mysql执行sql文件报错Error: Unknown storage engine‘InnoDB’的解决方法

    然而,当你尝试执行一个依赖于InnoDB存储引擎的SQL文件时,如果系统报出“Error: Unknown storage engine 'InnoDB'”的错误,这意味着MySQL服务器无法识别或不支持InnoDB引擎。这通常是由于MySQL配置不当或InnoDB...

    MySQL 5.6 InnoDB Storage Engine Architecture

    MySQL 5.6 InnoDB Storage Engine Architecture

    Unknown system variable 'storage_engine'

    标题中的“Unknown system variable 'storage_engine'”是一个MySQL数据库错误信息,表示系统未找到名为'storage_engine'的变量。这个变量在MySQL 5.7版本中被弃用,替换为'innodb_storage_engine'。这通常是由于旧...

    SequoiaSQL - MySQL Storage Engine

    SequoiaSQL - MySQL Storage Engine is a distributed MySQL storage engine. It currently supports SequoiaDB 3.x as the backend database, and it will be extended to multiple databases such like MongoDB/...

    MYSQL无法启动提示: Default storage engine (InnoDB) is not available的解决方法

    在my.ini(linux下/etc/my.cnf)加上skip-...看下mysql目录的错误日志: 引用 090613 10:15:27 [ERROR] Default storage engine (InnoDB) is not available 090613 10:15:27 [ERROR] Aborting 090613 10:15:27 [Note] C:\...

    mysql提示got timeout reading communication packets的解决方法

    user: ‘root’ host: `localhost’ (Got timeout reading communication packets) MYSQL server has gone away 引起这个原因是不可怕的.原因是更改了系统的断开时间. mysql>show gloable variables like “%time...

    innodb storage engine architecture.png

    innodb storage engine architecture innodb存储引擎架构

    MySQL定义异常和异常处理详解

    其中,`condition_name`是你为异常起的名称,`condition_type`则指明异常的类型,通常用`SQLSTATE`或`mysql_error_code`来指定具体的错误代码。`SQLSTATE`是一个5字符的字符串,而`mysql_error_code`是MySQL的数字...

    Mysql数据库全量和增量备份

    MySQL 数据库全量和增量备份 MySQL 数据库全量和增量备份是指对 MySQL 数据库进行的完整备份和增量备份,以确保数据的安全和可靠性。本篇文章将对 MySQL 全量和增量备份进行详细的介绍,包括 binlog 日志的说明、...

    MYSQL ERROR1405 解决方案

    ### MySQL Error 1405 解决方案详解 在日常使用MySQL数据库的过程中,可能会遇到各种错误提示,其中Error 1405(访问被拒绝,因为用户名或密码不正确)是一个较为常见的问题。本文将从该错误产生的原因入手,详细...

    32位的QT连接64位的mysql数据库的驱动文件 libmysql.dll libmysql.lib

    连接64位的mysql,即使把mysql安装目录下的libmysql.dll放到qt安装目录bin路径下,也是无法连接数据库。网上给出的做法是下载Qt对应版本的源码,重新编译。这种方法复杂繁琐,且容易编译失败。这里提供了mysql官方给...

    mysql 命令行错误 ERROR 1045 (28000):

    环境变量配置错误 mysql 命令行错误 ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N

    数据插入异常

    在进行MySQL数据库操作时,可能会遇到“Failed to read auto-increment value from storage engine”这样的错误提示。此错误通常发生在尝试向设置了自动增长(AUTO_INCREMENT)属性的字段插入数据时。 #### 二、...

    StatementInvalid: Mysql::Error: query: not connected解决方法

    5. **错误处理**:在代码中加入异常处理,捕获并适当地处理`Mysql::Error: query: not connected`这类错误,例如通过重新连接或者向用户显示友好的错误信息。 在描述中提到了一个博客链接,虽然没有具体的内容,但...

    安装高版本mysql、解决error 2003、error nr.1364

    ### 安装高版本MySQL与解决Error 2003及Error Nr.1364 #### 一、概述 本文将详细介绍如何安装高版本的MySQL,并针对在安装过程中可能出现的Error 2003(无法连接到MySQL服务器)及Error Nr.1364(字段...

    odbc 连接mysql异常解决方案.zip

    在使用ODBC(Open Database Connectivity)连接MySQL数据库时,可能会遇到“ERROR [IM002] [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序”的异常。这个错误通常表示系统无法找到有效的...

Global site tag (gtag.js) - Google Analytics