i was installing Magento on one of my commercial sites just to try it out and ran into this installation problem:
The error message explains itself: there is a database connection issue and it’s probably beCAuse either your username and / or password don’t match or your account doesn’t have the privilege for this execution.
My question was exactly about that, too. “why does it try to access MySQL database using the ‘root’ account? ”
i’m using shared hosting service from HostGator for this site, and idon’t have the root access to any of my MySQL databases. For example, my username for a DB would look like “ebiz_magento”, not ‘root’. This is a common CAse when you don’t have a dediCAted server.
Something must’ve been messed up during my installation process beCAuse i couldn’t simply believe that they would’ve set the root account as default DB access for the installation.
So where is the file that has this incorrect DB access configuration?
After spending over 30 minutes, i found this file that contains the database access information.
Change the username, password and dbname appropriately.
After a couple of days later, i figured out whyi had this problem. i had installed the software locally on my Windows using the root account for MySQL before i did on my server. i uploaded the files from that directory where it was configured to use the root account in ‘local.xml’.
When i checked the files freshly upzipped from the installation file, i found it doesn’t have the file ‘local.xml’.