mysqld: Can't change dir to data. Server doesn't start

后端 未结 14 1297
失恋的感觉
失恋的感觉 2020-12-07 13:16

I installed a MySQL server with installer and it started. After reboot I tried to start it again and get the error:

D:\\Program Files\\MySQL\\MySQL Server 5.         


        
14条回答
  •  离开以前
    2020-12-07 13:22

    remove all files in "{path-to-mysql}\data" directory and run:

    mysqld --initialize-insecure --basedir={path-to-mysql}\mysql --datadir={path-to-mysql}\data --console
    

提交回复
热议问题