vagrantの仮想環境でdatabaseを作成したり消したりする練習中、練習用で作ったものと勘違いして既存であったmysqlデーターベースをdropで消してしまいました。
練習用に新たに作成したデータベースの作業ユーザーを作ろうとした時に、
mysql> grant all on dotinstall_todo_app.* to dbuser@localhost identified by '$6Ydnt7p'; ERROR 1146 (42S02): Table 'mysql.user' doesn't exist
と言うエラーが出て検索して初めて、mysqlデーターベースは既存で入っていて消してはいけなかったと知り、検索して得たmysql_install_dbコマンドをやってみましたが、これもエラーが出てしまいます。まだ学習して間もないため、エラー内容がよく理解できず、解決できません。
[vagrant@localhost ~]$ mysql_install_db WARNING: Could not write to config file /usr/my.cnf: 許可がありません Installing MySQL system tables...2017-03-16 21:12:46 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2017-03-16 21:12:46 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap. 2017-03-16 21:12:46 0 [Note] /usr/sbin/mysqld (mysqld 5.6.35) starting as process 21806 ... 2017-03-16 21:12:46 21806 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test 2017-03-16 21:12:46 21806 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test 2017-03-16 21:12:46 21806 [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000) 2017-03-16 21:12:46 21806 [Warning] Buffered warning: Changed limits: table_open_cache: 431 (requested 2000) 2017-03-16 21:12:46 21806 [Note] InnoDB: Using atomics to ref count buffer pool pages 2017-03-16 21:12:46 21806 [Note] InnoDB: The InnoDB memory heap is disabled 2017-03-16 21:12:46 21806 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2017-03-16 21:12:46 21806 [Note] InnoDB: Memory barrier is not used 2017-03-16 21:12:46 21806 [Note] InnoDB: Compressed tables use zlib 1.2.3 2017-03-16 21:12:46 21806 [Note] InnoDB: Using Linux native AIO 2017-03-16 21:12:46 21806 [Note] InnoDB: Using CPU crc32 instructions 2017-03-16 21:12:46 21806 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2017-03-16 21:12:46 21806 [Note] InnoDB: Completed initialization of buffer pool 2017-03-16 21:12:46 21806 [ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode 2017-03-16 21:12:46 21806 [ERROR] InnoDB: The system tablespace must be writable! 2017-03-16 21:12:46 21806 [ERROR] Plugin 'InnoDB' init function returned error. 2017-03-16 21:12:46 21806 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2017-03-16 21:12:46 21806 [ERROR] Unknown/unsupported storage engine: InnoDB 2017-03-16 21:12:46 21806 [ERROR] Aborting 2017-03-16 21:12:46 21806 [Note] Binlog end 2017-03-16 21:12:46 21806 [Note] /usr/sbin/mysqld: Shutdown complete
長々をしたエラー文を掲載して申し訳ありません。
mysql_install_dbでうまくいってる方が多い中、なぜうまくいかないのかわかりません。
お力をお貸し下さい。
どうぞ、宜しくお願い致します!!!
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/19 02:21 編集
2017/03/20 12:02
2017/03/26 02:07