MySQL错误,我已尽力而为

时间:2014-01-25 22:08:47

标签: mysql macos

我的MySQl服务器昨天工作正常,但是今天早上我突然得到了这个错误:

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
[Warning] Can't create test file /usr/local/mysql-5.6.15-osx10.6-x86/data/Xero.lower-test
[Warning] Can't create test file /usr/local/mysql-5.6.15-osx10.6-x86/data/Xero.lower-test
[Note] Plugin 'FEDERATED' is disabled.
mysqld: Can't find file: './mysql/plugin.frm' (errno: 13 - Permission denied)
[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
[Note] InnoDB: The InnoDB memory heap is disabled
[Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
[Note] InnoDB: Compressed tables use zlib 1.2.3
[Note] InnoDB: Not using CPU crc32 instructions
[Note] InnoDB: Initializing buffer pool, size = 128.0M
[Note] InnoDB: Completed initialization of buffer pool
[ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode
[ERROR] InnoDB: The system tablespace must be writable!
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Unknown/unsupported storage engine: InnoDB
[ERROR] Aborting

当我尝试mysqld

我试过了:

重新安装

can't start MySql in Mac OS 10.6 Snow Leopard


(因为我注意到[ERROR] Unknown/unsupported storage engine: InnoDB

http://www.debian-tutorials.com/how-to-fix-error-unknownunsupported-storage-engine-innodb

2 个答案:

答案 0 :(得分:1)

[ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode
[ERROR] InnoDB: The system tablespace must be writable!

听起来这个文件(以及其他文件)不能被mysqld正在运行的用户写入。检查您的文件权限。

该文件也可能已被删除。

答案 1 :(得分:-1)

如果您尝试使用.bat文件运行它,只需右键单击该文件,然后"以管理员身份运行"。 我遇到了同样的问题并为我修复了身份。