1. # Copyright (c) 2017, 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 Server configuration file.
    17. #
    18. # For explanations see
    19. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
    20. [mysql]
    21. #设置mysql客户端默认字符集
    22. default-character-set=utf8
    23. [mysqld]
    24. pid-file = /var/run/mysqld/mysqld.pid
    25. socket = /var/run/mysqld/mysqld.sock
    26. datadir = /var/lib/mysql
    27. secure-file-priv= NULL
    28. # Disabling symbolic-links is recommended to prevent assorted security risks
    29. symbolic-links=0
    30. #服务端使用的字符集默认为8比特编码的latin1字符集
    31. character_set_server = utf8
    32. #创建新表时将使用的默认存储引擎
    33. default-storage-engine=INNODB
    34. #设置不区分大小写
    35. # 必须在安装好MySQL后 修改mySQL配置文件设置为不敏感,一旦启动后,再设置是无效的,而且启动报错;
    36. # 如果已经晚了,那必须把MySQL数据库文件全部 删除,修改配置文件再启动。
    37. lower_case_table_names=1