(已解决)MySQL安装过程中出现initializing database报错

07-13 1412阅读

不是中文乱码问题!

(已解决)MySQL安装过程中出现initializing database报错
(图片来源网络,侵删)

Beginning configuration step: Writing configuration file

Saving my.ini configuration file...

Saved my.ini configuration file.

Ended configuration step: Writing configuration file

Beginning configuration step: Updating Windows Firewall rules

Adding a Windows Firewall rule for MySQL57 on port 3306.

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

确定。

Successfully added the Windows Firewall rule.

Ended configuration step: Updating Windows Firewall rules

Beginning configuration step: Adjusting Windows service

Attempting to grant the required filesystem permissions to the 'NT AUTHORITY\NetworkService' account.

Granted permissions to the data directory.

Adding new service

New service added

Ended configuration step: Adjusting Windows service

Beginning configuration step: Initializing database (may take a long time)

Deleting the data directory from a previous (failed) configuration...

Attempting to run MySQL Server with --initialize-insecure option...

Starting process for MySQL Server 5.7.44...

Starting process with command: C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --console --initialize-insecure=on --lower-case-table-names=1...

TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

InnoDB: New log files created, LSN=45790

InnoDB: Creating foreign key constraint system tables.

unknown variable 'mysqlx_port=0.0'

Aborting

Process for mysqld, with ID 25188, was run successfully and exited with code 1.

Failed to start process for MySQL Server 5.7.44.

Database initialization failed.

Ended configuration step: Initializing database (may take a long time)

日志信息:

DateTime=2024-06-21T02:11:42.0387511Z

mysql-installer Error: 50 : Package - Error - Something is wrong with the package properties : 

未将对象引用设置到对象的实例。

既然安装包装不上,那就换一个方法装

使用压缩包+cmd安装MySQL5.7:2022-11-05 |MySQL5.7.40下载、安装及配置 by YUNER_mysql5.7下载-CSDN博客

VPS购买请点击我

文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

目录[+]