poinipoi Posted April 26, 2017 Posted April 26, 2017 how to connect to sql by using php?Johnny Server $servername = "64.62.211.131";is this ip? or only type localhost Quote
wolstech Posted April 26, 2017 Posted April 26, 2017 If the script is running on Johnny, use localhost. If it's running on another computer, use johnny.heliohost.org, and add the remote computer's IP address to the list in cPanel's remote mysql section. Quote
Ice IT Support Posted April 27, 2017 Posted April 27, 2017 Some example code is available on our wiki. Instructions to enable remote MySQL connections are also at the bottom of that page. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.