Windows下安装MySql 8.x

https://dev.mysql.com/downloads/
下载MySQL Community Server - mysql-8.0.31-winx64.zip
解压后命令行,尽量管理员
https://blog.csdn.net/m0_62377066/article/details/122058079
初始化数据库,记下密码
mysqld --initialize --console
安装服务
mysqld -install
启动服务
net start mysql
登录测试
mysql -u root -p
必须修改密码
alter user 'root'@'localhost' identified by '想要设置的密码';
commit;

my.ini可以放在和bin同级文件夹
[mysqld]
secure-file-priv=""

参考资料:
https://blog.csdn.net/m0_62377066/article/details/122058079

标签: none

添加新评论