こんにちは。
http://centossrv.com/mysql.shtml
上記サイトを参照しつつ、CentOS6にMysqlをインストールしたのですが、
mysqld start
が上手くいきません。
linux
1[root@linux-centos ~]# /etc/rc.d/init.d/mysqld start 2MySQL Daemon failed to start. 3mysqld を起動中: [失敗]
上記サイトではインストール後に/etc/my.cnfを編集するのですが、サイトの通りに編集済みで特に入力ミスなどはありません。
/var/log/messages には特になんの出力もなく、
/var/log/mysqld.log の内容は以下になります。
[root@linux-centos ~]# tail /var/log/mysqld.log InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... InnoDB: Doing recovery: scanned up to log sequence number 0 44233 151206 11:08:44 InnoDB: Starting an apply batch of log records to the database... InnoDB: Progress in percents: 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 InnoDB: Apply batch completed 151206 11:08:45 InnoDB: Started; log sequence number 0 44233 151206 11:08:45 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 151206 11:08:45 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
/etc/my.cnf の内容は以下になります。
[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 character-set-server = utf8 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid #Error log log_error="/var/log/mysqld.log" log_warnings=1
解決法をご存知でしたら、お願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/12/07 01:10