[HELP!!] Mysql error with a java application

Status
This thread has been locked.

HACKEDBYZCLAU

HACKED FOLLOW US ON TWITTER @ZCLXU @MUYRANCIO_
Banned
Feedback score
1
Posts
33
Reactions
4
Resources
0

I have an error and once a doubt, I want to connect my java application to a mysql, but not to a local mysql. I want it to connect to a mysql of a web hosting. Is this possible to do?

I tried to do it, but it does not work

I need help please
Y7l6Wq8.png
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Samuel

The most serious person ever.
Supreme
Feedback score
33
Posts
2,210
Reactions
1,572
Resources
0
...change localhost to the IP of the MySQL server.
...change the username, password and database to the correct values
...build
...execute
...done
 

Mooselk

Motocross enthusiast
Premium
Feedback score
9
Posts
298
Reactions
213
Resources
0
Most web hosts don't allow remote connections, I'd check that first.
 

Harry

Rustacean
Management
Feedback score
10
Posts
1,606
Reactions
876
Resources
0
As above, this is most likely the cause. I'm guessing your website provider uses cPanel so you would have to go to Databases => Remote MySQL and add the IP address of the server you are running the java application on (eg. if you're running it on your home computer, search up your public IP address on google and add that).
 
Status
This thread has been locked.
Top