MySQL Forums
Forum List  »  Newbie

Re: Cannot connect to my Database
Posted by: Peter Brawley
Date: January 20, 2013 11:48AM

> How does it know what server to connect to if all it has is localhost?

The connect call determines that, eg in PHP mysql_connect() or mysqli_connect(). In such a call, the host argument specifies the hosting value thast is to be matched against a value of the `host` column in the mysql.user table.

Suggest you read the manual section on server privs & auth.

Options: ReplyQuote


Subject
Written By
Posted
January 18, 2013 12:09AM
January 20, 2013 12:38AM
Re: Cannot connect to my Database
January 20, 2013 11:48AM


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.