MySQL Forums
Forum List  »  Install & Repo

on linux
Posted by: jerry nickles
Date: June 27, 2009 08:29PM

I haven't read through the other replies, but below is the command to log in from a command line interface.

mysql -h <server IP> -u <username> -p

So if you want connect to a MySQL server running on the machine you are logged in on as root. Use the following.

mysql -h -u root -p

For logging in on a localhost you don't really need to use the loopback address but it's good practice for remembering the command syntax.

Options: ReplyQuote

Written By
on linux
June 27, 2009 08:29PM
December 16, 2007 02:18AM
December 27, 2007 02:08PM
January 16, 2011 06:51AM
August 27, 2009 12:22AM

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.