CentOS 6.7(64bit)の環境で、MySQLにMroongaというストレージエンジンを追加するため、MySQL(version 5.7.13)をソースからインストールしました。
*参考にしたURLhttp://qiita.com/ksugawara61/items/f42a796488d227e4f79e
1)インストール後に、初期設定:
[root@hoge mysql]# /usr/local/mysql/bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
2016-07-22 15:46:31 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
2016-07-22 15:46:55 [WARNING] The bootstrap log isn't empty:
2016-07-22 15:46:55 [WARNING] 2016-07-22T06:46:32.253245Z 0 [Warning] --bootstrap is deprecated. Please consider using --initialize instead
2016-07-22T06:46:32.256803Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2016-07-22T06:46:32.256818Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2)MySQLの起動:
[root@hoge mysql]# /usr/local/mysql/support-files/mysql.server start
Starting MySQL.. SUCCESS!
3)mysql -u root ログインしたところ、
$ mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
$ mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@hoge ~]# which mysql
/usr/local/bin/mysql
となってログインできません。諸先輩方、ご教示のほどよろしくお願い致します。
回答5件
あなたの回答
tips
プレビュー