Inaam Hammouda

Inaam Hammouda

  • 1.8k
  • 42
  • 3.4k

cpanel database connection

Sep 24 2017 10:36 AM
hi 
 
I am trying to establish mysql connection to my databse located in myserver with the following string :
  1. MySqlConnection connection = new MySqlConnection("SERVER=my_server's_public_ip ;PORT=3306;DATABASE=name ;UID=user;PASSWORD=password");  
it worked like a charm for a week and now i keep having ( can't connect to the specified host)
 
I didn't change anything
I can access phpmyadmin from my cpanel
I can ping my cpanel
 
please help

Answers (2)