• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Connection String for ASP+MySQL

A

AngryKid

Guest
I'm trying to connect to a MySQL database using ASP under Plesk 6.5.1, however, when I try to connect to my page I get the error:

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

The error appears to be the connection string, although I've tried several variations without success. What is the correct connection string for ASP+MySQL pages? I've tried the following:

"driver={MySQL ODBC 3.51 Driver}; server=localhost; database=myDB; uid=daniel; pwd=xxx"
"driver={MySQL}; server=localhost; database=myDB; uid=daniel; pwd=xxx"
"driver={MySQL ODBC 3.51 Driver}; server=mydomain.com; database=myDB; uid=daniel; pwd=xxx"

Can anyone give me a correct connect string? My service provider was unable to. With Helm, the first connection string listed above worked like a charm.
 
MyODBC

After further research, I have a feeling they don't have the MyODBC driver installed. Does this not get installed with a standard Plesk setup, or is it supposed to be installed manually? Hardly turn-key :/

Any ideas?
 
MyODBC driver for using odbc connections is not installed.

You can use a dsnless connection no problem. The connection string varies depending on what programming format you are using.

Also, if you are using ASP, ADO with DSNLess is actually faster than DSN.
 
Does anyone know the connection string to use to connect to an mysql database using a dsn-less connection without an odbc driver installed?

Thanks!
 
We installed the My ODBC driver into the server and then use remote desktop to make DSNs

Do Plesk have any plans to integrate DSN drivers for MySQL into later versions? Given the price of MS SQL and the issues you get with Access, I would have thought this would be a high priority..........
 
Did anyone find a connection string that works with MySQL?
 
Back
Top