Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 23

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 30.09.2004, 19:02   #1 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 9
Keveen is on a distinguished road
Default mySQL database transfer - how?

I could not get Mambo 4.5.1 to install with my old database - probable too many complicated components like phpshop - one line error is enough to block the whole thing!

Now I have upgraded via a fresh install to 4.5.1 and it is great but - is there a way of extracting the data from my 1.0.9 backed up mySQL database and importing it into my new database?

Specifically - the Content with the categories I created, or just the content and no category.

phpShop categories and content.

I have tried importing my backup of phpshop made before I deleted my old system - I'm not savvy enough to work out the error messages.

I tried cutting and pasting what I thought were the relevant bits from the databse file via QUERY. I tried that with phpshop entries and it was accepted by mySQL but when I go to the new phpshop component there is not sign of the product list I just imported. The same thing for my old Content.

Importing and exporting seems to be full of pitfalls and there's not much in Mambo documentation to help. Is there an Idiot's Guide?

Probably I will have to update everything manually!!
Keveen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 01.10.2004, 12:59   #2 (permalink)
Mamber
 
zvonci's Avatar
 
Join Date: Sep 2004
Location: Croatia, Varazdin
Posts: 70
zvonci is on a distinguished road
Default Re: mySQL database transfer - how?

If you want to import content from old mambo to a 4.5.1, you must export table mos_content from old mambo(you could do that in phpmyadmin, it's very easy), open saved sql file in notepad(you should save it as with out compresion,this is optional in phpmyadmin),delete rows (beggining of file) till "INSERT INTO"(you must delete table creation because that table in 4.5.1 already exist),save file, and select 4.5.1 database (in phpmyadmin), find table "mos_content", click above button "SQL", then you should find a button "browse" (location of text file), select file that you preveusly edit, and click "go" That's it Hope you get it I counfused even my self
zvonci is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01.10.2004, 13:42   #3 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 9
Keveen is on a distinguished road
Default Re: mySQL database transfer - how?

Thanks

I tried it - almost works but not quite.

I understand what you mean - just selecting the content data section from the mySQL dump and NOT the table creation part.

In phpMyAdmin I had to:

Select the table I want to import into
Click on INSERT option under the ACTION column and then
Click on SQL - and the table I am working on is clearly listed at the top of the page

I can use a text file or just cut and paste the section I want.

But I got an error:

#1062 - Duplicate entry '1' for key 1

I tried changing the numbers of my data rows but the same result.

It's almost working. It would be useful to be able to find a way because it would be a fast way of data transfer from other backed up databases.
Keveen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01.10.2004, 15:42   #4 (permalink)
Mamber
 
zvonci's Avatar
 
Join Date: Sep 2004
Location: Croatia, Varazdin
Posts: 70
zvonci is on a distinguished road
Default Re: mySQL database transfer - how?

I think that's not working because you have same ID's in old & new mambo.I'm not sure, but you must delete all entries in mos_content table (don't delete table mos_content) from mambo4.5.1 ,then import mos_content.sql file(from mambo4.5). Note, this way you will lose every content items in mambo 4.5.1,if you have some,but all 4.5 content should work. It worked for me
zvonci is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01.10.2004, 18:22   #5 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 9
Keveen is on a distinguished road
Default Re: mySQL database transfer - how?

Deleted the entries and imported successfully - nearly there - except! - I can't find any of the imported content except one item which suggests the others are there but not recognised. I've tried all the content submenus.

I even tried creating a new database, importing my backup, updating with update.sql and then exporting etc. Same thing. IMport a success but it does not show up in the Admin section. There must be some small step missing. I'll find it eventually because it could be very useful for the next upgrade!
Keveen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01.10.2004, 19:04   #6 (permalink)
Mamber
 
zvonci's Avatar
 
Join Date: Sep 2004
Location: Croatia, Varazdin
Posts: 70
zvonci is on a distinguished road
Default Re: mySQL database transfer - how?

Wait,wait.. Are you talking about phpshop content or mambo content? If you are talking about phpshop content you must find a table where are stored phpshop content items, i don't know which table,because I dont use phpshop component.And insert into phpshop table in mambo 4.5.1. Note, I dont know is this gonna work.

For mambo content I'm sure it must work, because it worked for me and I dont see any reasen why it shouldn't work for you.

ps.
Maybe there is a problem with phpshop component working with new mambo..I think phpshop have plenty tables, you should export them all, and import them into new mambo..

You better have all backups
__________________
-----
Mambo HR Team

WebMaster
zvonci is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01.10.2004, 19:35   #7 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 9
Keveen is on a distinguished road
Default Re: mySQL database transfer - how?

No, just plain Mambo content. I've got them all backed up. When and if I find a solution I'll post it. It'll be quicker just to rebuild it all again. I don't think I'll be upgrading for a while! Thanks though, I've learned a bit more...
Keveen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02.10.2004, 01:02   #8 (permalink)
Junior Mamber
 
Join Date: Sep 2004
Posts: 28
OffLead is on a distinguished road
Default Re: mySQL database transfer - how?

Okay, this is a wild random guess, because I have only moderate amounts of actual sql knowledge, and have only done transfers like this a few times (including yesterday). I also don't have time right now to open up phpmyadmin and check the mos_content table structure. But...

Is it possible that the content items you pulled from your old database are assigned a category or section id that either doesn't exist or exists under a different ID number in your new database? If so, might this content not show up properly?

And, I assume you've double checked via phpmyadmin that the data IS in fact in the table?

Like I said, it's a long shot, but that's the sort of thing that I'd think of to check if I ran into this same problem.
OffLead is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL database installation - ERROR webdogg Mambo 4.5 General Talk 4 03.06.2005 01:05
Establishing a MySQL database kippwinger Mambo 4.5.1 Installation and Upgrades 2 20.08.2004 09:17
How do I transfer my phpbb forum database over to the mambo forum ? hkclubbing Mambo 4.5 'How Do I' Questions 0 30.06.2004 06:46


All times are GMT +2. The time now is 13:06.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.