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