How to connect to MySQL with C# Winforms and XAMPP


Read the original article here:

MySQL .NET Connector:

Please subscribe to our channel. For more awesome content visit


Follow us on Twitter

Like us on Facebook:


Xem Thêm Bài Viết Khác:


  1. getting an error on the INSERT INTO users('userID', 'firstName', 'lastName', address') VALUES(NULL, 'Bruce', 'Wayne', 'Wayne Manor'). The error says "you have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the tight syntax to use near " at line 1". The Mysql version i'm using is

  2. If you got an error : host does not support SSL connection, just add 'sslmode=none' to the MySQLConnectionString. Don't forget to separate by semicolon ';' though.

  3. Thanks a lot, it worked. But if anyone else had the problem (showing as a warning) "This is a higher version than the currently targeted framework .NETFramework,Version=v4.5" this is how you fix it:
    Go to properties of your project and set up the version needed (in my case it had to be 4.5.2) of the .NETFramework and everything else works just fine, just like in this video.

  4. I create a short playlist where I explain how to connect mysql with C#:
    I really appreciate every subscription.

  5. Toll, dadurch das man den source Decompilen kann Kann man auch einfach die Datenbank auslesen. (kann man mit einem POST Request an einer PHP Seite umgehen.)


Please enter your comment!
Please enter your name here