Mysql 提示错误

在登陆umail时.登陆某一个用户.有出现下面的错误提示.

Fatal error:  Uncaught exception ‘PDOException‘ with message
‘SQLSTATE[HY000]: General error: 145 Table ‘./umail/wm_statistics‘ is
marked as crashed and should be repaired‘ in
/usr/local/u-mail/data/www/webmail/admin/lib/UMail/BaseDB.php:0
Stack trace:
#0 /usr/local/u-mail/data/www/webmail/admin/lib/UMail/BaseDB.php(0):
PDOStatement->execute()
#1 [internal function]: UMail\BaseDB->callGetone(‘wm_statistics‘,
‘mailbox_id‘, ‘domain_id = :do...‘, Array, 0)
#2 /usr/local/u-mail/data/www/webmail/admin/lib/UMail/BaseDB.php(0):
call_user_func_array(Array, Array)
#3 /usr/local/u-mail/data/www/webmail/admin/lib/Webmail.php(0):
UMail\BaseDB->__call(‘getone_statisti...‘, Array)
#4 /usr/local/u-mail/data/www/webmail/admin/lib/Webmail.php(0):
Webmail->getone_statistics(‘mailbox_id‘, ‘domain_id = :do...‘, Array,
 0)
#5 /usr/local/u-mail/data/www/webmail/admin/lib/Webmail.php(0):
Webmail->getStatisticsByID(‘1‘, ‘239‘, ‘mailbox_id‘, 0)
#6
/usr/local/u-mail/data/www/webmail/module/default/program/o_user.php(0):
 Webmail->setLastLoginStat(‘1‘ in /usr/local/u-mail/data/www/webmail/admin/lib/UMail/BaseDB.php on line 0

经检查,是表的问题所导致的.

查找. 需要修复下表的索引即可.既MYI文件.

最终解决办法:

[[email protected] bin]# ./myisamchk -c -r /usr/local/u-mail/data/mysql/default/umail/wm_statistics.MYIWarning: Using unique option prefix read_buffer instead of read_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.Warning: Using unique option prefix write_buffer instead of write_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.- recovering (with sort) MyISAM-table ‘/usr/local/u-mail/data/mysql/default/umail/wm_statistics.MYI‘Data records: 95- Fixing index 1[[email protected] bin]# pwd/usr/local/u-mail/service/mysql/bin[[email protected] bin]# 

再次尝试登陆.恢复正常.

时间: 2024-10-22 06:25:08

Mysql 提示错误的相关文章

解决mysql提示错误:1045 access denied for user 'root'@'localhost' using password yes

少年,请看下图. 1. 开一个dos 2. 再开一个dos 3.即可.补充一个linux下的: 解决mysql提示错误:1045 access denied for user 'root'@'localhost' using password yes

MySQL提示“错误2:系统找不到指定文件”

一.问题原因 个人猜测可能是因为安装的是绿色版MySQL,然后在系统变量path中加入了解压后的路径.后续操作上没有跳转到解压后的路径,而是直接在cmd的默认路径下新建MySQL的服务,所以导致此问题产生. 二.解决办法 通过找到注册列表中的MySQL服务,强行修改,然后启动. 然后修改imagePath

MAC中Django中runserver提示Can't connect to local MySQL server through socket '/tmp/mysql.sock错误

好像不止遇到一次,直接Google就可以了,在stackoverflow中就有答案,答案就是你没有开MySQL - -. stackoverflow链接见 http://stackoverflow.com/questions/16325607/cant-connect-to-local-mysql-server-through-socket-tmp-mysql-sock 开启MySQL的命令如下: mysql.server start MAC中Django中runserver提示Can't co

mysql提示Column count doesn't match value count at row 1错误

mysql提示Column count doesn't match value count at row 1错误,后来发现是由于写的SQL语句里列的数目和后面的值的数目不一致, 比如insert into 表名 (field1,field2,field3) values('a','b')这样前面的是三列,后面却只有二个值,这就会出现这个错误的. mysql提示Column count doesn't match value count at row 1错误

编译pure-ftpd时提示错误Your MySQL client libraries aren't properly installed

如果出现类似configure: error: Your MySQL client libraries aren’t properly installed 的错误,请将mysql目录下的 include/mysql下的mysql.h文件以及lib/mysql下的全部文件,连接(直接复制过去或许也可)到 /usr/lib 目录下(参考) cp /www/wdlinux/mysql-5.5.x/include/mysql/mysql.h /usr/lib/ cp /www/wdlinux/mysql

Mysql text类型字段存储提示错误信息 String data,right truncated:1406 Data too long for column 'content' at row 1

String data,right truncated:1406 Data too long for column 'content' at row 1 当Mysql提示如下时: 1.首先查看存入的文本内容的大小,根据内容大小设置类型 如果超出,根据大小进行更换类型 2.如果还是超出那可能是Mysql根据配置文件限制Server接受数据包大小,有时候大的插入和更新会受max_allowed_packet参数限制,导致写入或者更新失败. 查看目前配置: 代码如下: 以上说明目前的配置是:60 M

CentOS 安装MySQL(rpm)提示错误Header V3 DSA/SHA1 Signature

提示错误:Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY error: Failed dependencies 错误原因:这是由于yum安装了旧版本的GPG keys造成的 解决办法:后面加上--force --nodeps 原文: 摘要: CentOS安装rpm安装MySQL时爆出警告: 警告:mysql-server-5.5.46-1.linux2.6.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID

原创:mysql5 还原至mysql 8.0.11数据库链接配置提示错误改动备注

原创:mysql5 还原至mysql 8.0.11数据库链接配置提示错误改有三: a) mysql 连接jar包版修改 b)类路径修改 c)配置连接池地址修改 因版本升级,首先要修改 1:mysql-connector-java 架包版本修改 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> !--原版本 5.1.6-->

从MySQL5.7.6开始,安装MySQL提示“请键入 NET HELPMSG 3534 以获得更多的帮助”的解决办法

今天安装MySQL提示如下错误: -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------