harshit2 Posted July 4, 2020 Posted July 4, 2020 my tommy server has java access but unable to connect to a mysql database ( php my admin ) in jsp any answer ? ?
Sn1F3rt Posted July 4, 2020 Posted July 4, 2020 What's the error? Also, are you connecting to the database locally or remotely.
harshit2 Posted July 5, 2020 Author Posted July 5, 2020 database in not connected locally or remotely
Sn1F3rt Posted July 5, 2020 Posted July 5, 2020 I mean where are you trying to connect from? If you're connecting remotely you need to enable it first.
harshit2 Posted July 6, 2020 Author Posted July 6, 2020 guidance reequired to connect database remotely or loally
Sn1F3rt Posted July 6, 2020 Posted July 6, 2020 Go to "Remote MySQL" section in cPanel, and add a "%" in "Access Hosts".
harshit2 Posted July 6, 2020 Author Posted July 6, 2020 (edited) i have already added % in the remote mysql showing eerror Edited July 6, 2020 by harshit2
Sn1F3rt Posted July 6, 2020 Posted July 6, 2020 Ah, you're hosting the database locally, you don't need remote connection. That error hints that something is wrong with your code but I'm not sure what's it.
wolstech Posted July 6, 2020 Posted July 6, 2020 Without an actual error message and the database connection settings you’re using, it’s difficult to diagnose anything. Can you post the connection code (edit out the password please)? What error message are you getting when it tries to connect?
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