初始化数据库时出错(可能需要很长时间)mysql服务器

初始化数据库时出错(可能需要很长时间)mysql服务器,mysql,Mysql,我正在尝试安装MySQL服务器8.0(有错误),然后卸载它,并尝试安装5.7(我了解到人们可以用5.7使其工作),结果是相同的错误。我不知道这个问题,因为这是我第一次使用MySQL来学习它,而且还停留在安装过程中。以下是安装过程的日志: Beginning configuration step: Writing configuration file Saving my.ini configuration file... Saved my.ini configuration file. Ende

我正在尝试安装MySQL服务器8.0(有错误),然后卸载它,并尝试安装5.7(我了解到人们可以用5.7使其工作),结果是相同的错误。我不知道这个问题,因为这是我第一次使用MySQL来学习它,而且还停留在安装过程中。以下是安装过程的日志:

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
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 (may take a long time)

Attempting to run MySQL Server with --initialize-insecure option...
Starting process for MySQL Server 5.7.29...
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...
2020-02-14T10:43:06.401608Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-02-14T10:43:06.401673Z 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.
2020-02-14T10:43:06.408061Z 0 [ERROR] InnoDB: Unable to create temporary file; errno: 0
2020-02-14T10:43:06.408344Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-02-14T10:43:06.408444Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-02-14T10:43:06.408532Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-02-14T10:43:06.408617Z 0 [ERROR] Failed to initialize builtin plugins.
2020-02-14T10:43:06.408711Z 0 [ERROR] Aborting
Process for mysqld, with ID 15120, was run successfully and exited with code 1.
Failed to start process for MySQL Server 5.7.29.
Database initialization failed.
Ended configuration step: Initializing database (may take a long time)

有人知道有什么问题吗?

有什么问题吗?我认为执行服务器安装程序的用户操作系统帐户在文件系统中没有某些权限。我认为您必须以管理员身份运行此操作系统account@RiggsFolly管理员在文件系统中的权限可能很容易受到限制。@RiggsFolly我尝试以管理员身份运行它,但结果是一样的