Hi,
I am using Windows 11 and I downloaded the mysql-installer-community-8.0.39.0
While configuring the mysql server, it threw an error in "Initializing Database" step. Below is the log from the configuration setup:
"""
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
Attempting to delete a Windows Firewall rule with command: netsh.exe advfirewall firewall delete rule name="Port 3306" protocol=TCP localport=3306
Deleted 1 rule(s).
Ok.
Adding a Windows Firewall rule for MYSQL80 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.
Attempting to delete a Windows Firewall rule with command: netsh.exe advfirewall firewall delete rule name="Port 33060" protocol=TCP localport=33060
Deleted 1 rule(s).
Ok.
Adding a Windows Firewall rule for MYSQL80 on port 33060.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 33060" protocol=TCP localport=33060 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 the required filesystem permissions to the 'NT AUTHORITY\NetworkService' account.
Granted permissions to the data directory.
Updating existing service...
Existing service updated
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 8.0.39...
Failed to start process for MySQL Server 8.0.39.
Database initialization failed.
Ended configuration step: Initializing database (may take a long time)
"""
I even attempted to remove mysql server product which again failed with the following log:
"""
Beginning remove step: Stopping the server
Ended remove step: Stopping the server
Beginning remove step: Removing the MySQL Windows service
Removing the Windows service created for this server installation.
Deleting the existing service.
The existing service has been deleted.
Ended remove step: Removing the MySQL Windows service
Beginning remove step: Uninstalling product
1: The action 'Remove' for product 'MySQL Server 8.0.39' failed.
Ended remove step: Uninstalling product
"""
I then attempted to uninstall mysql server from 'installed apps' in settings which also failed with the following message prompt:
"""
The installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
"""
I have tried googling these errors and even followed some youtube videos to try to fix them but without any success.
Asking for help in resolving this issue as soon as possible.
I am using Windows 11 and I downloaded the mysql-installer-community-8.0.39.0
While configuring the mysql server, it threw an error in "Initializing Database" step. Below is the log from the configuration setup:
"""
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
Attempting to delete a Windows Firewall rule with command: netsh.exe advfirewall firewall delete rule name="Port 3306" protocol=TCP localport=3306
Deleted 1 rule(s).
Ok.
Adding a Windows Firewall rule for MYSQL80 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.
Attempting to delete a Windows Firewall rule with command: netsh.exe advfirewall firewall delete rule name="Port 33060" protocol=TCP localport=33060
Deleted 1 rule(s).
Ok.
Adding a Windows Firewall rule for MYSQL80 on port 33060.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 33060" protocol=TCP localport=33060 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 the required filesystem permissions to the 'NT AUTHORITY\NetworkService' account.
Granted permissions to the data directory.
Updating existing service...
Existing service updated
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 8.0.39...
Failed to start process for MySQL Server 8.0.39.
Database initialization failed.
Ended configuration step: Initializing database (may take a long time)
"""
I even attempted to remove mysql server product which again failed with the following log:
"""
Beginning remove step: Stopping the server
Ended remove step: Stopping the server
Beginning remove step: Removing the MySQL Windows service
Removing the Windows service created for this server installation.
Deleting the existing service.
The existing service has been deleted.
Ended remove step: Removing the MySQL Windows service
Beginning remove step: Uninstalling product
1: The action 'Remove' for product 'MySQL Server 8.0.39' failed.
Ended remove step: Uninstalling product
"""
I then attempted to uninstall mysql server from 'installed apps' in settings which also failed with the following message prompt:
"""
The installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
"""
I have tried googling these errors and even followed some youtube videos to try to fix them but without any success.
Asking for help in resolving this issue as soon as possible.