Wednesday, September 5, 2012

Wamp server & MySql

  • Error : 1045 
  • Access Denied for user 'root@localhost'(using Password : NO) 
There are more than one reason for above error  wamp server has not  assigned port porperly or username and password has not set.
Steps to solve the above error:
We may have  reset the root password in MySql
The phpMyAdmin with Wamp Server gives above error 1045.


1. MySql Command prompt give the blow command to set the root password.
    UPDATE mysql.user SET Password=PASSWORD('NewPass') WHERE User = 'root';
    FLUSH PRIVILEGES;

2. After changing the command in MySql also change the password in wamp server as follows:
       c:\wamp\apps\config.inc.php
    In config.inc.php file find the below syntax and give the password.
      $cfg['Server'][$i]['user']='root';
      $cfg['Server'][$i]['password']='NewPass';

3. If you want to come out from your current installed password then delete current password and   make null password in the file. C:\wamp\apps\config.inc.php
   
  
      $cfg['Server'][$i]['user']='root';
      $cfg['Server'][$i]['password']=' ';

 

IANA timezone details in short

  The IANA Time Zone Database (often called tzdata , zoneinfo , or the Olson database ) is the global standard for representing time zones ...