1 초 동안 연결이 끊어졌습니다. 페이지를 다시로드하면 연결됩니다. 가끔 mysql 연결이 끊어졌습니다.로드 방문자가 늘어납니다.
이 크게/etc/mysql/my.cnf
[client]
port=3306
socket=/var/run/mysqld/mysqld.sock
[mysqld_safe]
socket=/var/run/mysqld/mysqld.sock
[mysqld]
#bind-address = 123.123.123.8
user=mysql
pid-file=/var/run/mysqld/mysqld.pid
socket=/var/run/mysqld/mysqld.sock
port=3306
basedir=/usr
datadir=/var/lib/mysql
tmpdir=/tmp
lc-messages-dir=/usr/share/mysql
log_error=/var/log/mysql/error.log
symbolic-links=0
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 64M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
thread_concurrency = 8
#innodb_use_native_aio = 0
innodb_file_per_table
max_connections=800
max_user_connections=50
wait_timeout=2000
interactive_timeout=2000
long_query_time=5
!includedir /etc/mysql/conf.d/
을로드 할 수 있습니다
내가 MySQL 용 증가 할 수
, MySQL의에서
는이 내 기본 설정 코드
/var/log/mysql/error.log
171217 19:58:58 [Warning] IP address '58.218.200.24' could not be resolved: Name or service not known
171217 21:04:27 [Note] /usr/sbin/mysqld: Normal shutdown
171217 21:04:27 [Note] Event Scheduler: Purging the queue. 0 events
171217 21:04:29 [Warning] /usr/sbin/mysqld: Forcing close of thread 139280 user: 'admin_x'
171217 21:04:29 [Warning] /usr/sbin/mysqld: Forcing close of thread 139279 user: 'admin_x'
운영 체제 (OS/VERSION) : 데비안 8.9 (x86_64의)
제어판 Vestacp
감사합니다 여러분 모두
가의 로그 파일을 참조하자가 일어 났을 때 무슨 일이 있었는지 몇 가지 단서는, InnoDB에 대 slowlog, 클라이언트 계층, 데이터베이스 크기의 MyISAM의 소화 , 그리고 당신이 생각해 낼 수있는 다른 단서. –
안녕하세요 @ rick-james 방금'/ var/log/mysql/error.log'에 약간의 오류가 발견되었습니다. – Mitra
시도해주세요 : https://dev.mysql.com/doc/refman/5.7/en /host-cache.html –