MySQL Forums
Forum List  »  Newbie

connecting to MySQL remotely with C# code
Posted by: Gennady Gurin
Date: July 27, 2025 09:22PM

Hi, I successfully installed MySQL server with a third option "Dedicated Server

Computer".Also a Workbench as well. I am trying to connect with a C# code from

any PC worldwide.

Here is connection string:

MySqlConnection connection = new

MySqlConnection("Server=mysql.com;port=3306;username=MyUserName;password=MyPass

word

");

My question is what should be Server name for mysql.com???

Let me know thanks.

Options: ReplyQuote




Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.