MySQL5.7.28 配置文件编写

发布时间:2020-02-26 11:03:57 作者:fengyuzaitu
来源:网络 阅读:224

默认情况下,MySQL服务或者客户端都会读取/etc/my.cnf作为配置文件,除非指定default-file

[mysqld]

port=3306

innodb_file_format=barracuda

innodb_large_prefix=on

lower_case_table_names=1

sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

# Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0

# Settings user and group are ignored when systemd is used.

# If you need to run mysqld under a different user or group,

# customize your systemd unit file for mariadb according to the

# instructions in http://fedoraproject.org/wiki/Systemd


[mysqld_safe]

log-error=/var/log/mariadb/mariadb.log

pid-file=/var/run/mariadb/mariadb.pid

ma

#

# include all files from the config directory

#

!includedir /etc/my.cnf.d


[client]

port=3306

socket=/var/lib/mysql/mysql.sock


推荐阅读:
  1. CentOS7.4下安装MySQL5.7.28源码方式的详细步骤
  2. CentOS7.4下MySQL5.7.28二进制方式安装

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

mysql my.cnf 配置文

上一篇:mysql 子查询和外查询图

下一篇:谈谈Android Binder机制及AIDL使用

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》