my.cnf 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # The MariaDB configuration file
  2. #
  3. # The MariaDB/MySQL tools read configuration files in the following order:
  4. # 0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read.
  5. # 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
  6. # 2. "/etc/mysql/conf.d/*.cnf" to set global options.
  7. # 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
  8. # 4. "~/.my.cnf" to set user-specific options.
  9. #
  10. # If the same option is defined multiple times, the last one will apply.
  11. #
  12. # One can use all long options that the program supports.
  13. # located /etc/mysql/conf.d/my.cnf
  14. # Run program with --help to get a list of available options and with
  15. # --print-defaults to see which it would actually understand and use.
  16. #
  17. # If you are new to MariaDB, check out https://mariadb.com/kb/en/basic-mariadb-articles/
  18. #
  19. # This group is read both by the client and the server
  20. # use it for options that affect everything
  21. #
  22. [client-server]
  23. # Port or socket location where to connect
  24. # port = 3306
  25. socket = /run/mysqld/mysqld.sock
  26. # Import all .cnf files from configuration directory
  27. [mariadbd]
  28. skip-host-cache
  29. skip-name-resolve
  30. !includedir /etc/mysql/mariadb.conf.d/
  31. !includedir /etc/mysql/conf.d/
  32. [mysqld]