Back to website
Login
Home
Login
Back to website
There was a problem loading the comments.
How do I connect to MySQL with ASP?
Support Portal
»
Knowledgebase
» Viewing Article
Print
19/12/2017 2:59 PM
Databases
MySQL
This applies to Windows Hosting accounts only. You will need to use a DSNless connection which can be achieved by using code with the following VBscript:
set rsEvents = Server.CreateObject("ADODB.Recordset") rsEvents.ActiveConnection = "Driver={MySQL ODBC 5.1 Driver}; DATABASE=databasename;USER=username; PASSWORD=password; Server=127.0.0.1"
...or the following JScript:
var rsEvents = Server.CreateObject("ADODB.Recordset"); rsEvents.ActiveConnection = "Driver={MySQL ODBC 5.1 Driver}; DATABASE=databasename;USER=username; PASSWORD=password; Server=127.0.0.1";
Share via
Did you find this article useful?
Related Articles
Do you support ASP.NET?
How do I connect to MySQL via SSH (telnet)?
How do I connect to my MySQL database from a Perl CGI script?
Categories
19
General
37
FAQ
11
Email Client
26
Reseller Management
36
Reseller
8
Udemy & Courses
9
Getting Started Guides
61
Email
8
Eco Web Hosting Control Panel
36
Your Account
4
Transfer/Renewal
7
Domain Control Panel
14
Hosting Control Panel
20
MySQL
21
Databases
12
Glossary
4
Registration
20
Domains
6
Admin
12
DNS
21
FTP
102
Web Hosting
11
SSH
8
SSL
10
Greenhost Configuration
13
Website Extras
16
Wordpress
41
Troubleshooting
14
Mailbox Admin
2
Windows
13
Web Builder
6
Managed WordPress
4
Python
23
PHP
9
HTML
7
CGI
2
ASP
37
Scripting
14
Webmail
25
Troubleshooting
3
MS-SQL
© Eco Web Hosting
English