Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Oct 2009
    Posts
    89
    Plugin Contributions
    0

    Default Upgrade Database error: Access denied for username

    I am upgrading my current 1.3.9h site to v.1.5 In installing the new v.1.5 in a folder on my server (we will call the folder "new") I have edited and uploaded in the includes/config.php and Admin/includes/config.php to include this new path to the new version. I have created a new database in CPanel which we will call newZen15.

    When running the installer for v.1.5 when I get to the database setup screen, I enter in the username, password and database name (newZen15) and press Save Database Settings, but receive the error "Database does not exist....Access denied for username....") I have checked the username and password from my existing store and are using these with no results, and have also tried it using my Cpanel username and password with still no luck.

    Can anyone tell me where I am going wrong? I have done a previous upgrade a couple of years ago from v1.3.8 to v.1.3.9 and have followed all of my same instructions, but am having this issue this time. Lastly, so you have all of the information, when I first tried to install v.1.5 I had a lower PhPMyAdmin version than is necessary. I had my host upgrade this to v.5.3 yesterday and so it is no longer a problem, but I had created the database newZen15 before this MyPhPAdmin upgrade....I don't know if this has anything to do with the problems that I am experiencing.

    Thank you in advance for you help,
    Jeff

  2. #2
    Join Date
    Jan 2004
    Posts
    58,289
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Upgrade Database error: Access denied for username

    Quote Originally Posted by NWCE View Post
    I have edited and uploaded in the includes/config.php and Admin/includes/config.php to include this new path to the new version.
    You'll probably appreciate using the new configure.php files created by Zen Cart when you do your fresh install of v1.5, instead of the older format of the 1.3 configure.php files.
    Quote Originally Posted by NWCE View Post
    I have created a new database in CPanel which we will call newZen15.
    But, did you grant full rights to a database-user so that the user has permission to access it?

    You can find installation instructions, including basic steps on creating databases and stuff, in the /docs/ImplementationGuide.pdf file since Zen Cart v1.5.0
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2009
    Posts
    89
    Plugin Contributions
    0

    Default Re: Upgrade Database error: Access denied for username

    Thank you Dr. Byte for your quick and helpful response! Yes, the DB did not have user permission, and once I did this it was able to connect to the database. The only other problem that I am having is when I do the database upgrade, the newZen15 has my current database imported into it from my Cpanel, and when I run the zc_install to update the database, and press the Update button, I receive a response at the top of the screen that 62 stmts processed and 25 stmts ignored. (My current database is 25MB) I press the `Done with Upgrade`button and then delete the zc_install folder, change permissions on configs, and rename my admin. When logged into admin, I do not have any customer history, order history, etc. those items are blank along with much other missing data.

    Do you have any idea what has happenned and why the database obviously did not update

    I appreciate your help!

    Jeff

  4. #4
    Join Date
    Jan 2004
    Posts
    58,289
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Upgrade Database error: Access denied for username

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2009
    Posts
    89
    Plugin Contributions
    0

    Default Re: Upgrade Database error: Access denied for username

    Thanks for your reply Dr.Byte. Yes I checked my current english.php and it is iso-8859-1 so I will check the other files listed in the link that you gave me later today. Once I change these files and reupload them, should I then run the zc_installer once again in order to update the database...

    Thanks again for your help,
    Jeff

  6. #6
    Join Date
    Jan 2004
    Posts
    58,289
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Upgrade Database error: Access denied for username

    I suppose you could re-import your old database and then re-run the upgrade again.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Oct 2009
    Posts
    89
    Plugin Contributions
    0

    Default Re: Upgrade Database error: Access denied for username

    Thanks Dr.Byte, I will try this out.

    Thanks again for your help,

    Jeff

  8. #8
    Join Date
    Oct 2009
    Posts
    89
    Plugin Contributions
    0

    Default Re: Upgrade Database error: Access denied for username

    One other question that I am hoping you can help me with, is when I try to import my current database into my newZen15 database through my cPanel backups it always updates my current database and does not place it into newZen15, even though I rename the database file name to newZen15. I have also tried to import it through myPHPAdmin but it just continues and continues and never finishes. I have talked to my host about this and they say they have fixed it (and imported data into my newZen15 with items missing)but I still have this problem as I want to update it again with more current data. I cannot tell if this is a problem on my host's end or if I am doing something wrong.

    If I unzip the current database and change the "database name" on the 4rth line down (database name listed in green from "store139" to "newZen15") and then use the Cpanel Backup/restore will this then import into newZen15 and not my current database on my live site?

    Again, I appreciate your help,

    Jeff

  9. #9
    Join Date
    Jan 2004
    Posts
    58,289
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Upgrade Database error: Access denied for username

    It would be much simpler if you used either of the following methods, instead of trying to use cPanel backup/restore, since cPanel generally attempts to backup/restore your entire site.

    a) use phpMyAdmin to make your backup and then import that backup into your test site using phpMyAdmin. There are various settings in phpMyAdmin that will help make an exported backup easier to import. Best practices outlined in this FAQ article: http://www.zen-cart.com/content.php?...ith-phpmyadmin

    b) use the Backup-MySQL plugin to make your backup on your live site, and then copy the SQL file created by the backup into your new site and use the same addon, on the new site, to do the restore. http://www.zen-cart.com/downloads.php?do=file&id=7
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Oct 2009
    Posts
    89
    Plugin Contributions
    0

    Default Re: Upgrade Database error: Access denied for username

    Thank you for your reply and for the articles to show me the correct procedure! I really do appreciate your help, and will give these a try!

    Thanks once again,

    Jeff

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 1044 - Access denied for user 'mynew_db'@'%' to database 'myold_db'
    By Steak in forum Upgrading from 1.3.x to 1.5.x
    Replies: 1
    Last Post: 14 Feb 2012, 07:20 PM
  2. 1044 Access denied for user xxxxxx to database yyyyyy
    By maperr55 in forum General Questions
    Replies: 3
    Last Post: 12 Nov 2011, 09:42 PM
  3. Error on My SQL Backup: 1045: Access denied for user
    By EZorb in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 22 Nov 2010, 01:40 AM
  4. Connection to Database failed Access denied for user 'ziock@'localhost' (using
    By zick087 in forum Installing on a Windows Server
    Replies: 1
    Last Post: 4 Jan 2009, 08:14 AM

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
  •