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

通过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配置才是


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值