# CLIENT SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by MySQL client applications.
# Note that only client applications shipped by MySQL are guaranteed
# to read this section. If you want your own MySQL client program to
# honor these values, you need to specify it as an option during the
# MySQL client library initialization.
#
[mysql]
# 設(shè)置mysql客戶端默認字符集
default-character-set=utf8
[mysqld]
#權(quán)限問題
# 設(shè)置3306端口
port = 3306
# 設(shè)置mysql的安裝目錄
basedir=C:\Program Files (x86)\mysql-8.0.17-winx64
# 設(shè)置mysql數(shù)據(jù)庫的數(shù)據(jù)的存放目錄
datadir=C:\Program Files (x86)\mysql-8.0.17-winx64\data
# 允許最大連接數(shù)max_connections=200
# 服務(wù)端使用的字符集默認為8比特編碼的latin1字符集
character-set-server=utf8
# 創(chuàng)建新表時將使用的默認存儲引擎
default-storage-engine=INNODB
二、8.0版本登錄出現(xiàn)Access denied for user 'root'@'localhost' (using password: YES)的解決方法