MySQL Forums
Forum List  »  PHP

Re: #1130 - Host 'localhost' is not allowed to connect to this MySQL server
Posted by: Boris Gnarf
Date: November 23, 2007 02:19PM

Just wanted to post my findings about a similar problem i had, but on OpenBSD.

- OpenBSD 4.2
- a fresh installation on a new server
- installed mysql-server with the package manager
- created the tables with mysql_install_db
- started server

I could not connect in with localhost, server-ip or any other way.
I traced the problem back to my user.MYD, user.MYI and user.frm not being filled correctly. So there were no users which could actually connect - this results in the same error.

This problem was cause becaues mysql_install_db couldn't create the temporary tables in /tmp (i missed the error messages three times, because the program always outputs quite a bit and i cba reading it).

This was because the rights on the /tmp folder were incorrect, which i blame the openbsd installer for, but anyways... thats it. (fix: chmod 01777 /tmp).

So, to recap: make sure your tables are initialized correct after a new installation.

(Hope i posted this in a relevant forum...)



Edited 1 time(s). Last edit at 11/23/2007 02:20PM by Boris Gnarf.

Options: ReplyQuote


Subject
Written By
Posted
Re: #1130 - Host 'localhost' is not allowed to connect to this MySQL server
November 23, 2007 02:19PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.