I am trying to write a program to connect with the cPanel MySQL database.
When writing the connection string I used the below syntax.
string connStr = "server=localhost;user=mywebsite_root;database=online_database;port=3306;password='123456'";
In first place I tried this on localhost then after switch to online.
I have used the port 3306 to connect with the localserver.
But not sure which port do I need to use to connect with the cPanel database.
when I removed the port section from the above line it's not saving the data properly to the cPanel database.
Any suggestions?