I am trying to set up my magento site on my local dev server. I have installed database and copied files from live server and changed settings in local.xml file.
On my local server I have no password for database user. Everything is ok with local.xml but still I am not able to connect with database. getting below error -
SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
below are my setting for local.xml
<connection>
<host><![CDATA[localhost]]></host>
<username><![CDATA[root]]></username>
<password><![CDATA[]]></password>
<dbname><![CDATA[mydbname]]></dbname>
<initStatements><![CDATA[SET NAMES utf8]]></initStatements>
<model><![CDATA[mysql4]]></model>
<type><![CDATA[pdo_mysql]]></type>
<pdoType><![CDATA[]]></pdoType>
<active>1</active>
</connection>
What can be issue ? Any help please.
Thanks in advance.