Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports MySql.Data.MySqlClient
- Public Class Form1
- Public koneksi As New MySqlConnection
- Dim perintah As MySqlCommand
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Try
- koneksi.ConnectionString = "server=localhost;uid=root;database=db_ferdhikaa;"
- koneksi.Open()
- MsgBox("Tersambung")
- Catch ex As Exception
- MsgBox("Tidak terhubung")
- End
- End Try
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement