Results 1 to 4 of 4

Thread: Error 1045 - Access denied in PHP5 and MySQL

  1. #1
    Join Date
    Jun 2009
    Posts
    50

    Error 1045 - Access denied in PHP5 and MySQL

    I am having problem with PHP5 and MySQL server upgradation. I recently installed and was testing to see everything went correct but I got the error code 1045 on my phpMyAdmin folder and the message describes "Access denied for user: 'root'@'localhost'". I am not getting the opening login screen on phpMyAdmin. What is wrong?

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Error 1045 - Access denied in PHP5 and MySQL

    I think you need to reset your root password or create a new login with new username and password. Open mysql command line, then try to log in using your new password or NO password. If you are unable to get in, then follow the instructions specified in the manual for resetting your root password. But is are successful to login then refer your manual for creating a new username and password with admin rights.

  3. #3
    Join Date
    May 2008
    Posts
    685

    Re: Error 1045 - Access denied in PHP5 and MySQL

    Have you entered the root password on your phpMyAdmin config file? I would recommend you to add the mysql root password in the phpMyAdmin config file. Search this file in the phpmyadmin folder and is called as "config.inc.php". Simply type the below statement in the file: "$cfg['Servers'][$i]['password'] = 'Password';"

  4. #4
    Join Date
    Jun 2009
    Posts
    50

    Re: Error 1045 - Access denied in PHP5 and MySQL

    I tried that option fellah but the same problem persists again! Can I do that somewhere else in the phpMyAdmin other than the config.inc.php? I am asking so because when I tried that I get the message saying the problem may arise due to missing configuration file. I think I have to recreate it once again by using setting script.

Similar Threads

  1. Replies: 6
    Last Post: 24-08-2011, 09:24 PM
  2. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  3. Replies: 2
    Last Post: 24-05-2007, 09:46 AM
  4. msconfig -- Access Denied error
    By Theodore Long in forum Windows Security
    Replies: 1
    Last Post: 18-07-2006, 07:48 AM
  5. Error 0x8007005: Access is denied
    By jim_hampson@hotmail.com in forum Windows Server Help
    Replies: 3
    Last Post: 23-05-2006, 07:54 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,664,193.97378 seconds with 17 queries