问题.
2024-03-30T07:42:07.863484Z 0 [System] [MY-013169] [Server] D:\develop\mysql\mysql-8.0.28-winx64\bin\mysqld.exe (mysqld 8.0.28) initializing of server in progress as process 28464 2024-03-30T07:42:07.864206Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. 2024-03-30T07:42:07.864797Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting. 2024-03-30T07:42:07.864803Z 0 [ERROR] [MY-013236] [Server] The designated data directory D:\develop\mysql\mysql-8.0.28-winx64\data\ is unusable. You can remove all files that the server added to it. 2024-03-30T07:42:07.865132Z 0 [ERROR] [MY-010119] [Server] Aborting 2024-03-30T07:42:07.865669Z 0 [System] [MY-010910] [Server] D:\develop\mysql\mysql-8.0.28-winx64\bin\mysqld.exe: Shutdown complete (mysqld 8.0.28) MySQL Community Server - GPL.
突发奇想想重装下mysql,然后按照之前文章记录安装出现上述问题
根据问题描述:
1.my.ini文件中 character-set-server 应改为UTF8MB4
2.原始记录文件夹中有配置的data文件请删除
解决:
my.ini文件中 character-set-server = UTF8MB4
原始记录文件夹中有配置的data文件请删除
然后执行安装就成了