Page 1 of 2 12 LastLast
Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    590
    Plugin Contributions
    0

    Default Can't connect to database

    My hosting company is telling me that the reason my site still isn't working is that a wordpress database was deleted (at their request) and it's somehow involved in connecting to the zencart database. I have explained to them that zencart does not use wordpress databases, period, but they insist that they can't restore the site to normal operation without the missing wordpress database. So I'm dead in the water. Can anyone help?

  2. #2
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    590
    Plugin Contributions
    0

    Default Re: Can't connect to database

    Update to the above--my hosting company is saying they just can't figure out what's wrong. They want me to do a vanilla re-install of zencart in a different directory and then try to connect that to the existing database. I'm afraid that I may wipe out the database with all my data in it if I do that. I have a backup and will do another one, but I'm not convinced this is going to make any difference. Does anyone have any idea why the software wouldn't be able to connect to the database that's been in use all along?

  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Can't connect to database

    sounds like you need someone who knows what they are doing to log in and lay eyeballs on it...
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #4
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    590
    Plugin Contributions
    0

    Default Re: Can't connect to database

    Quote Originally Posted by barco57 View Post
    sounds like you need someone who knows what they are doing to log in and lay eyeballs on it...
    I have no problem with that, but I don't think anyone can tell anything more than I can from just looking at what's available via ftp or via cpanel. The techs are telling me that there was some kind of connection through an old Wordpress database that was deleted. The only thing I can think of is that they somehow did that when I was moved to the VPS about a year ago. There was an old and unused Wordpress database on the site at that time, but there would have been no reason to make any connection with it, and I certainly did not. It took them four days to get my site up after moving to the VPS, and I wonder now what sort of workarounds they tried in order to get everything to work.

  5. #5
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Can't connect to database

    ok, cpanel... go in and remove the current user on the database, create a new user and attach it to the database and change the config files to use that new connection information for the new user.
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  6. #6
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    590
    Plugin Contributions
    0

    Default Re: Can't connect to database

    Quote Originally Posted by barco57 View Post
    ok, cpanel... go in and remove the current user on the database, create a new user and attach it to the database and change the config files to use that new connection information for the new user.
    I'll try that, though I'm squeamish about removing anything at this point, lol.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Can't connect to database

    Why's? Because they've manipulated any number of characteristics/parts of accessing the database, username, permissions, database name, server on which it is hosted, permissions of connecting from another location (did just move the site from where it was to the VPS), they've changed the DB_PREFIX within the database, etc... any of these and possibly others could be the cause. Making/keeping a backup of the database (which for other reading is a different backup than that of the files that serve the store) is a grand idea.

    It may take creating a new database with credentials for a new user, to then have the contents of your existing database imported into that new database. Then of course to update the includes/configure.php and admin/includes/configure.php files as necessary to support using the old content in the new database.

    As far as concerns from your side of installing as you go through the zc_install process, don't install to the working good database
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Can't connect to database

    Also should mention. When ZC identifies the inability to connect to the database, it typically starts off with some "cookie-cutter" message, but it's the last few bullets in the message that really get to the meat of the issue and should identify what the cause is for not being able to connect. If that can't be decyphered, then please post the entirety of the message protecting whatever nugget is now considered "personal" though it may have previously been published elsewhere.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    590
    Plugin Contributions
    0

    Default Re: Can't connect to database

    Quote Originally Posted by mc12345678 View Post
    Also should mention. When ZC identifies the inability to connect to the database, it typically starts off with some "cookie-cutter" message, but it's the last few bullets in the message that really get to the meat of the issue and should identify what the cause is for not being able to connect. If that can't be decyphered, then please post the entirety of the message protecting whatever nugget is now considered "personal" though it may have previously been published elsewhere.
    No problem with doing that, but I'm not sure where to find it. Nothing is being logged in the zencart error file.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Can't connect to database

    Quote Originally Posted by HeleneWallis View Post
    No problem with doing that, but I'm not sure where to find it. Nothing is being logged in the zencart error file.
    Ok. There have been like 4 or 5 threads that seem related to this issue. In each there have been diagnostic suggestions offered to see what is loading within ZC. The current situation hasn't identified if a blank screen is involved, the FAQ to which has been previously provided. Considering that the configure.php files have been edited, I would repeat barco57's comment about checking those files for proper format and information. The fact that the front end gets started indicates that there is/was a database connection but then if there was a database problem logged at the server level it may be that they have some sort of database caching or other utility that is causing an issue.

    All that plus there has been no discussion/answer about the file comparison(s) that have been requested. I know I still haven't gone back to review the presence somewhere in the file system for one of the issues that was reported in the server log and reportedly a server side only issue that supposedly was adjusted/corrected, but begs the question of how a server could be setup in that way to cause the issue(s) observed and still be considered a functional server...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Can't connect to my database.
    By misty16 in forum General Questions
    Replies: 32
    Last Post: 13 Oct 2010, 05:10 PM
  2. Help! Site can't connect to my database
    By mw4kids in forum Upgrading from 1.3.x to 1.3.9
    Replies: 7
    Last Post: 15 Jun 2009, 10:04 PM
  3. Can't connect to database during installation
    By isaacr25 in forum Installing on a Linux/Unix Server
    Replies: 14
    Last Post: 29 Sep 2007, 06:34 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR