易截截图软件、单文件、免安装、纯绿色、仅160KB

C#连接MySql数据库方法 宇兰

1、用MySQLDriverCS连接MySQL数据库
先下载和安装MySQLDriverCS,地址:http://sourceforge.net/projects/mysqldrivercs/在安装文件夹下面找到MySQLDriver.dll,然后将MySQLDriver.dll添加引用到项目中注:我下载的是版本是 MySQLDriverCS-n-EasyQueryTools-4.0.1-DotNet2.0.exe using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.Odbc;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using MySQLDriverCS;  namespace mysql{    public partial class Form1 : Form    {        public Form1()        {            InitializeComponent();        }         private void Form1_Load(object sender, EventArgs e)        {             MySQLConnection conn = null;            conn = new MySQLConnection(new MySQLConnectionString("localhost", "inv", "root", "831025").AsString);            conn.Open();             MySQLCommand commn = new MySQLCommand("set names gb2312", conn);            commn.ExecuteNonQuery();             string sql = "select * from exchange ";            MySQLDataAdapter mda = new MySQLDataAdapter(sql, conn);             DataSet ds = new DataSet();            mda.Fill(ds, "table1");      &n


相关文档:

C#生成XML文件的 函数

protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
         &nbs ......

在Visual C#中使用XML指南之读取XML

我们今天来讲一下该体系结构中的XmlTextReader类,该类提供对Xml文件进行读取的功能,它可以验证文档是否格式良好,如果不是格式良好的Xml文档,该类在读取过程中将会抛出XmlException异常,可使用该类提供的一些方法对文档节点进行读取,筛选等操作以及得到节点的名称和值,请牢记:XmlTextReader是基于流模型的实现,打个 ......

转:Linux下进行MYSQL的C++编程起步手记


Linux下进行MYSQL的C++编程起步手记
首先安装必需的开发包
sudo apt-get install gcc g++ libgcc1 libg++ make gdb
安装MYSQL的C语言开发包
sudo apt-get install libmysql++-dev libmysql++2c2a libmysqlclient15-dev libmysqlclient15off
......

再谈mysql的配置文件my.ini or my.cnf (之二)

如若转载,请尊重个人劳动,务必注明原始出处:(http://blog.csdn.net/iihero/archive/2010/05/13/5585039.aspx)
本文为iihero@CSDN原创。
在前一篇短文里提到了my.ini/cnf的加载顺序:C:\WINDOWS\my.cnf->C:\WINDOWS\my.ini->C:\my.cnf ->C:\my.ini ->$installdir\my.ini。(%MYSQL_HOME%\my.ini)-> ......

MySQL error 2003的解决过程

MySQL error 2003的解决过程刚才论坛出现:
error 2003:Can't connect to MySQL server on ..............
 问题:MYSQL数据库没有启动~
 解决:百度了一下,说的解决方法各种各样,很多.
 1\在“运行”里找到C:\mysql\bin\mysqld-opt.exe 运行就是了!找了,没有这个东西:(
2 在Dos下 cd \mysql ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号