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
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.
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now