JodoHost Forums  

Go Back   JodoHost Forums > Customer Support > Database Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-10, 10:35 AM
Bodwad Bodwad is offline
Guppy
 
Join Date: Jan 2010
Posts: 4
Rep Power: 0
Bodwad is at Grade 1
MYSQL and vb.net in Visual Web developer

Hello

I am a new programmer to MYSQL and Visual Web Developer. I am trying to connect to the MYSQL server on my account but I cant for the life of me work out what the connection string should be. After looking through loads of different sources I have become very confused. My current string is

ADODBString = "DRIVER={ MySQL ODBC 3.51 Driver };SERVER=mysql2.g********.com;DATABASE=Bodwad_mydb ;" & _
"USER=MyUsername;PASSWORD=MyPassword;Port = 3306;Option=3;"

It just wont connect raising the error

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not
found and no default driver specified

I am doing it all in a aspx.vb file so I dont know if thats what the problem is. I am also using the odbcconnection object.

Anyone know what I am doing wrong?

Paul
Reply With Quote
  #2  
Old 01-18-10, 10:57 AM
Stephen's Avatar
Stephen Stephen is online now
Honcho with a Poncho
 
Join Date: Feb 2004
Posts: 13,215
Rep Power: 10
Stephen is at Grade 1
Re: MYSQL and vb.net in Visual Web developer

http://connectionstrings.com/ is a good resource

It says:
Server=myServerAddress;Database=myDataBase;Uid=myU sername;Pwd=myPassword;

or the MS version of OLEDB should also work with:
Provider=MySQLProv;Data Source=mydb;User Id=myUsername;Password=myPassword; and System.Data.OleDb.OleDbConnection
__________________
Stephen
Manager (Windows Operations)
Reply With Quote
  #3  
Old 01-18-10, 11:27 AM
Bodwad Bodwad is offline
Guppy
 
Join Date: Jan 2010
Posts: 4
Rep Power: 0
Bodwad is at Grade 1
Re: MYSQL and vb.net in Visual Web developer

Thanks for your help.

I have tried both of these but I dont think I understand what I should be putting in the "provider=" bit.

My string at the mo is
"Provider=64.71.229.253;Data Source=Bodwad_Master;User Id=Bodwad_Bodwad;Password=password;"

The more I try to understand that website the more my brain huts

Thanks
Reply With Quote
  #4  
Old 01-18-10, 02:51 PM
Stephen's Avatar
Stephen Stephen is online now
Honcho with a Poncho
 
Join Date: Feb 2004
Posts: 13,215
Rep Power: 10
Stephen is at Grade 1
Re: MYSQL and vb.net in Visual Web developer

no provider is what it says, that tells the OS which driver to load, so it needs to be MySQLProv
__________________
Stephen
Manager (Windows Operations)
Reply With Quote
  #5  
Old 01-18-10, 03:41 PM
Bodwad Bodwad is offline
Guppy
 
Join Date: Jan 2010
Posts: 4
Rep Power: 0
Bodwad is at Grade 1
Re: MYSQL and vb.net in Visual Web developer

hmmm but if I try that I get

The 'MySQLProv' provider is not registered on the local machine

which means its not installed. I have tried using the .net MySqlConnector aswell and this isnt installed either :o(

Do I need to do something in the web.config file?

Sorry if these are simple things, its all odd to me
Reply With Quote
  #6  
Old 01-18-10, 04:54 PM
Stephen's Avatar
Stephen Stephen is online now
Honcho with a Poncho
 
Join Date: Feb 2004
Posts: 13,215
Rep Power: 10
Stephen is at Grade 1
Re: MYSQL and vb.net in Visual Web developer

You can load one of the connectors in your /bin as well the MySQL.DATA.dll is the connector
__________________
Stephen
Manager (Windows Operations)
Reply With Quote
  #7  
Old 01-19-10, 03:08 AM
Bodwad Bodwad is offline
Guppy
 
Join Date: Jan 2010
Posts: 4
Rep Power: 0
Bodwad is at Grade 1
Re: MYSQL and vb.net in Visual Web developer

ahhh I didnt realise we could create a bin file on the server and copy Dll's into it. Now I have copied the dll in it works great. Thankyou for your help, I have to say this web malarky is very frustrating, I think I will stick to VB and c++
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for PHP/MySQL Software Developer to Hire Fawn TechTalk 0 12-31-09 05:28 AM
MS Visual Web Developer Express won't install antic Microsoft Development 4 02-08-07 01:09 PM
Remote Debugging with Visual Studio 2003 shamrox Microsoft Development 1 09-30-06 09:48 AM
ASPin.com - Sources for ASP developer StPatrick General Advertisements 0 09-15-03 02:00 PM


All times are GMT -4. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) 2002 - 2009 JodoHost