最新更新后,Mysql server 5.7无法在Windows 10上启动

时间:2017-12-04 05:34:03

标签: mysql windows

我正在使用mySql server 5.7,自安装以来它运行良好。但是,在周末最新的Windows 10主页更新后,服务器似乎无法启动(通过mySql通知程序或通过mySql Workbench)

感谢任何帮助。

以下是mySQL工作台上错误日志文件的屏幕截图。screenshot of error log file

请帮帮我。

此外,这是我尝试从工作台应用程序启动服务器时获得的启动消息日志。

2017-12-04 11:34:54 - Workbench will use cmd shell commands to start/stop this instance
2017-12-04 11:34:59 - Starting server...
2017-12-04 11:35:03 - Server start done.

FROM DESKTOP-JVD2PIE.err:
    2017-12-04T06:04:59  0  Warning  option 'read_buffer_size': unsigned value 0 adjusted to 8192
    2017-12-04T06:04:59  0  Warning  option 'read_rnd_buffer_size': unsigned value 0 adjusted to 1
    2017-12-04T06:04:59  0  Warning  TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2017-12-04T06:04:59  0  Warning  'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
    2017-12-04T06:04:59  0  Note  C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.20-log) starting as process 8716 ...
    2017-12-04T06:04:59  0  Warning  InnoDB: innodb-page-size has been changed from the default value 16384 to 65536.
    2017-12-04T06:04:59  0  Note  InnoDB: Mutexes and rw_locks use Windows interlocked functions
    2017-12-04T06:04:59  0  Note  InnoDB: Uses event mutexes
    2017-12-04T06:04:59  0  Note  InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
    2017-12-04T06:04:59  0  Note  InnoDB: Compressed tables use zlib 1.2.3
    2017-12-04T06:04:59  0  Note  InnoDB: Number of pools: 1
    2017-12-04T06:04:59  0  Note  InnoDB: Not using CPU crc32 instructions
    2017-12-04T06:04:59  0  Note  InnoDB: Initializing buffer pool, total size = 1G, instances = 8, chunk size = 128M
    2017-12-04T06:04:59  0  Note  InnoDB: Completed initialization of buffer pool
    2017-12-04T06:04:59  0  ERROR  InnoDB: Data file '.\ibdata1' uses page size 16384, but the innodb_page_size start-up parameter is 65536
    2017-12-04T06:04:59  0  ERROR] InnoDB: Corrupted page [page id: space=0, page number=0  of datafile '.\ibdata1' could not be found in the doublewrite buffer.
    2017-12-04T06:04:59  0  ERROR  InnoDB: Plugin initialization aborted with error Generic error
    2017-12-04T06:05:00  0  ERROR  Plugin 'InnoDB' init function returned error.
    2017-12-04T06:05:00  0  ERROR  Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    2017-12-04T06:05:00  0  ERROR  Failed to initialize plugins.
    2017-12-04T06:05:00  0  ERROR  Aborting
    2017-12-04T06:05:00  0  Note  Binlog end
    2017-12-04T06:05:00  0  Note  Shutting down plugin 'CSV'
    2017-12-04T06:05:00  0  Note  C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: Shutdown complete
2017-12-04 11:35:05 - Checking server status...
2017-12-04 11:35:05 - Trying to connect to MySQL...
2017-12-04 11:35:05 - Can't connect to MySQL server on 'localhost' (10061) (2003)
2017-12-04 11:35:05 - Assuming server is not running
2017-12-04 11:35:09 - Checking server status...
2017-12-04 11:35:09 - Trying to connect to MySQL...
2017-12-04 11:35:09 - Can't connect to MySQL server on 'localhost' (10061) (2003)
2017-12-04 11:35:09 - Assuming server is not running

谢谢!

Dishant Shah

2 个答案:

答案 0 :(得分:0)

我不知道原因,但更新后删除了MySql的服务。但您可以按照以下步骤备份DataBase:

转到" MySql目录" / bin。

执行 mysqld.exe 文件。 (它将打开MySql临时的'实例。)

然后您必须使用以下脚本创建输出 .bat 文件:

/" MySql目录" / bin / mysqldump -u root -p" 密码" -P" 端口" " Schemma的名字" > C:/" 某些输出目录" /dump.sql

现在您已经备份了dump.sql文件

创建新的MySql服务时,要恢复数据,请执行以下操作来恢复数据:

使用以下脚本创建输入 .bat 文件:

/" MySql目录" / bin / mysql -u root -h 127.0.0.1 -p" 密码" -P" 端口" " Schemma的名字" < C:/" 输出目录" /dump.sql

忽略""。

您的MySql是否默认安装在默认目录上?

Anynone知道Windows Update崩溃MySql服务的原因吗?

答案 1 :(得分:0)

我可以建议备份您的现有数据。然后重新安装。

停止mysqld.exe [结束任务]

更新文件[my.ini]


[mysqld]

innodb_force_recovery = 4;

-您可以填写(1/2/3/4/5/6)


启动服务MYSQL57

-导出数据库

-Reisntall Mysql

相关问题