您的位置:首页 > 数据库 > MySQL

Mysql5.6启动报错, [ERROR] InnoDB: Could not find a valid tablespace file for 'pa

2014-03-10 14:03 941 查看
通过xampp1.8.3安装的环境,由于修改了my.cnf配置,kill之前的mysql实例,重启的时候,报错,错误如下:

2014-03-10 13:48:19 7948 [ERROR] InnoDB: Could not find a valid tablespace file for 'paas/nms_link'. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
2014-03-10 13:48:19 7948 [ERROR] InnoDB: Tablespace open failed for '"paas"."nms_link"', ignored.
2014-03-10 13:48:19 7fd80e6ea700  InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2014-03-10 13:48:19 7948 [ERROR] InnoDB: Could not find a valid tablespace file for 'paas/nms_node_tooltip_info'. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
2014-03-10 13:48:19 7948 [ERROR] InnoDB: Tablespace open failed for '"paas"."nms_node_tooltip_info"', ignored.
2014-03-10 13:48:19 7fd80e6ea700  InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2014-03-10 13:48:19 7948 [ERROR] InnoDB: Could not find a valid tablespace file for 'paas/nms_onus_of_olt'. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
2014-03-10 13:48:19 7948 [ERROR] InnoDB: Tablespace open failed for '"paas"."nms_onus_of_olt"', ignored.
2014-03-10 13:48:19 7fd80e6ea700  InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2014-03-10 13:48:19 7948 [ERROR] InnoDB: Could not find a valid tablespace file for 'paas/nms_topo_detect_scan_report'. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
2014-03-10 13:48:19 7948 [ERROR] InnoDB: Tablespace open failed for '"paas"."nms_topo_detect_scan_report"', ignored.
2014-03-10 13:48:19 7fd80e6ea700  InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.


原因分析:在网上找了半天,说是找不到数据目录导致的

解决办法:在my.cnf[mysqld]中加入 datadir 指定数据存放位置,重启就ok了

问题虽然解决了,但是感觉比较奇怪,为啥找不到数据位置的呢? 安装cmake的时候,指定了 -DMYSQL_DATADIR=/mysql/mysql5.5/data 参数,按道理程序应该能找到这个datadir配置才是
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐