私は現在CentOS7でMySQLを使用しているのですが、数時間おきにMySQLにログインができなくなってしまいます。
再起動すれば直るのですが、毎回再起動する訳にもいきませんので、この問題を対処したいのですが、自分では原因を特定することが出来ませんでした。
申し訳ないのですが、どなたかご助言を頂けないでしょうか。
###MySQLの設定ファイル(my.cnf)
MySQL
1# 2# Remove leading # and set to the amount of RAM for the most important data 3# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. 4# innodb_buffer_pool_size = 128M 5# 6# Remove leading # to turn on a very important data integrity option: logging 7# changes to the binary log between backups. 8# log_bin 9# 10# Remove leading # to set options mainly useful for reporting servers. 11# The server defaults are faster for transactions and fast SELECTs. 12# Adjust sizes as needed, experiment to find the optimal values. 13# join_buffer_size = 128M 14# sort_buffer_size = 2M 15# read_rnd_buffer_size = 2M 16datadir=/var/lib/mysql 17socket=/var/lib/mysql/mysql.sock 18 19# Disabling symbolic-links is recommended to prevent assorted security risks 20symbolic-links=0 21 22 23log-error=/var/log/mysqld.log 24pid-file=/var/run/mysqld/mysqld.pid 25 26character-set-server = utf8 27default_password_lifetime = 0 28server-id=102 29 30log-bin=mysql-bin 31log-slave-updates 32gtid-mode=ON 33enforce-gtid-consistency
###追記
ログイン時のエラーは以下の通りです。
MySQL
1[root@ログインIP ~]# mysql -u root -p 2Enter password: 3ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
回答2件
あなたの回答
tips
プレビュー