mysql-8.0.19 win10安装教程

1.下载.zip安装文件

2.根目录存放my.ini,文件路径用“/”分割,例如:

[mysqld]
port=3306
basedir=F:/mysql-8.0.19-winx64/bin
datadir=F:/mysql-8.0.19-winx64/data
max_connections=200
max_connect_errors=10
character-set-server=UTF8MB4
default-storage-engine=INNODB
default_authentication_plugin=mysql_native_password
[mysql]
default-character-set=UTF8MB4
[client]
port=3306
default-character-set=UTF8MB4

3.cd到bin,运行mysqld --initialize --console,当出错时,根据出错信息将根目录中的share/english内容复制到指定内容。记住生成密码
4.执行mysqld --install
5.执行命令net start mysql,启动服务
6.mysql -u root -p
7.修改root密码:alter user root@localhost identified by 'newpassward';

你可能感兴趣的:(mysql)