ネットで調べると似たような記事がいっぱいでてくるのですが、
何度やっても決まったタイミングでエラーになってその後解決できません。
【手順】
sudo apt-get remove --purge mysql-server* mysql-common
sudo apt-get autoremove
sudo rm -r /etc/mysql
sudo rm -r /var/lib/mysql
sudo apt-get install mysql-server
sudo emacs /etc/mysql/my.cnf
my.cnf内にcharacter-set-server = utf8を追加する。
mysql -u root -pを実行する。
★このあたりでエラーになるようになります。
データベースを作成する
テーブルを作成する
【エラーメッセージ】
150427 16:35:21 InnoDB: Unable to open the first data file
InnoDB: Error in opening ./ibdata1
150427 16:35:21 InnoDB: Operating system error number 11 in a file operation.
InnoDB: Error number 11 means 'Resource temporarily unavailable'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/operating-system-error-codes.html
150427 16:35:21 InnoDB: Could not open or create data files.
150427 16:35:21 InnoDB: If you tried to add new data files, and it failed here,
150427 16:35:21 InnoDB: you should now edit innodb_data_file_path in my.cnf back
150427 16:35:21 InnoDB: to what it was, and remove the new ibdata files InnoDB created
150427 16:35:21 InnoDB: in this failed attempt. InnoDB only wrote those files full of
150427 16:35:21 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
150427 16:35:21 InnoDB: remove old data files which contain your precious data!
150427 16:35:21 [ERROR] Plugin 'InnoDB' init function returned error.
150427 16:35:21 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
150427 16:35:21 [ERROR] Unknown/unsupported storage engine: InnoDB
150427 16:35:21 [ERROR] Aborting
150427 16:35:21 [Note] /usr/sbin/mysqld: Shutdown complete
150427 16:35:21 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/04/27 08:19