MySQL配置文件设置(三)

MySQL配置文件设置(三)

MySQL配置文件

◆ 在my.ini文件中,我们可以设置各种MySQL的配置,例如字符集、端口号、目录地址等等

mysqld

名称 作用
post 端口号
datadir 数据目录
default_authentication_plugin 密码认证插件
default-storage-engine 默认存储引擎
sql-mode 开启严格模式
log-output 用文件记录日志
general-log 关闭日志输出
general_log_file 日志文件名称
slow-query-log 开启慢查询日志
slow_query_long_file 漫查询日志文件名称
long_query_time 大于多少秒的执行SQL被记录在慢查询日志
long-error 错误日志名称
server-id 数据库ID
lower_case_table_names 把表名转换成小写
secure-file-priv 导入导出数据的目录地址
max_connections 最大连接数
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×