Using system;using system.collections.generic;using system.linq;using system.web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using mysql.data.mysqlclient;public partial class page1 : system.web.ui.page{ string connstr = string.format ( " Server={0};user id={1};p assword={2};d atabase={3};p ort={4};p Ooling=false;charset=utf8 ", "192.168.1.3", "root", "1234567", "test", 3306); public mysqlconnection con = new mysqlconnection (); public MySqlDataAdapter da; public MySqlCommandBuilder cb; public mysqlcommand cmd; public mysqldatareader dr; protected Void page_load (object sender, eventargs e) { con. connectionstring = connstr; try { con. Open (); label1.text = "Connection Mysql success! "; string sql = "Select * from test "; da = new mysqldataadapter (Sql, con); dataset mydataset = new dataset (); da. Fill (Mydataset, "Test"); Bulletedlist1.datasource = mydataset. tables["Test"]; bulletedlist1.datatextfield = "Name"; BulletedList1.DataValueField = "link"; bulletedlist1.databind (); } catch { Label1.Text = "Connection Mysql failed!"; } }}