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 May 18th, 2006, 12:31 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default connect to MySQL DB -(0x80004005)

Code:
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.open "Driver={MySQL ODBC 3.51 Driver}; Server=localhost; Database=league; Uid=leagueDB; Pwd=l672Vgg;"
%>
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[MySQL][ODBC 3.51 Driver]Access denied for user 'leagueDB'@'localhost' (using password: YES)
/amatuer/inc/db_conn.asp, line 3

I have ran this commad in the MySQL command line:
GRANT ALL PRIVILEGES ON *.* TO leagueDB@localhost IDENTIFIED BY 'l672Vgg' WITH GRANT OPTION;

I also have added leagueDB and the password into the 'user' table in the mysql DB (mysql.user). So that it looks like this......

+------------+
| user |
+------------+
|leagueDB |
|root |
+------------+

What do i need to do to access the DB in my script and SQLyog???

Help appreciated.

Picco




www.crmpicco.co.uk
www.ie7.com
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
connect to mysql db from php 5 crmpicco PHP Databases 1 September 26th, 2007 05:14 PM
connect to MySQL DB from Perl crmpicco Perl 2 October 5th, 2006 11:23 AM
Trying to connect to Mysql tp194 Classic ASP Databases 4 November 11th, 2004 12:12 AM





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