Error: #2005

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Disliked
-


Joined: 31 May 2005
Posts: 5

PostPosted: Wed Jun 01, 2005 1:09 pm    Post subject: Error: #2005 Reply with quote

Hello, I have sucessfully installed PHP5 and MySQL (I think so anyway), and when i go to http://127.0.0.1:1027/phpmyadmin/ I get the following error:

Quote:

Welcome to phpMyAdmin 2.6.1

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
Error

MySQL said: Documentation
#2005 - Unknown MySQL server host 'http' (11001)


This is my config.inc.php (without comments and password):

Quote:
$cfg['Servers'][$i]['host'] = 'http://127.0.0.1/MySQL/';
$cfg['Servers'][$i]['port'] = '1028';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '<password>';

When I installed MySQL I set the TCP port to 1028, as 1027 was taken up by the server.
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Wed Jun 01, 2005 2:35 pm    Post subject: Reply with quote

Quote:
$cfg['Servers'][$i]['host'] = 'http://127.0.0.1/MySQL/';

Are you sure you installed MySQL in your htdocs folder?
If you didn't, this needs to be changed to "localhost".
Also double-check your password for misspellings.
Back to top View user's profile Send private message Visit poster's website
Disliked
-


Joined: 31 May 2005
Posts: 5

PostPosted: Wed Jun 01, 2005 2:58 pm    Post subject: Reply with quote

Quote:
Are you sure you installed MySQL in your htdocs folder?

Yes; C:\Program Files\Abyss Web Server\htdocs\MySQL\
Quote:
Also double-check your password for misspellings.

The password is definitly correct too.
Back to top View user's profile Send private message
Disliked
-


Joined: 31 May 2005
Posts: 5

PostPosted: Wed Jun 01, 2005 6:14 pm    Post subject: Reply with quote

Never Mind, I've finally figured it out, I just had to change host ot localhost, without any http:// or anything.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group