Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Error 1045 - Access denied in PHP5 and MySQL

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 28-08-2009
Member
 
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?

Reply With Quote
  #2  
Old 28-08-2009
Member
 
Join Date: May 2008
Posts: 2,286
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.
Reply With Quote
  #3  
Old 28-08-2009
Member
 
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';"
Reply With Quote
  #4  
Old 28-08-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Error 1045 - Access denied in PHP5 and MySQL"
Thread Thread Starter Forum Replies Last Post
“System error 5 has occurred. Access is denied” error message while using net use on windows 7 Nabhan Operating Systems 6 24-08-2011 09:24 PM
Mysql Error : Can't connect to local mysql server through socket ' var lib mysql mysql.sock' 2 roshan45 Software Development 3 07-11-2009 08:36 PM
File server denied access by Domain Controller: Access is denied because of failure to authenticate Jim Windows Server Help 2 24-05-2007 09:46 AM
msconfig -- Access Denied error Theodore Long Windows Security 1 18-07-2006 07:48 AM
Error 0x8007005: Access is denied jim_hampson@hotmail.com Windows Server Help 3 23-05-2006 07:54 PM


All times are GMT +5.5. The time now is 09:44 AM.