[thelist] Mysql > finding out the name of remote server

Phil Turmel philip at turmel.org
Wed Jun 21 19:41:24 CDT 2006

Paul Bennett wrote:
> Hi all,
> I've some updates to make on a db, which I want to do using the mysql command line client.
> I'm getting 'Unknown MySQL server host' when I try to connect using:
> Mysql -h localhost@<server name> -u <username>;
> I have full file access to the server, but didn't set it up, so I don't know the correct name of the mysql server process running on it - is there any way to find this out? 
> I've run phpinfo() without turning up anything helpful.
> Paul

Hi Paul,

Try dropping 'localhost@', and you may also want to add '-p' (to prompt 
for the password:

Mysql -h <server name> -u <username> -p



More information about the thelist mailing list