Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 15th, 2005, 11:49 AM
JSB JSB is offline
Registered User
 
Join Date: Nov 2005
Location: London, ON, .
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)
Reply With Quote
  #2 (permalink)  
Old January 12th, 2006, 02:05 AM
Registered User
 
Join Date: Jan 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

JSB,

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

Code:
$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.";
          exit();
        }
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:13 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.