Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2004, 11:28 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Connection to MySQL

I am attempting to connect to a MySQL database but I cannot seem to get the connection string to work. Here is my string as it stands now...

var MM_connBiblereading_STRING = Server.CreateObject ("ADODB.Connection")
MM_connBiblereading_STRING.Open ("Driver={MySQL}; SERVER=localhost; Port=3306; Option=0; Socket=/tmp/mysql.sock; DATABASE=bibletruthchapel_org; UID=userid; PWD=password;")

Any thoughts as to why it is not working?

Clay Hess
__________________
Clay Hess
 
Old August 18th, 2004, 11:35 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Not sure if you got to use Socket=/tmp/mysql.sock; there in your connection string.

Try without that.

Check this out for standard connection strings.

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP connection to MySQL ells228 Classic ASP Databases 5 June 21st, 2017 01:38 PM
ASP-Mysql connection beeded surendran Classic ASP Databases 1 September 15th, 2005 05:24 AM
Asp and Mysql Connection surendran Classic ASP Basics 3 September 15th, 2005 05:22 AM
connection error MYSQL and ASP renee_santoscoi MySQL 5 March 7th, 2005 11:15 AM
ASP.NET database connection MySQL socoolbrewster ASP.NET 1.0 and 1.1 Basics 3 November 21st, 2003 07:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.