MYSQL Problems #1130 Cannot log in to the MySQL server

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Ben
New to forums
New to forums
Posts: 8
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Dec 17, 2014 6:31 am

MYSQL Problems #1130 Cannot log in to the MySQL server

Post by Ben »

Howdy Folks,

So basically I'm having problems with MYSQL connection. I use WAMP Server as my source for everything but when I look on youtube videos they seem the be able to connect to there localhost fine and instantly have access and change there password within phpmyadmin. sadly I cant even get there. so if you have any ideas why please reply ASAP.

Error Message: #1130 Cannot log in to the MySQL server

Thanks.
Ben
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: MYSQL Problems #1130 Cannot log in to the MySQL server

Post by Spray »

This error means that the host you're attempting to use is not allowed to connect to the MySQL server. If you're attempting to use localhost and getting denied, you may need to create the user in the first place.

Try running the following command via a cmd prompt window:

mysqladmin -u root password 'my_new_password_here'

If that doesn't work, try using 127.0.0.1 to connect, rather than "localhost".
Ben
New to forums
New to forums
Posts: 8
Joined: Wed Dec 17, 2014 6:31 am

Re: MYSQL Problems #1130 Cannot log in to the MySQL server

Post by Ben »

Tried both methods still no access:

CMD attempt:

mysqladmin: connect to server at 'localhost' failed
Error: 'Host 'localhost' is not allowed to connect to this MYSQL server'

127.0.0.1 didn't do anything what localhost has done.
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: MYSQL Problems #1130 Cannot log in to the MySQL server

Post by Spray »

Did attempting to use 127.0.0.1 result in the same type of error?
Ben
New to forums
New to forums
Posts: 8
Joined: Wed Dec 17, 2014 6:31 am

Re: MYSQL Problems #1130 Cannot log in to the MySQL server

Post by Ben »

Yes exactly the same Error

#1130 Cannot log in to the MySQL server
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: MYSQL Problems #1130 Cannot log in to the MySQL server

Post by Spray »

In order to correct this, you would need to launch mysqld with the -skip-grant-tables to bypass privilege checks, then update the users table manually. If this is a new installation, though, I'd strongly consider just re-installing. MySQL should be allowing root @ localhost by default.
Ben
New to forums
New to forums
Posts: 8
Joined: Wed Dec 17, 2014 6:31 am

Re: MYSQL Problems #1130 Cannot log in to the MySQL server

Post by Ben »

How would I launch mysqld with the skip grant powers?

Thanks.
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: MYSQL Problems #1130 Cannot log in to the MySQL server

Post by Spray »

Via the cmd prompt, you would run:

mysqld --skip-grant-tables --skip-networking

The "--skip-networking" is added to ensure remote connections aren't allowed, as the server will be insecure without grant tables.
Post Reply