Mysql-8.0.19安装
时间:2021-07-01 10:21:17
帮助过:5人阅读
=
3306
# 设置mysql的安装目录
basedir=E:/soft/mysql-
8.0.
19-
winx64
# 根据你的安装路径更改路径,其中\有人说改用双斜杠\\。
# 设置mysql数据库的数据的存放目录
datadir=E:/soft/mysql-
8.0.
19-winx64/
data
# 此处同上
# 允许最大连接数
max_connections=
200
# 允许连接失败的次数。这是为了防止有人从该主机试图攻击数据库系统
max_connect_errors=
10
# 服务端使用的字符集默认为UTF8
character-
set-server=
utf8MB4
# 创建新表时将使用的默认存储引擎
default-storage-engine=
INNODB
# 默认使用“mysql_native_password”插件认证
default_authentication_plugin=
mysql_native_password
[mysql]
# 设置mysql客户端默认字符集
default-character-
set=
utf8MB4
[client]
# 设置mysql客户端连接服务端时默认使用的端口
port=
3306
default-character-
set=utf8MB4
4、运行mysqld --initialize --console
cmd运行命令窗口,cd E:/soft/mysql-8.0.19-winx64/bin
执行mysqld --initialize --console

root@localhost:后面为初始密码
5、执行mysqld --install

如果服务已存在sc delete mysql 卸载服务
6、启动服务 net start mysql

7、登录

mysql -u root -p 初始密码
8、修改初始密码

alter user root@localhost identified by ‘*****‘;
Mysql-8.0.19安装
标签:ide 失败 服务端 star 启动服务 目录 连接 连接数 斜杠