HomeОбразованиеRelated VideosMore From: WhyThisTutorialNow

Connecting to a Database C# - WPF and MySql

147 ratings | 20858 views
In this tutorial, we see a step by step guide to connect to a mysql database from a WPF c # application. Connector/Net is a fully-managed ADO.NET driver for MySQL: https://dev.mysql.com/downloads/connector/net/ Facebook: https://www.facebook.com/whythistutorialnow Website: http://whythistutorialnow.com/WTTN
Html code for embedding videos on your blog
Text Comments (24)
Nail Yusupov (1 month ago)
Great! Thank you
Talal Rafi (1 month ago)
Toooooo much talking and less actual content
bennyboydude1 (2 months ago)
This tutorial helped me very much, and still works. Thank you!
Actually, very nice, apprehensible tutorial. Too sad, new videos never came out on this channel since then...
Amongst all the other indians, who post their tutorials onto Youtube, you're the one having least accent and pretty much I can get along with that; others - I can't bear hearing them, they have incomprehensible accent, but speak as fast as if they were good at English. Can't stand such idiotism xD And what is even more sad, when I out there on YouTube trying to find some programming tutorial, there's usually 95% search results consisting of indian guys speaking lousy. "HeLyO fReNdS, dIs Iz SuNiL eNd TyuDei Wee Be LyoRninG..."
Peter Hartmann (7 months ago)
Hello, a nice video. I am currently testing the new MariaDB and I am in a rush of speed. I think the following solution is a bit faster: conn.Open(); cmd.ExecuteNonQuery(); DataTable dataTable = new DataTable(); MySqlDataAdapter da = new MySqlDataAdapter(cmd); da.Fill(dataTable); dataGrid.DataContext = dataTable; conn.Close();
er Gurkha (10 months ago)
Thank for this particular tutorial!
Rasim Mustafayev (10 months ago)
Hello friend I want to create a search box in wpf, can you help me?
Abhay Shanker (1 year ago)
thanks for tutorial. its very helpfull.
abu hasan (1 year ago)
MySqlConnection connection = new MySqlConnection(connectionString); why this line showing error..
Juan Sandoval (1 year ago)
Your welcome!
Aussie Raver (1 year ago)
It doesn't matter, you helped me! I had "MySql.Data" only, I thought that would add everything after .Data.*, but I had to specific the "MySqlClient" part after. Thanks!
Juan Sandoval (1 year ago)
You must import this library, after you choose the reference of MySQL: using MySql.Data.MySqlClient; I guess you got the answer a long ago...
Alexander Poole (1 year ago)
very well explained and helpful video
hi i have trouble XD An exception of type 'System.InvalidOperationException' occurred in MySql.Data.dll but was not handled in user code Additional information: Connection must be valid and open.
Tribun (1 year ago)
Thanks man ;}
shangqun yu (1 year ago)
Thank you for your clear and brief tutorial, very helpful.
Subash Maduwantha (2 years ago)
very helpful
Dioscoro Federico (2 years ago)
love you tutorials, hope you can create one using VS 2017
Alexander Lisikow (2 years ago)
i hope you continue your videos, i have bought 2 wpf books and grinded through them and yet your tutorials seem way easier to understand good work, thanks for the effort!
silent wolfdev (2 years ago)
Amazing video as always! Please more :D
Johan Shaun (2 years ago)
Database connection from Sql file source was not interpreted properly
Иван Иванов (2 years ago)
thanks a lot...
DarkstarReborn (2 years ago)
I like the topic but I could not see what you were doing. text too small in the video.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.