安装时出错-数据库初始化失败

crcmnpdw  于 2021-06-24  发布在  Mysql
关注(0)|答案(4)|浏览(511)

**结束。**此问题不符合堆栈溢出准则。它目前不接受答案。
**想改进这个问题吗?**更新问题,使其成为堆栈溢出的主题。

两年前关门了。
改进这个问题
在mysqlserver安装的最后一步(apply configurations)中,我遇到了一个奇怪的错误。我搞不懂。日志如下:

Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 3306" protocol=TCP localport=3306 dir=in action=allow
Ok.

Successfully added the Windows Firewall rule.
Ended configuration step: Updating Windows Firewall rules

Beginning configuration step: Adjusting Windows service
Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding new service
New service added
Ended configuration step: Adjusting Windows service

Beginning configuration step: Initializing Database
Attempting to run MySQL Server with --initialize-insecure option...
Starting process for MySQL Server 8.0.11...
Starting process with command: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --console --initialize-insecure=on...
2018-06-25T21:06:16.705865Z 0 [ERROR] [MY-011071] [Server] Unknown suffix '.' used for variable 'lower_case_table_names' (value '0.0')
2018-06-25T21:06:16.706023Z 0 [ERROR] [MY-011071] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Error while setting value '0.0' to 'lower_case_table_names'
2018-06-25T21:06:16.706780Z 0 [ERROR] [MY-010119] [Server] Aborting
2018-06-25T21:06:16.707053Z 0 [Note] [MY-010120] [Server] Binlog end
Process for mysqld, with ID 6372, was run successfully and exited with code 1.
Failed to start process for MySQL Server 8.0.11.
Database initialization failed.
Ended configuration step: Initializing Database

这里怎么了?

ugmeyewa

ugmeyewa1#

似乎对我们有用的是,在安装过程中,当提示您升级安装程序时,请选择“是”。

x0fgdtte

x0fgdtte2#

以下是对我有效的:我卸载了所有的东西,重新下载安装程序,更新了它,它终于工作了!奇怪的错误。。

bqf10yzr

bqf10yzr3#

只是有同样的问题,我不知道是什么导致数据库初始化失败。但在我用“mysql installer-community”完成卸载后,这个错误就消失了,重新启动我的电脑,然后尝试安装mysql服务器。

62lalag4

62lalag44#

我在两台不同的机器上运行开发系统和beta生产系统。我的生产系统星期天/星期一就坏了。最后做了一个完整的重新安装,让它再次运行。今天,我的开发系统在服务器重启后宕机了。
我发现文件“my.ini”(与数据一起定位)中的最后一行导致错误“lower\u case\u table\u names=0.0”是无效设置。对于windows,将其更改为1,然后我可以在没有任何其他更改的情况下重新启动服务器。我讨厌这样的修复,谁改变了那个设置?

相关问题