mysql 8.x zip包编译安装win64

 先到官网下载mysql的64位版本压缩包

解压后,配置环境变量:D:\XXX\XXX\bin;

# 编译 查看初始密码
mysqld --initialize --console
# 安装
mysqld --install
# 启动
net start mysql
# 停止
net stop mysql
# 设置密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Liu123456';
# 开启远程
5.7
grant all privileges on *.* to 'root'@'%' identified by 'Liu123456' with grant option;
v8
update user set host="%" where user="root";
flush privileges;

你可能感兴趣的:(20_数据库_mysql,mysql,tcp/ip,数据库)