connection problem with mobile device
Posted: Tue 01 May 2007 01:26
i use this code
---------------------
in module
-----------
Imports CoreLab.MySql
Module basConect
Public conn As New MySqlConnection("User ID=root;Password=;Host=192.168.0.5;Port=3306;Database=test;")
Public Sub ConectMySQL()
Try
conn.Open()
MsgBox("Conect", MsgBoxStyle.Information, "")
Catch ex As MySqlException
MsgBox(ex.Message, MsgBoxStyle.Critical, "")
End Try
End Sub
End Module
in form
--------
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ConectMySQL()
End Sub
End Class
i tried this on visual studio .net 2005. but when i try this.it says "host 'wm_myname' is not allowed to connect to this mysql server".
i use 192.168.0.5 for my wifi ip address in my computer and 192.168.0.4 in my pocket pc.is there something i must set so mysql in my computer alowed me to access the database?i use ipaq 1950 which has windows mobile 5 installed
there is another ask.when i deploy my project,there is always a message says "post-deploy error 0x80070005 returned after calling "windows\wcload.exe /noui \windows\system_SR_enu.cab" ".can you give me explanation why it is always show
thank you...
---------------------
in module
-----------
Imports CoreLab.MySql
Module basConect
Public conn As New MySqlConnection("User ID=root;Password=;Host=192.168.0.5;Port=3306;Database=test;")
Public Sub ConectMySQL()
Try
conn.Open()
MsgBox("Conect", MsgBoxStyle.Information, "")
Catch ex As MySqlException
MsgBox(ex.Message, MsgBoxStyle.Critical, "")
End Try
End Sub
End Module
in form
--------
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ConectMySQL()
End Sub
End Class
i tried this on visual studio .net 2005. but when i try this.it says "host 'wm_myname' is not allowed to connect to this mysql server".
i use 192.168.0.5 for my wifi ip address in my computer and 192.168.0.4 in my pocket pc.is there something i must set so mysql in my computer alowed me to access the database?i use ipaq 1950 which has windows mobile 5 installed
there is another ask.when i deploy my project,there is always a message says "post-deploy error 0x80070005 returned after calling "windows\wcload.exe /noui \windows\system_SR_enu.cab" ".can you give me explanation why it is always show
thank you...