phpMyAdmin help?

Soldato
Joined
7 May 2004
Posts
5,503
Location
Naked and afraid
Not used this tool before and can't get it to connect to mySQL, do I have to do something special if my sql db is hosted on a different server?

Its fasthosts and their sql isn't on the same server as the home directory. :confused:
 
Do I enter the ip address in the host name?

Theres a host name and thats it, how can it find that host if I just put in the databases name when its not local. :confused:
 
Mr_L said:
The following are the important ones; -

Code:
$cfg['PmaAbsoluteUri'] = 'http://www.your_web.net/path_to_your_phpMyAdmin_directory';
$cfg['Servers'][$i]['host'] = 'the ip of the host';
$cfg['Servers'][$i]['user'] = 'the db username';
$cfg['Servers'][$i]['password'] = 'the db password';
$cfg['Servers'][$i]['only_db'] = 'name of the db';


Thats very helpful, I'll use that in my config file and see if it works (obviously with fields filled in). :)
 
Hmmm, I still get a #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured).

I even took out the absolute path to make things easier lol. :o :confused:

I just added that code between a <?php and ?> if thats correct?
 
<?php

$cfg['Servers'][$i]['host'] = ' 213.#.#.#';
$cfg['Servers'][$i]['user'] = '###';
$cfg['Servers'][$i]['password'] = '###';
$cfg['Servers'][$i]['only_db'] = '###';

?>

Obviously I've omitted the sensitive fields.
 
Hmm thats odd, in my download there is no config file?

I think it must be created when you run the GUI but in the documentation it does suggest you can configure your own!

Sorry for being a numpty, this really isn't my area of expertise. :)
 
Cheers guys I got it working!

... only to find I can't import my 8MB sql db because the phpmyadmin has a 2MB upload limit - lol!

[/bang head on wall and repeat]
 
Back
Top Bottom