Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    33
    Plugin Contributions
    0

    Default Re: Database problems

    Wow everyone thanks for the replies.

    How would I find out for definite which database is being used?

    The admin/configure.php and admin/includes/configures.php database entries are definitely different.

    Thank you so much again

  2. #2
    Join Date
    Oct 2009
    Posts
    33
    Plugin Contributions
    0

    Default Re: Database problems

    Come to think about it, the new host backed up the files and then transferred them themselves. I am nearly 100% sure that the database is still being hosted by the old hosts because we sometimes get the 0_db error not connected message and when I have contacted the new hosts about it, they said it is because it is still being hosted elsewhere

  3. #3
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Database problems

    Questions:

    What makes you think it is the old database that is being used? This is very very unlikey.

    What did you do when you moved the site? Was the database exported in any way?

    Can you find out from your present host how to access the database directly? As I said you are looking for phpMyAdmin or a similar tool. If you can do this then just change a bit of data, for instance a product name, in the database and see if that change is reflected in the shop. If it is then the new database is being used.

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Database problems

    so, if the database was exported, then what is the problem with just making sure the new database is used?

    Why do you want to try to export the old database again?

    Surely you just want to make the configure files both point towards the new database?

    Nick

  5. #5
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Database problems

    And when did you transfer the site? How long ago?

  6. #6
    Join Date
    Oct 2009
    Posts
    33
    Plugin Contributions
    0

    Default Re: Database problems

    Hi Nick

    Thanks so much for taking the time and trouble to help.

    The site was hosted by a company who have been mentioned in several other threads on this site. Basically the site went down one day and we couldn't contact the hosts to get the site back up. We found another host and they managed to do a back up and transferred all the files so the site was up and running again, we didn't do any of it ourselves as we didn't know how to!

    We switched hosts in Feb last year.

    The new site is now hosted on a Plesk basis and although I have found the database on there, I cannot currently access that as that looks like it is password protected.

    This is the info on the admin/configure.php

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
    define('DB_SERVER_USERNAME', '****_****');
    define('DB_SERVER_PASSWORD', '****');
    define('DB_DATABASE', '****_****');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

    and this is the info on admin/includes/configure.php

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', '****.****.co.uk'); // eg, localhost - should not be empty
    define('DB_SERVER_USERNAME', '********_****');
    define('DB_SERVER_PASSWORD', '*******');
    define('DB_DATABASE', '********_****');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'


    Does this info help at all?

  7. #7
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Database problems

    OK.

    Well, the 'localhost' is a bit meaningless becuase that could be any host.

    The other one on the other hand is specific to a host. Is this the new host or the old host? Do you know? Are you hosted by that company or is that the old company? It has the address of a hosting company after the first '.' and before the '.co.uk' so if this is the current hosting company then you should be able to tell us.

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

    Default Re: Database problems

    Hi Nick

    The first one is where I "think" the database still is. The second one is the host that we moved to. Like I said I cannot access the database with the new host because although I have found where it is it looks as though it is password protected.

    Thank you again

 

 

Similar Threads

  1. Database Problems
    By andy in forum General Questions
    Replies: 3
    Last Post: 4 Apr 2009, 02:24 AM
  2. problems with database
    By jongo in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 28 Aug 2007, 02:46 PM
  3. Database problems
    By foryou in forum Installing on a Windows Server
    Replies: 3
    Last Post: 19 Apr 2007, 03:58 PM
  4. database upgrade problems
    By keystonewebworks in forum General Questions
    Replies: 0
    Last Post: 13 Oct 2006, 02:44 AM

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