mysql configuration file explained

1 when executing mysqld command, the following configuration will take effect, takes effect when the service starts mysql

[mysqld]

= utf8 character_set_server
collation = utf8_general_ci #-Server is a collation, the default is the general, if not it will be able to change this

port = 3306 # mysql server default listening (listen on) a TCP / IP port

datadir = "C: / Program Files / MySQL / MySQL Server 5.5 / Data" # mysql database file directory

2 client for global configuration command, mysql client when the command is executed, the following configuration to take effect

[client]
default-character-set=utf8

3. Only for this configuration mysql client, 2 global, and here it is only partially configured for this command mysql

[mysql]
user=root
password=666
default-character-set=utf8

If no # [mysql], the user performs the configuration when the command mysql [client] using whichever comes mysql mysql client system

 

Guess you like

Origin www.cnblogs.com/lulin9501/p/11355172.html