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

后端 未结 14 1274
失恋的感觉
失恋的感觉 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:34

    In my case, I had installed the data directory to a different location. So the data directory really wasn't in the default location. Therefore, when I ran the mysqld command from the command prompt, I had to specify the data directory manually:

    mysqld --datadir=D:/MySQLData/Data

    Here's the documentation for mysqld command-line arguments.

提交回复
热议问题