如何从Windows窗体连接到MySQL? [英] How can I connect to MySQL from windows forms?
本文介绍了如何从Windows窗体连接到MySQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从Windows Forms连接到MySQL数据库?
请一步一步告诉我我是安装mysql连接器。
How can I connect to a MySQL database from Windows Forms?
pls tel me step by step i am alredy install mysql connecter.
推荐答案
希望这会有所帮助你
如何使用C#连接MySQL [ ^ ]
Hope this will help you
How to Connect to MySQL Using C#[^]
严重吗?谷歌有数百个例子。 http://stackoverflow.com/questions/13716450/c-sharp- mysql-example-command-executereader-throws-exception [ ^ ]是我通过Google搜索找到的第一个。
Seriously? Google has hundreds of examples. http://stackoverflow.com/questions/13716450/c-sharp-mysql-example-command-executereader-throws-exception[^] was the first that I found through a Google search.
//you need to add the correct references and using statements
using(MySqlConnection db = new MySqlConnector(MyConnectionString))
{
db.Open();
//Now add the code that retrieves from the database.
}
问题解决了刚从mysql服务器添加dll到我的项目
Problem solved just add dll from mysql server to my project
这篇关于如何从Windows窗体连接到MySQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文