Results 1 to 1 of 1

Thread: MySQL Access Denied Error

  1. #1
    Deviacium is offline x10Hosting Member
    Join Date
    Aug 2007
    Posts
    6

    MySQL Access Denied Error

    ERROR:

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'devy_viibot'@'localhost' (using password: YES) in /home/devy/public_html/library/config.php on line 24
    Connection failed: Access denied for user 'devy_viibot'@'localhost' (using password: YES)

    FUNCTION:
    $dbhost = 'localhost';
    $dbuser = 'devy_viibot';
    $dbpass = 'password';
    $dbname = 'devy_MyCMS';

    $conn = mysql_connect ($dbhost, $dbuser, $dbpass) or die ("Connection failed: " . mysql_error());

    PS: User exists. Password correct. DB exists.


    In PHPMyAdmin i get the following, while logging in with cpanel name:
    "
    Create new database:
    [X] No Privileges
    "
    Edit:
    Thread may be closed. Problem solved by exporting/deleting/importing DB and recreating users.
    Last edited by Deviacium; 02-29-2008 at 06:36 AM. Reason: Automerged Doublepost

Similar Threads

  1. mysql access denied
    By ufclan in forum Free Hosting
    Replies: 6
    Last Post: 02-28-2008, 11:21 PM
  2. Replies: 3
    Last Post: 02-14-2008, 01:38 PM
  3. MySQL error?
    By unitmdz4 in forum Free Hosting
    Replies: 9
    Last Post: 02-11-2008, 05:08 PM
  4. Replies: 9
    Last Post: 01-10-2008, 03:16 AM
  5. INSERT command denied??
    By 1337scape in forum Free Hosting
    Replies: 6
    Last Post: 11-14-2007, 05:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
dedicated servers