当我尝试一些插入操作时,MySQL失去了连接。试图重新启动它,但出现以下错误。它没有显示错误日志文件,但是实际上'DESKTOP-ILUV8FN1.err'
位于路径C:\ProgramData\MySQL\MySQL Server 8.0\Data
中。我还检查了my.ini,确实有以下声明:
log-bin="DESKTOP-ILUV8FN1-bin"
log-error="DESKTOP-ILUV8FN1.err"
工作台上显示错误日志:
2019-05-14 20:08:15 - Workbench will use cmd shell commands to start/stop this instance
Could not open error log file: [Errno 2] No such file or directory: 'DESKTOP-ILUV8FN1.err'
2019-05-14 20:08:20 - Starting server...
2019-05-14 20:08:20 - Server start done.
2019-05-14 20:08:22 - Checking server status...
2019-05-14 20:08:22 - Trying to connect to MySQL...
2019-05-14 20:08:22 - Can't connect to MySQL server on 'localhost' (10061) (2003)
2019-05-14 20:08:22 - Assuming server is not running
2019-05-14 20:08:26 - Checking server status...
2019-05-14 20:08:26 - Trying to connect to MySQL...
2019-05-14 20:08:26 - Can't connect to MySQL server on 'localhost' (10061) (2003)
2019-05-14 20:08:26 - Assuming server is not running