Merci pour ton aide mais lors de l'execution du code une erreure se produit voila mon code :
Imports MySql.Data.MySqlClient
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ConnnectionStr As String = "Database=(lspsp);Data Source=ftpperso.free.fr;User ID=xxxxx;Password=xxxxxx"
Dim oConnection As New MySqlConnection
oConnection.ConnectionString = ConnnectionStr
Try
oConnection.Open()
Dim MySQLCmd As String
MySQLCmd = ("CREATE TABLE `tu_table` (`id` INT( 10 ) NOT NULL ,`comment` VARCHAR( 255 ) NOT NULL ,PRIMARY KEY ( `id` ));")
Dim SelectCommand = New MySqlCommand(MySQLCmd, oConnection)
Dim oReader As MySqlDataReader = SelectCommand.ExecuteReader()
Catch Ex As Exception 'Intercepte l'erreur en cas de pb
MsgBox(Ex.ToString)
End Try
oConnection.Close()
End Sub
End Class
l'erreue est la suivante
lspsp.free.fr/erreur.jpg