在配置mysql 中出现报错号
[ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
[ERROR] [MY-013236] [Server] The designated data directory G:\mysql\mysql-8.0.28-winx64\data\ is unusable. You can remove all files that the server added to
[ERROR] [MY-010119] [Server] Aborting
说明在my.ini配置文件中的路径写错了,我原本的路径是
basedir=G:\mysql\mysql-8.0.28-winx64
datadir=G:\mysql\mysql-8.0.28-winx64\data
解决方法是把所有路径改为双斜杠的形式
我的操作过程: