Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with transfering mysql info


webspaceunlimited

Recommended Posts

Hoping someone can help me out here.

 

I am transfering the hosting of an oscommerce site.

 

I have my existing site hosted and working - albeit the back up facility doesnt work. I can use phpmyadmin to access the mysql database of this site.

 

I have then on a different server built the oscommerce site using the latest oscommerce release - I have set up the header tags contribution and the easy populate contribution (this isnt enabled on the existing site either) and now looking to transfer over the data.

 

In theory it would seem sensible then to use the phpmyadmin to export the database content into an sql file - upload this file the the backup datafile on the new site and then to restore the data from here.

 

This in practice isnt working I am getting an error when trying this so.....

looking at the mysql databases

 

the existing one is: MySQL 4.0.20-standard

the new one is: MySQL 3.23.54-log

 

If anyone has any pointers I would be pleased of the help.

 

Many Thanks

Link to comment
Share on other sites

Hoping someone can help me out here.

 

I am transfering the hosting of an oscommerce site.

 

I have my existing site hosted and working - albeit the back up facility doesnt work. I can use phpmyadmin to access the mysql database of this site.

 

I have then on a different server built the oscommerce site using the latest oscommerce release - I have set up the header tags contribution and the easy populate contribution (this isnt enabled on the existing site either) and now looking to transfer over the data.

 

In theory it would seem sensible then to use the phpmyadmin to export the database content into an sql file - upload this file the the backup datafile on the new site and then to restore the data from here.

 

This in practice isnt working I am getting an error when trying this so.....

looking at the mysql databases

 

the existing one is: MySQL 4.0.20-standard

the new one is: MySQL 3.23.54-log

 

If anyone has any pointers I would be pleased of the help.

 

Many Thanks

 

 

well what is the error you get.

 

Does the .sql file you backed up from phpmyadmin have create table statements in it, does you new database already have the tables created in it BINGO

Link to comment
Share on other sites

looking at it I had saved the original file as insert.

 

the phpmyadmin gives a variety of options

 

Also a variety of options:

Add custom comment into header (\n splits lines):

Enclose export in a transaction

Disable foreign key checks

 

Database export options:

Add DROP DATABASE

Structure:

Add DROP TABLE

Add IF NOT EXISTS

Add AUTO_INCREMENT value

Enclose table and field names with backquotes

Add into comments

Creation/Update/Check dates

 

Data:

Complete inserts

Extended inserts

Use delayed inserts

Use ignore inserts

Use hexadecimal for binary fields

Export type: INSERT UPDATE REPLACE

 

I have taken another copy as update - so lets see if that works any better.

 

Any suggestions as to which type I should be saving as?

 

Sorry for mebeing a bit thick today - too damn hot and too many phone calls.

 

Many thanks

Link to comment
Share on other sites

I would do it with Drop Table and complete inserts

 

(I also find the ' Enclose table and field names with backquotes' can be a bit troublesome at times, so I would try without first, the try with if it doesnt work)

Link to comment
Share on other sites

to be honest I am more familiar with sql server and .asp than php and mysql - Also I prefer to host only for websites I have built myself.

 

If hosting for a 3rd party then happy to provide hosting for them to do whatever - in this case for a customer to then not know what he is doing and ask for help (a client who has yet to pay) and for me then to help that client in my limited and unlearned manner then yes I think your comments are a little unkind as you say.

Link to comment
Share on other sites

to be honest I am more familiar with sql server and .asp than php and mysql - Also I prefer to host only for websites I have built myself.

 

If hosting for a 3rd party then happy to provide hosting for them to do whatever  - in this case for a customer to then not know what he is doing and ask for help (a client who has yet to pay) and for me then to help that client in my limited and unlearned manner then yes  I think your comments are a little unkind as you say.

 

anyway, did it work?

Link to comment
Share on other sites

anyway, did it work?

not yet.

 

pulling my hair out here I have to say :)

 

just got one of my colleagues to take a look at it and he has walked off after making his excuses... <grin>

 

plenty of

Warning session start(): open(SESSION_WRITE_DIRECTORY?sess_ etc etc...

 

errors.... so case of trying to ignore the heat and think for a while..

Link to comment
Share on other sites

just read part of it, egads, going backwards with mysql is probably going to wreak havoc also, perhaps find a different host with a newer mysql . . .

Link to comment
Share on other sites

right - the info is running problems in the session .php file...

 

thinking it throught I have to look at the fact that yes it could be the mysql / newer / older version issue... or it could be the fact that the new oscommerce site is... the new site with various contributions installed such as the header tags which does make database changes.

 

So.... I am taking a copy of the latest site with all contribution installed and... then placing a fresh copy of the oscommerce site on the same server space and will see if it without the contributions makes a difference.

Link to comment
Share on other sites

Maybe I am looking at this over-simplicticly...

 

You have uploaded OSC and it is working.

 

You have a baked up file with your old database.

 

On your new server all you have to do is go into PHPMYADMIN and:

 

1. Select ALL

2. DROP

 

3. CLICK SQL TAB

4. CLICK BROWSE

5. CLICK GO

 

Your old database will now be in your new installation of OSC.

 

Did I miss something ?? Or have I got this wrong ?

Link to comment
Share on other sites

thanks for the reply - things have moved on a little since that - I had moved the data before and ended up being left with an error - so there were a few areas that could be wrong

1) my knowledge of the phpmyadmin facility

2) the version of mysql

3) the one I am looking at now - which is the impact of the "new" cart having had various contributions added to it - the epdq, and the easy populare not so much an issue - but the header tags is adifferent matter - so... now its a case of making an assumption the data is fine but the shopping cart isnt is being explored .....

 

If it wasnt so hot I would be having fun

Link to comment
Share on other sites

right looks like it isnt the mysql database version differences - looking at the content moved over it points toward the problem being updates to the database with the header tags contribution, and the upgrade to a later release of the os commerce site.

 

still not there yet - but starting to make more sense

 

thank you all with your patience

Link to comment
Share on other sites

while I am uploading all the images etc and changing the relevant pages of new osc intall wonder if anyone has anythoughts on this:

 

Warning: session_start(): open(SESSION_WRITE_DIRECTORY/sess_3b000163a3c0e101ec16ae64be00133e, O_RDWR) failed: No such file or directory (2) in ..../sessions.php on line 67

Link to comment
Share on other sites

sorry, let me reclarify

temp setting is in your path in the admin/configuration

store_sessions is in the configure.php files, set to mysql

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...