my.cnf 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
  2. #
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; version 2 of the License.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software
  14. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  15. #
  16. # The MySQL Community Server configuration file.
  17. #
  18. # For explanations see
  19. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
  20. [client]
  21. port = 3306
  22. socket = /var/run/mysqld/mysqld.sock
  23. [mysqld_safe]
  24. pid-file = /var/run/mysqld/mysqld.pid
  25. socket = /var/run/mysqld/mysqld.sock
  26. nice = 0
  27. [mysqld]
  28. user = mysql
  29. pid-file = /var/run/mysqld/mysqld.pid
  30. socket = /var/run/mysqld/mysqld.sock
  31. port = 3306
  32. basedir = /usr
  33. datadir = /var/lib/mysql
  34. tmpdir = /tmp
  35. lc-messages-dir = /usr/share/mysql
  36. explicit_defaults_for_timestamp
  37. skip-grant-tables
  38. lower_case_table_names = 1
  39. character-set-server = utf8mb4
  40. collation-server = utf8mb4_unicode_ci
  41. sql-mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
  42. # Instead of skip-networking the default is now to listen only on
  43. # localhost which is more compatible and is not less secure.
  44. #bind-address = 127.0.0.1
  45. log-error = /var/log/mysql/error.log
  46. # Recommended in standard MySQL setup
  47. sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
  48. # Disabling symbolic-links is recommended to prevent assorted security risks
  49. symbolic-links=0
  50. # * IMPORTANT: Additional settings that can override those from this file!
  51. # The files must end with '.cnf', otherwise they'll be ignored.
  52. #
  53. !includedir /etc/mysql/conf.d/