Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 67
  1. #51
    Join Date
    Nov 2009
    Location
    Melbourne, Australia
    Posts
    127
    Plugin Contributions
    0

    Default Re: Removed local database from phpmyadmin by mistake

    The local config files ( admin/includes/configure.php and includes/configure.php ) both have soulk_ in the DB_prefix line. If they are indeed the original local files and not the imported ones that have overwritten them.
    If they match the imported SQL database tables DB_prefix ( which they do from what i can see ) then it should work yes?
    What I don't understand is if the SQL database files that I have imported in that have doubled up ( meaning the system doesn't know about them yet/can't put them where they need to be ) are reading the same DB_prefix as the local configure.php files then why isn't it working?
    If the local configure.php files say that the DB_prefix is soulk_ then why don't the local database tables in phpmyadmin also reflect these same settings so to speak?
    I am missing something here aren't I?

    Cheers mate.

  2. #52
    Join Date
    Nov 2009
    Location
    Melbourne, Australia
    Posts
    127
    Plugin Contributions
    0

    Default Re: Removed local database from phpmyadmin by mistake

    I am looking at the SQL database backup table files in my text editor and it would appear that all of these files headings do not have soulk_ anywhere at all. This would suggest that I have been thinking that the imported files were the ones that had soulk_ before them but if I am correct it is the other way around.
    If this is the case do i go through the SQL DB tables files and change everyone of them with my text editor one at a time to read soulk_ or is there another faster way or have i gotten my assumption wrong about this?

  3. #53
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Removed local database from phpmyadmin by mistake

    Quote Originally Posted by Soulkreed View Post
    The local config files ( admin/includes/configure.php and includes/configure.php ) both have soulk_ in the DB_prefix line.
    That maybe so, but the question remains, is this what they need to be?

    Quote Originally Posted by Soulkreed View Post
    If they are indeed the original local files and not the imported ones that have overwritten them.
    Time to take a step or two back again.

    I am/was under the impression that you had a working local installation and that you are now trying to import the database tables from your live server. If this is correct you *shouldn't* be importing any files at all (especially not the configure.php files) because these files *will* be different on your live host than they are on your localhost.

    Quote Originally Posted by Soulkreed View Post
    If they match the imported SQL database tables DB_prefix ( which they do from what i can see ) then it should work yes?
    Yes, but only as long as the SERVER specification and file paths are also correct, and if you are overwriting your local copy of these files from the copy on your live server you WILL have problems, and things won't work as expected.

    Quote Originally Posted by Soulkreed View Post
    What I don't understand is if the SQL database files that I have imported in that have doubled up ( meaning the system doesn't know about them yet/can't put them where they need to be )
    The doubling up of the database tables is telling us that your localhost installation is using a different table prefix than the server installation that did the export.

    Quote Originally Posted by Soulkreed View Post
    I am missing something here aren't I?
    .
    Yes

    Cheers
    Rod

  4. #54
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Removed local database from phpmyadmin by mistake

    Quote Originally Posted by Soulkreed View Post
    I am looking at the SQL database backup table files in my text editor and it would appear that all of these files headings do not have soulk_ anywhere at all. This would suggest that I have been thinking that the imported files were the ones that had soulk_ before them but if I am correct it is the other way around.
    This would also explain the doubling up.

    Quote Originally Posted by Soulkreed View Post
    If this is the case do i go through the SQL DB tables files and change everyone of them with my text editor one at a time to read soulk_
    That'll be one way of doing it (and the way most likely to cause you to have problems and errors due to miskeying or mistyping).
    A better way would be to use a search/replace tool.

    The BEST way however would be to do what I have been trying to tell you all along, and that is to make your local installation match your live installation as closely as possible. If your live server uses 'zen_' as a prefix then when you create your local copy you should also use a 'zen_' prefix.
    If your live server uses 'soulk_' as a prefix then when you create your local copy you should also use a 'soulk_' prefix.
    If your live server doesn't use a prefix at all, then when you create your local copy you should also use no prefix.

    By keeping the naming conventions consistent in this manner means that you'll not need to edit your .sql data file at all, and at the same time it also means one less difference to worry about between the configure.php files on the live server and your local server.

    CHeers
    Rod

  5. #55
    Join Date
    Nov 2009
    Location
    Melbourne, Australia
    Posts
    127
    Plugin Contributions
    0

    Default Re: Removed local database from phpmyadmin by mistake

    Hi,
    the SQL database tables backup files that I have imported are not from my live server, they are from my local backup save I did just before I transfered my files over to Dot Easy.
    I know this probably doesn't change the fact that I still need to make the correct changes with the prefix's regardless weather the files are from my live server or my local ( I just thought i would clarify that for us, apologise for leaving that bit of info out )

    Cheers.

  6. #56
    Join Date
    Nov 2009
    Location
    Melbourne, Australia
    Posts
    127
    Plugin Contributions
    0

    Default Re: Removed local database from phpmyadmin by mistake

    Ok, it appears that the SQL database tables backup that I was importing doesn't have a prefix with it at all. I guess this is why it was doubling up so to speak. I re installed zencart this time without the table-prefix and I am now getting this when I import the files into the zencart database in phpmyadmin

    MySQL said: Documentation
    #1050 - Table 'address_book' already exists

    Any clues please?

  7. #57
    Join Date
    Nov 2009
    Location
    Melbourne, Australia
    Posts
    127
    Plugin Contributions
    0

    Default Re: Removed local database from phpmyadmin by mistake

    I have searched the threads about this particular error and am not making any head way, I think I'll give dropping each table a go one at a time and see if that does anything ( this is the long way I'm sure but I don't know what else to do here )

    Here goes, gulp..

  8. #58
    Join Date
    Nov 2009
    Location
    Melbourne, Australia
    Posts
    127
    Plugin Contributions
    0

    Default Re: Removed local database from phpmyadmin by mistake

    Well that proved to be quite a painful experience. I basically got more confused than I was before. It didn't work.
    I give up..

  9. #59
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Removed local database from phpmyadmin by mistake

    Quote Originally Posted by Soulkreed View Post
    I am now getting this when I import the files into the zencart database in phpmyadmin

    MySQL said: Documentation
    #1050 - Table 'address_book' already exists

    Any clues please?
    This is good. What you now need to do is DROP *all* of the existing tables (not the database itself) and then do the import.

    Cheers
    Rod

  10. #60
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Removed local database from phpmyadmin by mistake

    Quote Originally Posted by Soulkreed View Post
    Hi,
    the SQL database tables backup files that I have imported are not from my live server, they are from my local backup save I did just before I transfered my files over to Dot Easy.
    Assuming there has been activity on your live server since your local save was made, the server database files will be more up to date than your presaved files.

    Quote Originally Posted by Soulkreed View Post
    I know this probably doesn't change the fact that I still need to make the correct changes with the prefix's regardless weather the files are from my live server or my local ( I just thought i would clarify that for us, apologise for leaving that bit of info out )

    Cheers.
    Correct, and this is why I've been recommending you make your local tables match what is being used on the server (assuming you were trying to re-create your server setup locally).

    The fact that it now appears you are trying to recreate a local setup from sql backups made on an older local installation means that you'll be best using the same naming convention that was used on the original database. However, this will probably also mean you'll still have a naming mismatch between your newly restored local system, and the system used on your live server. Although having this mismatch isn't really going to 'hurt' anything, it WILL make it more difficult for you to export from one system and import into the other.

    Cheers
    Rod

 

 
Page 6 of 7 FirstFirst ... 4567 LastLast

Similar Threads

  1. v150 Local System crashed,got data back up from hard drive, need help on phpmyadmin,zencar
    By Ravins in forum Installing on a Windows Server
    Replies: 0
    Last Post: 28 Apr 2012, 10:54 PM
  2. Copy tax table from SQL database phpMyAdmin
    By giftmeister in forum General Questions
    Replies: 0
    Last Post: 31 Oct 2011, 07:57 PM
  3. Installing on local and cannot access phpmyadmin on wamp
    By RenoB in forum Installing on a Windows Server
    Replies: 1
    Last Post: 11 Mar 2010, 11:31 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