Jump to content

Database Backup/Restore


Guest

Recommended Posts

CubeCart 3 does not have a database back up feature as this was assumed to be a security risk because people would back up and download the sql file but then would not delete the backup file from their server even tho they were warned to delete it as leaving your backed up sql file in your backup directory is a HUGE security risk

especially since passwords were not encrypted in the database in v2 flavors...

to back up your database login to your cpanel (if you have it) and go into mysql and click on the phpmyadmin link from there click export at the top

click the select all and make any other clicks for options like extended inserts etc and save as a file (give it a name) and save the sql file on your hard drive

hope this helps

Link to comment
Share on other sites

Have tried exporting and running sql which results in............

You have an error in your SQL syntax near 'default int(1) DEFAULT '0' NOT NULL , KEY moduleId (moduleId) )' at line 1.

Query: CREATE TABLE CubeCart_Modules ( moduleId int(11) DEFAULT '' NOT NULL auto_increment, module varchar(10) DEFAULT '' NOT NULL , folder varchar(30) DEFAULT '' NOT NULL , status smallint(1) DEFAULT '0' NOT NULL , default int(1) DEFAULT '0' NOT NULL , KEY moduleId (moduleId) )

As I know slightly less than zero about SQL, any help would be greatly appreciated.

Cheers,

Ally.

Link to comment
Share on other sites

Guest Denver Dave

It would be nice to have the database backup commands from phpMyAdmin in a script file. I'm not sure how we would do the flow control, but instead of backing up numerous databases on several servers - perhaps we could just run a script and maybe click the enter to save. Anyone doing this?

Another option which would be great would be to FTP to another server.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...