我非常费劲地尝试让 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$