扫描二维码

添加客服咨询详情

添加微信立即咨询

咨询热线:15918671994

—— 专业电商系统及解决方案提供服务商 ——

多用户
商城系统

订单
管理系统

订货
管理系统

多语言
商城系统

商淘云多用户电商系统在window10下的wamp的mysql运行问题排查

发表于 2021-06-16 17:31:04   浏览:638

1.查看mysql日志:

2019-08-28T16:46:16.909701Z 0 [ERROR] InnoDB: Header page consists of zero bytes in datafile: .\ibdata1, Space ID:0, Flags: 0. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting-datadict.html for how to resolve the issue.

2019-08-28T16:46:16.912139Z 0 [ERROR] InnoDB: Corrupted page [page id: space=0, page number=0] of datafile '.\ibdata1' could not be found in the doublewrite buffer.

2019-08-28T16:46:16.913675Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption

2019-08-28T16:46:17.218682Z 0 [ERROR] Plugin 'InnoDB' init function returned error.

2019-08-28T16:46:17.220934Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

2019-08-28T16:46:17.223186Z 0 [ERROR] Failed to initialize builtin plugins.

2019-08-28T16:46:17.225009Z 0 [ERROR] Aborting

到mysql目录下找到my.ini,在其最后加上这两句:

innodb_flush_method=normal

explicit_defaults_for_timestamp=true

上边两句明明这个文件里边已经有了,但是不加在一起就会出其他问题。。。

加完之后保存,然后删除mysql的data目录下所有文件。

然后再在cmd目录下定位到mydql的bin目录下执行下边语句:

mysqld --initialize --user=mysql --console

多用户商城系统会创建库,并且有个临时密码(这个临时密码我试过了,貌似不能用的,用这个登录客户端会提示密码已经过期了,但是登录mysql的console则可以)

所以我们继续登录mysql console修改一下数据库密码:

mysql> set password for root@localhost = password('123456');

Query OK, 0 rows affected, 1 warning (0.00 sec)

这时候我们用123456作为密码就可以登录了。

商淘云公众号