Host not allowed to connect to MySQL server (#1103)

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Host not allowed to connect to MySQL server (#1103)

Postby mattm591 » 30. October 2007 11:16

Hi,

I have just installed Xampp for LInux on Ubuntu 7.10 and tried to connect to the MySQL server using a simple script.

However I cannot connect. mysql_error() returns the following:

Code: Select all
Host 'Y2K-Laptop' is not allowed to connect to this MySQL server


and when I try to connect to it from another computer using Dreamweaver I receive error #1103.

What is wrong and how can I solve this?

Thanks,

Matt
mattm591
 
Posts: 2
Joined: 30. October 2007 11:13

Postby Wiedmann » 30. October 2007 14:18

However I cannot connect. mysql_error() returns the following:

You have used:
$db = mysql_connect('localhost', 'foo', 'bar');
?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby mattm591 » 30. October 2007 15:49

No. I am trying to connect to the server from a computer which isn't local so it's;
$db = mysql_connect('y2k-laptop', 'foo', 'bar');
sorry I should have made this clear.

Edit: Sorry, I just realised I hadn't changed the user to allow connections from any host.. problem solved!
mattm591
 
Posts: 2
Joined: 30. October 2007 11:13


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 17 guests