scgm_project
New Member
- Messages
- 1
- Reaction score
- 0
- Points
- 0
hi
Nobody has the same problem?
The free version of x10hosting allows remote connection from a client?
I am stuck and I need an answer to my question!!
thanks Staff!
I would like to connect with a client created in vb.net from myself from my PC to the my DB mysql on my domain into x10hosting
I have already put this % in the control panel for "Remote MySQL"
Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]Imports [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]MySql.Data.MySqlClient[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]Class [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]MainForm[/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]Public Sub New[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]()[/SIZE][/LEFT]
[LEFT][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] Me[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000].InitializeComponent()[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] Dim [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]myConnectionString [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]As [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#6f002f][SIZE=2][COLOR=#6f002f]String[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]Nothing[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#000000] myConnectionString="database=my_db;datasource=my_name.x10hosting.com;user=my_user;password=my_pw;port=3306"[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] Dim [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]myConnection [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]As New [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]MySqlConnection(myConnectionString)[/COLOR][/SIZE]
[SIZE=2] myConnection.Open()[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]End Sub[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]End Class[/COLOR][/SIZE][/COLOR][/SIZE] [/LEFT]
[/LEFT]
[/LEFT]
but it dont connect...
WHY?
tks:dunno:
Edit:Nobody has the same problem?
The free version of x10hosting allows remote connection from a client?
I am stuck and I need an answer to my question!!
thanks Staff!
Last edited: