MySQL Forums
Forum List  »  Newbie

C# windows form project MySQL localhost issue
Posted by: Gennady Gurin
Date: July 14, 2025 04:43PM

Hi, I am using C# MySQL code in my windows form project.

I am using phpMyAdmin platform.

using System.Data.SqlClient;

MySqlConnection connection = new MySqlConnection("datasource=localhost;port=3306;username=MyUsernName;password=MyPassword");

I do INSERT and SEARCH, and it works only locally (meaning while I have logged into my PhpMyAdmin platform, but when I tested on another PC the connection to MySQL failed.
I am new to this, should I download this platform? I need to have remote MySQL connection from any PC worldwide. And what MySqlConnection should be?

Not sure where to download, any links would be helpful. How to create a database with a table there?

Is it free or they charge to use it?

Thanks in advance...

Options: ReplyQuote


Subject
Written By
Posted
C# windows form project MySQL localhost issue
July 14, 2025 04:43PM


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.