Hi, I'd like to connect to an external MySQL database from my Winhost account. Can someone please give me a sample connection string? I'm using asp rather than php. I was using the following on the host that I used before moving to Winhost, but it isn't working here: Code: Dim con_STRING con_STRING = "driver={MySQL ODBC 3.51 Driver};option=16387;server=123.123.123.12;user=USERNAME;password=PASSWORD;DATABASE=DBNAME;" Thanks in advance.
I'm not really sure what to do here. I'm thinking that I need to download and install the MySQL driver onto my webspace in order to use the driver in my connection strings? Could someone please let me know if that is the correct thing to do? If not, what is? If so, do I download the 32-bit version because I'll be downloading it to my PC or the 64-bit because I'll ultimately upload it to Winhost's servers? All advice gratefully received. Thank you.
What are you trying to do? It sounds like you are trying to upload the MySQL databse/server to our web server. You cannot do this. You need to download and setup your MySQL server/database on your own computer and set it up so that it can be accessed remotely.
Not trying to upload the MySQL database to your server, just trying to create a connection. I've tried unsuccessfully to use ODBC/Provider-type connection strings. I was guessing that I needed to install something on the server in order to make the connection work. My remote MySQL database can definitely be accessed - I've done it before from another host, but for some reason I can't make a connection from Winhost. Do I need to upload anything to Winhost's server to connect to a remote server using a Provider-type connection string?
What is the exact error you are getting? What is the connection string you are using? What are you using to connect to your MySQL server? Are you using classic asp, .net, or php?
I've tried this: Code: Dim con_STRING con_STRING = "Provider=MySQLProv;Data Source=mydb;User Id=myUsername;Password=myPassword;" and this: Code: Dim con_STRING con_STRING = "Driver={MySQL ODBC 3.51 Driver};Server=myServerAddress;Database=myDataBase;User=myUsername; Password=myPassword;Option=3;" but can't get either one to work. Didn't really expect the ODBC one to work, but thought that maybe the Provider one was for where ODBC drivers hadn't been uploaded to the server. I'm using classic asp. Could you possibly tell me where I'm going wrong?
That's why I'm asking whether it's possible to upload them, if it's permissible to upload them, where they might be uploaded, and which ones they should be. Similarly, is there an alternate way for me to connect from Winhost to my remote MySQL database?
I don't think there's a distributable MySQL driver for classic ASP. I believe they only have it for .Net.