MySQL Forums
Forum List  »  Newbie

Re: Connecting to my mysql server
Posted by: Alexandros Panayi
Date: July 23, 2017 06:58PM

Thanks for your reply Barry.

Perhaps this is an extremely stupid question, and I apologize in advance:

1) If my script uses "localhost" as the servername to access the database, and let's say a customer "Bob" from Oregon accesses my website. "Bob" activates the page which runs the script containing the connection to the database "localhost." Would this even work? Since "localhost" pertains to the mysql server on MY webserver, not his.

2) If I want someone else to access my mysql. That person cannot use "localhost" to connect since "localhost" is wired specifically to the user and not globally right? Therefore, that someone would need my servername & password & port number to connect to my mysql server. How do I find that "servername" to allow someone from another device to connect to my mysql?

Options: ReplyQuote


Subject
Written By
Posted
Re: Connecting to my mysql server
July 23, 2017 06:58PM


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.