mysql error need fixing

Discussion in 'PHP' started by monkeyknackers, Apr 9, 2010.

  1. #1
    Programmer to fix a quick mysql error

    hi guys just transfering a site to another server and encountered a sql error and wanting someone to fix.

    please add me on msn at

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'newmadik_ptc '@'localhost' (using password: YES) in /home/newmadik/public_html/ptc-bux.net/lib/lib.php on line 40

    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/newmadik/public_html/ptc-bux.net/lib/lib.php on line 45

    Warning: Cannot modify header information - headers already sent by (output started at /home/newmadik/public_html/ptc-bux.net/lib/lib.php:40) in /home/newmadik/public_html/ptc-bux.net/lib/configuration.php on line 343
     
    monkeyknackers, Apr 9, 2010 IP
  2. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #2

    It looks like you need to check the username/password you are using in your config to connect to the database.

    The other errors are more than likely because of this; I.E You cant select from a database you arent connected to.
     
    Last edited: Apr 9, 2010
    lukeg32, Apr 9, 2010 IP
  3. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yep, either a config problem or your mysql server is down - check with your hosting provider if it suddenly started with those errors after working perfectly before
     
    JAY6390, Apr 9, 2010 IP