我有一个魔鬼的时间试图让MySQL启动Fedora的安装。
每当我尝试启动它,我会得到:
[root@server1 log]# service mysqld start Redirecting to /bin/systemctl start mysqld.service Job failed. See system logs and 'systemctl status' for details.
然后当我做一个systemctl查询时,我得到:
[root@server1 log]# systemctl status mysqld.service mysqld.service - MySQL database server Loaded: loaded (/lib/systemd/system/mysqld.service; enabled) Active: failed since Sat, 18 Aug 2012 21:06:48 -0400; 1min 59s ago Process: 747 ExecStartPre=/usr/libexec/mysqld-prepare-db-dir (code=exited, status=254) CGroup: name=systemd:/system/mysqld.service
有趣的是当我检查/var/log/mysqld.log时,那里绝对没有
更新。 我做了mysql_install_db(我甚至应该这样做?),现在这里是我的错误日志看起来像:
120818 22:29:36 mysqld_safe Starting mysqld daemon with databases from /var/lib$ 120818 22:29:36 [Note] Plugin 'FEDERATED' is disabled. ^G/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13) 120818 22:29:36 [ERROR] Can't open the mysql.plugin table. Please run mysql_upg$ 120818 22:29:36 InnoDB: The InnoDB memory heap is disabled 120818 22:29:36 InnoDB: Mutexes and rw_locks use GCC atomic builtins 120818 22:29:36 InnoDB: Compressed tables use zlib 1.2.5 120818 22:29:36 InnoDB: Using Linux native AIO ^G/usr/libexec/mysqld: Can't create/write to file '/tmp/ibvxiFII' (Errcode: 13) 120818 22:29:36 InnoDB: Error: unable to create temporary file; errno: 13 120818 22:29:36 [ERROR] Plugin 'InnoDB' init function returned error. 120818 22:29:36 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 120818 22:29:36 [ERROR] Unknown/unsupported storage engine: InnoDB 120818 22:29:36 [ERROR] Aborting 120818 22:29:36 [Note] /usr/libexec/mysqld: Shutdown complete ^G/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13) 120818 22:36:34 [ERROR] Can't open the mysql.plugin table. Please run mysql_upg$ 120818 22:36:34 InnoDB: The InnoDB memory heap is disabled 120818 22:36:34 InnoDB: Mutexes and rw_locks use GCC atomic builtins 120818 22:36:34 InnoDB: Compressed tables use zlib 1.2.5 120818 22:36:34 InnoDB: Using Linux native AIO ^G/usr/libexec/mysqld: Can't create/write to file '/tmp/ibnO07sQ' (Errcode: 13) 120818 22:36:34 InnoDB: Error: unable to create temporary file; errno: 13 120818 22:36:34 [ERROR] Plugin 'InnoDB' init function returned error. 120818 22:36:34 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 120818 22:36:34 [ERROR] Unknown/unsupported storage engine: InnoDB 120818 22:36:34 [ERROR] Aborting 120818 22:36:34 [Note] /usr/libexec/mysqld: Shutdown complete 120818 22:36:34 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid end$