harshit2 Posted July 4, 2020 Share 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 Link to comment Share on other sites More sharing options...
Sn1F3rt Posted July 4, 2020 Share Posted July 4, 2020 What's the error? Also, are you connecting to the database locally or remotely. Quote Link to comment Share on other sites More sharing options...
harshit2 Posted July 5, 2020 Author Share Posted July 5, 2020 database in not connected locally or remotely Quote Link to comment Share on other sites More sharing options...
Sn1F3rt Posted July 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
harshit2 Posted July 6, 2020 Author Share Posted July 6, 2020 how to enable that Quote Link to comment Share on other sites More sharing options...
harshit2 Posted July 6, 2020 Author Share Posted July 6, 2020 guidance reequired to connect database remotely or loally Quote Link to comment Share on other sites More sharing options...
Sn1F3rt Posted July 6, 2020 Share Posted July 6, 2020 Go to "Remote MySQL" section in cPanel, and add a "%" in "Access Hosts". Quote Link to comment Share on other sites More sharing options...
harshit2 Posted July 6, 2020 Author Share Posted July 6, 2020 (edited) i have already added % in the remote mysql showing eerror Edited July 6, 2020 by harshit2 Quote Link to comment Share on other sites More sharing options...
Sn1F3rt Posted July 6, 2020 Share 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 Link to comment Share on other sites More sharing options...
wolstech Posted July 6, 2020 Share 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 Link to comment Share on other sites More sharing options...
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.