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实例,重启的时候,报错,错误如下:
原因分析:在网上找了半天,说是找不到数据目录导致的
解决办法:在my.cnf[mysqld]中加入 datadir 指定数据存放位置,重启就ok了
问题虽然解决了,但是感觉比较奇怪,为啥找不到数据位置的呢? 安装cmake的时候,指定了 -DMYSQL_DATADIR=/mysql/mysql5.5/data 参数,按道理程序应该能找到这个datadir配置才是
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配置才是
相关文章推荐
- XAMPP 启动mysql报错 InnoDB: Error: could not open single-table tablespace file……
- [ERROR] InnoDB: Could not find a valid tablespace file
- Mac 下MAMP Pro MySQL无法启动报 Error: could not open single-table tablespace file ./mysql/innodb_table_sta
- android "Could not find class 'org.apache.http.entity.mime.content.FileBody" error
- Docker无法启动 Could not find a free IP address range for interface 'docker0' 最方便的解决办法
- 无法启动Mysql服务 could not open single-table tablespace file
- MySQL: [ERROR] /usr/sbin/mysqld: Incorrect key file for table './xxx/xxxx.MYI'; try to repair it
- InnoDB: Error: could not open single-table tablespace file
- nagios 页面发送命令异常 Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- pod install报错:could not find a valid gem 'cocoapods'
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- MySQL启动错误ERROR! MySQL server PID file could not be found的解决办法
- GitHub错误处理:fatal:could not read Username for 'https://github.com': No such file or directory
- 重新安装xcode cocoapods出现 Could not find a valid gem 'cocoapods' (>= 0) in any repository
- Error 'Incorrect key file for table 'test'
- eclipse 无法启动AVD,出现Starting emulator for AVD '' PANIC: Could not open: 错误提示的解决办法
- AndroidStudio启动错误:Error occurred during initialization of VM Could not reserve enough space for ...
- MySQL坏表?异常:Incorrect key file for table './xx_db/xx_table.MYI'; try to repair it
- 安装Mysql后,服务启动不了,出现"Could not start the service mysql error"错误