linux中mysql配置文件和jdk环境变量

mysql配置文件

[client]
default-character-set = utf8mb4

[mysql]
socket = /var/lib/mysql/mysql.sock
default-character-set = utf8mb4

[mysqld]
skip-name-resolve
port = 3306
socket = /var/lib/mysql/mysql.sock
basedir=/usr/local/mysql
datadir=/var/lib/mysql
max_connections=200
character-set-server=utf8mb4
default-storage-engine=INNODB
lower_case_table_names=1
max_allowed_packet=16M

jdk环境变量

JAVA_HOME=/java
CLASSPATH=$JAVA_HOME/lib/
PATH=$PATH:$JAVA_HOME/bin
export PATH JAVA_HOME CLASSPATH

上一篇:MySQL配置文件改变了datadir值


下一篇:在mysql配置文件修改sql_mode或sql-mode 怎么办?