MySQL server error report
2013-11-19 16:06
197 查看
1、前台app报错:
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => INSERT INTO `ecshop`.`ecs_stats` ( ip_address, visit_times, browser, system, language, area, referer_domain, referer_path, access_url, access_time) VALUES ('113.135.118.20', '1', 'Safari 537.36', 'Windows XP', 'zh-CN,zh', 'IANA', '', '', '/index.php', '1384818765') ) [2] => Array ( [error] => Table './ecshop/ecs_stats' is marked as crashed and last (automatic?) repair failed ) [3] => Array ( [errno] => 144 ) )
2、登陆mysql查询结果:
root:bj85.4bo.cn:)[ecshop]> check table ecs_stats; +------------------+-------+----------+-------------------------------------------------------+ | Table | Op | Msg_type | Msg_text | +------------------+-------+----------+-------------------------------------------------------+ | ecshop.ecs_stats | check | warning | Table is marked as crashed and last repair failed | | ecshop.ecs_stats | check | warning | 1 client is using or hasn't closed the table properly | | ecshop.ecs_stats | check | warning | Size of indexfile is: 4173824 Should be: 1024 | | ecshop.ecs_stats | check | error | Record-count is not ok; is 406459 Should be: 0 | | ecshop.ecs_stats | check | warning | Found 406459 parts Should be: 0 parts | | ecshop.ecs_stats | check | error | Corrupt | +------------------+-------+----------+-------------------------------------------------------+ 6 rows in set (0.69 sec)
3、修复表: (root:bj85.4bo.cn:)[ecshop]> repair table ecs_stats -> ; +------------------+--------+----------+-----------------------------------------+ | Table | Op | Msg_type | Msg_text | +------------------+--------+----------+-----------------------------------------+ | ecshop.ecs_stats | repair | warning | Number of rows changed from 0 to 406459 | | ecshop.ecs_stats | repair | status | OK | +------------------+--------+----------+-----------------------------------------+ 2 rows in set (2.77 sec)
(root:bj85.4bo.cn:)[ecshop]> check table ecs_stats; +------------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +------------------+-------+----------+----------+ | ecshop.ecs_stats | check | status | OK | +------------------+-------+----------+----------+ 1 row in set (0.59 sec)
4、查看表结构: (root:bj85.4bo.cn:)[ecshop]> show create table ecs_stats; +-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Table | Create Table | +-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ecs_stats | CREATE TABLE `ecs_stats` ( `access_time` int(10) unsigned NOT NULL default '0', `ip_address` varchar(15) NOT NULL default '', `visit_times` smallint(5) unsigned NOT NULL default '1', `browser` varchar(60) NOT NULL default '', `system` varchar(20) NOT NULL default '', `language` varchar(20) NOT NULL default '', `area` varchar(30) NOT NULL default '', `referer_domain` varchar(100) NOT NULL default '', `referer_path` varchar(200) NOT NULL default '', `access_url` varchar(255) NOT NULL default '', KEY `access_time` (`access_time`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 | +-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec)
(root:bj85.4bo.cn:)[ecshop]>
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => INSERT INTO `ecshop`.`ecs_stats` ( ip_address, visit_times, browser, system, language, area, referer_domain, referer_path, access_url, access_time) VALUES ('113.135.118.20', '1', 'Safari 537.36', 'Windows XP', 'zh-CN,zh', 'IANA', '', '', '/index.php', '1384818765') ) [2] => Array ( [error] => Table './ecshop/ecs_stats' is marked as crashed and last (automatic?) repair failed ) [3] => Array ( [errno] => 144 ) )
2、登陆mysql查询结果:
root:bj85.4bo.cn:)[ecshop]> check table ecs_stats; +------------------+-------+----------+-------------------------------------------------------+ | Table | Op | Msg_type | Msg_text | +------------------+-------+----------+-------------------------------------------------------+ | ecshop.ecs_stats | check | warning | Table is marked as crashed and last repair failed | | ecshop.ecs_stats | check | warning | 1 client is using or hasn't closed the table properly | | ecshop.ecs_stats | check | warning | Size of indexfile is: 4173824 Should be: 1024 | | ecshop.ecs_stats | check | error | Record-count is not ok; is 406459 Should be: 0 | | ecshop.ecs_stats | check | warning | Found 406459 parts Should be: 0 parts | | ecshop.ecs_stats | check | error | Corrupt | +------------------+-------+----------+-------------------------------------------------------+ 6 rows in set (0.69 sec)
3、修复表: (root:bj85.4bo.cn:)[ecshop]> repair table ecs_stats -> ; +------------------+--------+----------+-----------------------------------------+ | Table | Op | Msg_type | Msg_text | +------------------+--------+----------+-----------------------------------------+ | ecshop.ecs_stats | repair | warning | Number of rows changed from 0 to 406459 | | ecshop.ecs_stats | repair | status | OK | +------------------+--------+----------+-----------------------------------------+ 2 rows in set (2.77 sec)
(root:bj85.4bo.cn:)[ecshop]> check table ecs_stats; +------------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +------------------+-------+----------+----------+ | ecshop.ecs_stats | check | status | OK | +------------------+-------+----------+----------+ 1 row in set (0.59 sec)
4、查看表结构: (root:bj85.4bo.cn:)[ecshop]> show create table ecs_stats; +-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Table | Create Table | +-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ecs_stats | CREATE TABLE `ecs_stats` ( `access_time` int(10) unsigned NOT NULL default '0', `ip_address` varchar(15) NOT NULL default '', `visit_times` smallint(5) unsigned NOT NULL default '1', `browser` varchar(60) NOT NULL default '', `system` varchar(20) NOT NULL default '', `language` varchar(20) NOT NULL default '', `area` varchar(30) NOT NULL default '', `referer_domain` varchar(100) NOT NULL default '', `referer_path` varchar(200) NOT NULL default '', `access_url` varchar(255) NOT NULL default '', KEY `access_time` (`access_time`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 | +-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec)
(root:bj85.4bo.cn:)[ecshop]>
相关文章推荐
- 解决ecshop 数据迁移产生的MySQL server error report:Array 这个问题
- ecshop MySQL server error report: 排错
- ERROR 2003 (HY000):CAN’T CONNECT TO MYSQL SERVER ON ‘LOCALHOST’ (10061)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- 解决“ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)”
- Mysql数据库从本地导出、服务器上导入时报:ERROR 2005 (HY000): Unknown MySQL server host 'mysql' 的一种解决方案
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio
- php 不能连接数据库 php error Can't connect to local MySQL server
- mysql sqlserver hibernate 有数据库关键字 You have an error in your SQL syntax; check the manual that corres
- MySQL客户端2006(CR_SERVER_GONE_ERROR)错误测试和优化方法
- ERROR! The server quit without updating PID file (/usr/local/mysql-5.5.32/data/zexi.pid).
- 启动mysql错误ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
- Ubuntu Server 16.04安装MySQL设置远程访问出现问题的完美解决方案(error:10061)
- ERROR 2003 Can’t connect to MySQL server on ‘localhost’
- ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server
- Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/localhost.localdomain.pid).
- ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (111)
- Web service request SetParameters to Report Server http://host/reportserver failed. Error: 请求因 HTTP 状态 401 失败: Unauthorized
- [解决]ERROR 2002 (HY000): Can't connect to local MySQL server
- 数据库连接时 报错 ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)