版本8.0.25,今天启动发现抱错,网上搜索一下发现这样可行
启动MySQL报错:
搜索了一下,按照这样步骤解决了
1.配置一下my.ini
[mysqld]
basedir ="D:\mysql-8.0.25-winx64\mysql-8.0.25-winx64"
datadir ="D:\mysql-8.0.25-winx64\mysql-8.0.25-winx64\data"
port=3306
server_id =10
character-set-server=gbk
character_set_filesystem=gbk
[client]
port=3306
default-character-set=gbk
[mysqld_safe]
timezone="CST"
[mysql]
default-character-set=utf8
2.删除data文件夹
3.cmd进入到bin下,执行命令,重新创建data文件夹
mysqld --initialize
4.重新启动即可