Failed to Start Service MySQL80 - mysql

First I'd like to say that I've searched for this error and I didn't find anything helpful. I'm trying to install MySQL and everything goes alright until I get to "Apply Configuration". When it gets to "Starting the Server", it fails.
Image with the error here.
And I get the following on the log:
Beginning configuration step: Starting the server
Attempting to start service MySQL80...
Failed to start service MySQL80.
Waiting until a connection to MySQL Server 8.0.30 can be established (with a maximum of 10 attempts)...
Retry 1: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Waiting 5 seconds before the next connection attempt...
Retry 2: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Waiting 5 seconds before the next connection attempt...
Retry 3: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Waiting 5 seconds before the next connection attempt...
Retry 4: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Waiting 5 seconds before the next connection attempt...
Retry 5: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Waiting 5 seconds before the next connection attempt...
Retry 6: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Waiting 5 seconds before the next connection attempt...
Retry 7: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Waiting 5 seconds before the next connection attempt...
Retry 8: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Waiting 5 seconds before the next connection attempt...
Retry 9: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Waiting 5 seconds before the next connection attempt...
Retry 10: Attempting to connect to Mysql#localhost:3306 with user root with no password...
Unknown error: One or more errors occurred.
Failed to connect to MySQL Server 8.0.30 after 10 attempts.
Ended configuration step: Starting the server
I'm not a hacker nor programmer and I don't know how to do very complicated stuff on PCs (messing with paths, etc), if you can help please detail step by step what I have to do. Getting MySQL to work properly is extremely important to me and I'd appreciate your help. Thank you.

Related

XAMPP phpmyadmin error list Cannot connect: invalid settings, Packets out of order, mysqli::real_connect(): Error while reading greeting packet etc

I got following errors when I start the server. I did not changed any password or username before stop the xampp and shutdown the computer.
Cannot connect: invalid settings.
Packets out of order. Expected 0 received 1. Packet size=68
mysqli::real_connect(): Error while reading greeting packet. PID=5140
mysqli::real_connect(): (HY000/2006): MySQL server has gone away
Connection for controluser as defined in your configuration failed.
Packets out of order. Expected 0 received 1. Packet size=68
mysqli::real_connect(): Error while reading greeting packet. PID=5140
mysqli::real_connect(): (HY000/2006): MySQL server has gone away
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Update:
when I changed the $cfg['Servers'][$i]['AllowNoPassword'] = true; to false; now only shows following error
phpMyAdmin tried to connect to the MySQL server,
and the server rejected the connection.
You should check the host, username and password in your configuration and make sure that
they correspond to the information given by the administrator of the MySQL server.

Mysql installation failure to start server

Got a new laptop [Windows 11] and for the first time I am facing issues with MySQL server. It installs alright but fails at the step "Starting server".
When I check the logs on the next tab I get the error message:
Attempting to connect to Mysql#localhost:3306 with user root with no password... MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
I have tried other versions, tried to start server from services, changed to Local System Account under service properties, but still the server just wont start.

Unable to start the MySQL80 service on local computer

I'm installing the MySQL8.0.18. While applying the configuration, whenever I press the execute it stops on starting the server and does not configure it. In the log tab, it says;
Beginning configuration step: Starting the server
Attempting to start service MySQL80...
Failed to start service MySQL80.
Waiting until a connection to MySQL Server 8.0.18 can be established (with a maximum of 10 attempts)...
Retry 1: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 2: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 3: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 4: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 5: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 6: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 7: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 8: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 9: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 10: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Failed to connect to MySQL Server 8.0.18 after 10 attempts.
Ended configuration step: Starting the server
I don't know if its the location error or something because I saved my setup in E:\setups\mySQL\setup. It gives the error shown in the snapshot.
I tried to solve it according to the first answer here but it doesn't seem to help.
I tried to reinstall it but it still gives the same error somehow. what should I do?
Well, Error 2 in MySQL simply arises due to missing file or wrong location. Probably the path of the service you are trying to run is wrong or missing.
Here are some reference of the same problem
windows could not start the MySQL. service on local computer. Error 2 : The system cannot find the file specified
MySql service Error 2: the system cannot find the file specified
Could not start the MySQL service on Local Computer. Error 2 [FIXED]
the MySQL service on local computer started and then stopped (Can also give this a look)
Possible Solution:
Check if the path to the service MySQL80 is proper and all the files exists with proper execution and network permissions. If nothing works, you can always use a different version to see if it is working there and if it does, report a bug in the new version.
I don't know,if we have the same Mysql program design,i'am using the latest version 8.0.26.Try this:
Open your sql editor->go to navigator part left of the screen ->Inside -Instance- select Startup/Shutdown .
Then click on -Start server -button.
If didn't work ,or the program was crashed, go to windows search tool and type -Services- then search about Mysql service ,then click -start- it should be closed....
Hope this work..
I ran into the same problem.Here's how I resolved it.
Win+R
input"services.msc", then click "Enter"
find the MySQL service, right click, choose the "attribute" option
choose the "log in" option, then choose "Local System Account"
END
I hope that solves your problem.
Go to "C:\ProgramData\MySQL". You'll find a list of archived my.ini files.
Use one to replace the current my.ini file located inside "C:\ProgramData\MySQL\MySQL Server xx.0"

Unable to connect to any of the specified MySQL hosts when I just start to configure

I was starting to learning SQL, then I download MySQL, but I am stuck in this error, I retry again and again but it didn't work still.
Beginning configuration step: Starting the server
Attempting to start service MySQL80...
Successfully started service MySQL80.
Waiting until a connection to MySQL Server 8.0.18 can be established (with a maximum of 10 attempts)...
Retry 1: Attempting to connect to Mysql#localhost:3305 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 2: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 3: Attempting to connect to Mysql#localhost:3305 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 4: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 5: Attempting to connect to Mysql#localhost:3305 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 6: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 7: Attempting to connect to Mysql#localhost:3305 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 8: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 9: Attempting to connect to Mysql#localhost:3305 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 10: Attempting to connect to Mysql#localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Failed to connect to MySQL Server 8.0.18 after 10 attempts.
Ended configuration step: Starting the server
I was face same problem when it come to step starting the server it make error!
Based on my experience This is caused by the antivirus program, after I disabled the Antivirus, the installation was completed without problems.

Attempting to connect to Mysql#localhost:3306 with user root with no password error while installing MYSQL

While installing MYSQL i got this error "MySQL error 0: Reading from the stream has failed.
Waiting 3 seconds before the next connection attempt...
Retry 10: Attempting to connect to Mysql#localhost:3306 with user root with no password..."
Finished configuration of MySQL Server 8.0.13 with state ConfigurationError
I have provided the password still it is showing no password,, i have also googled it but unable to find anything useful. Please help me with this issue