Tuesday, 2 February 2016

How to Connect VB.Net With MySQLIn Feburary 2016 02,

In Feburary 2016 02,
Click the Windows 'Start' button on your VB.NET developer computer. Click 'All Programs,' then click 'Microsoft .NET Framework.' Click 'Visual Studio' to open the software. Double-click your VB.NET project to load the code.
Type the MySQL library import statement at the top of the page. The library contains the connection functions and properties needed to connect. Type the following code in your VB.NET file:Imports MySql.Data.MySqlClient
Create the connection string. A connection string contains the database, server name and user name and password needed to connect to MySQL. Below is an example of a connection string:Dim ConnectionString As StringConnectionString = 'database=database_name';server=server_name;user id=user;password=pass'Replace each value with your own MySQL information.
Connect to the database. Type the following code to use the connection string to connect to the MySQL server:Dim conn As New MySqlConnectionconn.ConnectionString = ConnectionStringconn.Open()
In Feburary 2016 02,

No comments:

Post a Comment