Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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 December 15th, 2005, 11:49 AM
JSB JSB is offline
Registered User
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default suexec on server - now have query errors

suexec was not enabled on the server whilst i was working on this project and now that the host has decided to enable suexec, i now get errors with my code. Could anyone please tell me what's going on and what i might do to correct this? Thank you very much. Error follows:

Warning: mysql_connect(): Access denied for user: 'thedude@localhost' (Using password: NO) in /home/thedude/public_html/music/listener/listener_dbconnect.php on line 8 Access denied for user: 'thedude@localhost' (Using password: NO)
Old January 12th, 2006, 02:05 AM
Registered User
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


Are you connecting to the mysql database using a password. Try something like:

$dbcnx = @mysql_connect("localhost", "username", "password");
   // Select database
    if (! @mysql_select_db("database") ) 
        { echo "A problem occured while trying to connect to the database.<br>Please try agian.";

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use Eventlog to log errors to remote server seldomat ASP.NET 1.0 and 1.1 Professional 1 January 26th, 2007 04:58 PM
SQL Server 2000 Driver for JDBC Errors cash Java Databases 2 December 22nd, 2006 01:18 AM
Using CDONTS to send SQL server errors kevorkian SQL Server ASP 1 April 22nd, 2005 06:15 AM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
Simple query errors Justine Access 5 February 12th, 2004 09:43 AM

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