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 ? ? Quote
Sn1F3rt Posted July 4, 2020 Posted July 4, 2020 What's the error? Also, are you connecting to the database locally or remotely. Quote
harshit2 Posted July 5, 2020 Author Posted July 5, 2020 database in not connected locally or remotely Quote
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. Quote
harshit2 Posted July 6, 2020 Author Posted July 6, 2020 guidance reequired to connect database remotely or loally Quote
Sn1F3rt Posted July 6, 2020 Posted July 6, 2020 Go to "Remote MySQL" section in cPanel, and add a "%" in "Access Hosts". Quote
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 Quote
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. Quote
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? 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.