my_prod.cnf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # For advice on how to change settings please see
  2. # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
  3. [mysqld_multi]
  4. mysqld =/usr/sbin/mysqld
  5. mysqladmin = /usr/bin/mysqladmin
  6. [mysqld]
  7. #
  8. # Remove leading # and set to the amount of RAM for the most important data
  9. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  10. # innodb_buffer_pool_size = 128M
  11. #
  12. # Remove leading # to turn on a very important data integrity option: logging
  13. # changes to the binary log between backups.
  14. # log_bin
  15. #
  16. # Remove leading # to set options mainly useful for reporting servers.
  17. # The server defaults are faster for transactions and fast SELECTs.
  18. # Adjust sizes as needed, experiment to find the optimal values.
  19. # join_buffer_size = 128M
  20. # sort_buffer_size = 2M
  21. # read_rnd_buffer_size = 2M
  22. port=7644
  23. datadir=/var/lib/mysql
  24. socket=/var/lib/mysql/mysql.sock
  25. server_id=2
  26. # Disabling symbolic-links is recommended to prevent assorted security risks
  27. symbolic-links=0
  28. max_allowed_packet = 10M
  29. log-error=/var/log/mysqld.log
  30. pid-file=/var/run/mysqld/mysqld.pid
  31. sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
  32. [mysqld1]
  33. basedir=/usr
  34. datadir = /data/mysql1
  35. port = 3307
  36. server_id=3
  37. socket = /tmp/mysql3307.sock
  38. skip-host-cache
  39. skip-name-resolve
  40. character-set-server=utf8
  41. sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
  42. wait_timeout=2147483
  43. interactive_timeout=2147483
  44. max_allowed_packet = 10M