一、手动创建添加my.ini文件

# 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]
# 设置mysql客户端默认字符集
default-character-set=utf8
[mysqld]
#权限问题

# 设置3306端口
port = 3306

# 设置mysql的安装目录
basedir=C:\Program Files (x86)\mysql-8.0.17-winx64
# 设置mysql数据库的数据的存放目录
datadir=C:\Program Files (x86)\mysql-8.0.17-winx64\data
# 允许最大连接数max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB

 

二、8.0版本登录出现Access denied for user 'root'@'localhost' (using password: YES)的解决方法

https://blog.csdn.net/hunt_er/article/details/88037961

相关文章:

  • 2021-10-24
  • 2021-11-20
  • 2022-01-15
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-12-03
猜你喜欢
  • 2022-01-14
  • 2021-06-26
  • 2022-12-23
  • 2021-07-04
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案