`
feitu_jeff
  • 浏览: 45118 次
  • 性别: 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 表名

 

转载

http://blog.sina.com.cn/s/blog_4550f3ca0100x7kf.html

分享到:
评论

相关推荐

    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

    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:\...

    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 日志的说明、...

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

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

    MYSQL ERROR1405 解决方案

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

    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`这类错误,例如通过重新连接或者向用户显示友好的错误信息。 在描述中提到了一个博客链接,虽然没有具体的内容,但...

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

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

    mysql源码安装包.zip

    -DCMAKE_INSTALL_PREFIX=/home/mysql -DMYSQL_DATADIR=/home/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_TCP_PORT=3306 -DMYSQL_USER=mysql -DWITH_MYISAM_STORAGE_ENGINE=1 ...

    MySQL启动报错问题InnoDB:Unable to lock/ibdata1 error

    【MySQL启动报错问题InnoDB:Unable to lock/ibdata1 error】是一个常见的MySQL服务器启动时遇到的问题。这个问题通常表明MySQL的InnoDB存储引擎无法获取对`ibdata1`文件的锁,`ibdata1`是InnoDB用来存储数据和系统表...

    MySQL存储过程的异常处理方法

    本实例展示了如何在MySQL存储过程中实现异常处理,以捕获并处理可能出现的错误。 首先,我们注意到在创建存储过程`myProc`时,使用了`delimiter $$`来改变MySQL客户端的语句分隔符,这是为了在存储过程中使用多个...

Global site tag (gtag.js) - Google Analytics