Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root!
해결책)
# vi /etc/my.cnf
user=mysql
혹은
# /usr/local/mysql/bin/mysqld --user=mysql start
Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses a LIMIT clause. This is unsafe because the set of rows included cannot be predicted. Statement: update lotto_sang3 set
해결책)
mysql 로그 포맷 형태를 변경
FLUSH TABLES WITH READ LOCK;
FLUSH LOGS;
SET GLOBAL binlog_format = ‘MIXED’;
FLUSH LOGS;
UNLOCK TABLES;
2019-02-27T11:32:53.989251Z 157 [Note] Aborted connection 157 to db: ‘DB’ user: ‘dbuser’ host: ‘hostname’ (Got an error reading communication packets)
원인)
이 경우, MySQL은 Aborted_clients의 상태 카운터를 증가 시키며 이는 다음을 의미 할 수 있습니다.
– 클라이언트가 성공적으로 연결되었지만 부적절하게 종료되었습니다 (연결을 제대로 닫지 않는 것과 관련이있을 수 있음).
– 클라이언트는 정의 된 wait_timeout 또는 interactive_timeout 초 보다 오래 잠자기했다 (결국 wait_timeout 초 동안 연결이 잠자기 상태가 된 다음 MySQL 서버에 의해 강제로 연결이 닫힙니다)
– 클라이언트가 비정상적으로 종료되었거나 쿼리 의 max_allowed_packet 를 초과했습니다.
해결책)
wait_timeout 설정(default 100 -> 50)
max_allow_packet 설정(증가)
# mysql_install_db --datadir=/data/mysql
FATAL ERROR: Could not find ./share/fill_help_tables.sql
해결책)
실행시에 basedir을 써주고 시작할 것!!
mysql_install_db --datadir=/data/mysql --basedir=/usr
'LINUX > DB' 카테고리의 다른 글
MYSQL 디렉토리 변경 (0) | 2019.06.01 |
---|---|
Mariadb 언어셋 변경 (0) | 2019.06.01 |
Galera Cluster 설치 및 설정 (0) | 2019.05.29 |
MYSQL 백업 및 복구 (0) | 2019.05.29 |
MySQLTuner 설치 (0) | 2019.05.28 |