[root@iZbp10xlek93e0is7ye8o6Z bin]# rm -f /etc/init.d/mysql
[root@iZbp10xlek93e0is7ye8o6Z bin]# ./mysqld --user=mysql --basedir=/usr/local/mysql-8.0 --datadir=/usr/local/mysql-8.0/data/ --initialize
mysqld: Can't read dir of '/etc/my.cnf.d' (OS errno 2 - No such file or directory)
找一个以前做过的mysql配置,复制过来即可

![[手游] 三网H5小游戏【少年仙路】WIN系服务端+Linux手工服务端+详细搭建教程](https://cdn.jxasp.com:9143/image/20260615/136BC33AA47EB0D84E878835A8B38FDB.png)

















