Inaam Hammouda

Inaam Hammouda

  • 1.9k
  • 42
  • 3.9k

cpanel database connection

Sep 24 2017 10:36 AM
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

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (2)