ตอนโอนข้อมูลไป slave มันขึ้นว่า
person_image ตั้งค่าน้อยเกินไป อยากได้มากกว่านี้ ที่แปลได้นะครับ
อีกตัวมันขึ้นว่า max_allowed_packet กำหนดให้แล้วตั้ง 512M มันน้อยไปหรือเปล่าทำไมขึ้นแบบนี้
แรม 4GB ครับ
จะเริ่มเดินทางไปบรรจุพรุ่งนี้แล้ว แต่ยังเครียร์server ไม่เสร็จเลย รบกวนด่วนเลยครับ
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
#
http://dev.mysql.com/doc/mysql/en/server-system-variables.html# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
default-character-set=tis620
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
open-files-limit=8192
[mysqld]
#
# * Basic Settings
#
#
# * IMPORTANT
# If you make changes to these settings and your system uses apparmor, you may
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
#
default_storage_engine=INNODB
default_table_type=INNODB
user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
skip-external-locking
back_log=50
key_buffer=512
binlog_cache_size=1M
table_cache=1500
sort_buffer_size = 1M
read_buffer_size=1M
read_rnd_buffer_size=1M
join_buffer_size=4M
bulk_insert_buffer_size=32
myisam_sort_buffer_size=512
myisam_max_sort_file_size=512
myisam_max_extra_sort_file_size=512M
myisam_repair_threads=1
myisam_recover
thread_cache_size=1500
query_cache_size=512M
thread_cache_size=8
thread_concurrency=8
default-character-set=tis620
skip-locking
skip-name-resolve
skip-character-set-client-handshake
skip-federated
init_connect = 'SET NAMES tis620'
ft_min_word_len=4
thread_stack=192k
transaction_isolation=REPEATABLE-READ
tmp_table_size=32
log_bin_trust_function_creators=1
slow_query_log
long_query_time=2
log_long_format
innodb_file_per_table
innodb_data_home_dir=/var/lib/mysql/
innodb_data_file_path=ibdata1:10M:autoextend
innodb_log_group_home_dir=/var/lib/mysql
innodb_max_dirty_pages_pct=90
innodb_doublewrite=0
innodb_buffer_pool_size=2400M
#innodb_additional_mem_pool_size=1638M
innodb_log_buffer_size=2
innodb_thread_concurrency=16
innodb_flush_log_at_trx_commit=1
innodb_flush_method=O_DSYNC
innodb_lock_wait_timeout=50
innodb_thread_concurrency=0
innodb_support_xa=0
innodb_locks_unsafe_for_binlog=1
#innodb_io_capacity=10000
#innodb_write_io_threads=16
#innodb_read_io_threads=16
innodb_force_recovery=4
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 192.168.2.222
#
# * Fine Tuning
#
max_connect_errors=10
max_heap_table_size=512M
max_allowed_packet = 512M
thread_stack = 192K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
max_connections = 1500
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 2M
query_cache_size = 350M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
log_error = /var/log/mysql/error.log
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
max_allowed_packet = 512M
allow-keywords
[mysql]
no-auto-rehash
default-character-set=tis620
# faster start of mysql but no tab completition
[isamchk]
key_buffer = 256M
sort_buffer_size=256M
read_buffer=2M
write_buffer=2M
[myisamchk]
key_buffer=500M
sort_buffer_size=256M
read_buffer=2M
write_buffer=2M
[mysqlhotcopy]
interactive-timeout
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/