Exporting from localhost to LIVE site

Permalink 2 users found helpful
Hi everyone,

I attempted to move my site from development (localhost) to LIVE site at my domain.
However this turned out to be more troublesome than I expected.
After some searches on the web, I learned that my problem came from exporting my SQL file from Windows (localhost) to my LIVE site, which runs at a Linux server.
So the issue had to do with the fact that all table names from Windows are written in lowercase, but at a Linux server it requires a mixed table name consisting of both lowercase and uppercase letters.

So I spent the most of my morning rewriting all the table names to be a mix of Lower- and uppercase letters in consistence with the table names.

So I thought to my self, why publish all these table rewrites here so you could benefit from it as well.

Simply, use the posted mySql commandos and go to the PhpMyAdmin at your LIVE site, and in the SQL window simply post these "alter tables"

Please note, perform this at your own risk.
The "alter statements" below is for Concrete5 version 5.4.1.1

ALTER TABLE `areagroupblocktypes` RENAME TO `AreaGroupBlockTypes`;
ALTER TABLE `areagroups` RENAME TO `AreaGroups`;
ALTER TABLE `areas` RENAME TO `Areas`;
ALTER TABLE `ataddress` RENAME TO `atAddress`;
ALTER TABLE `ataddresscustomcountries` RENAME TO `atAddressCustomCountries`;
ALTER TABLE `ataddresssettings` RENAME TO `atAddressSettings`;
ALTER TABLE `atboolean` RENAME TO `atBoolean`;
ALTER TABLE `atbooleansettings` RENAME TO `atBooleanSettings`;
ALTER TABLE `atdatetime` RENAME TO `atDateTime`;
ALTER TABLE `atdatetimesettings` RENAME TO `atDateTimeSettings`;
ALTER TABLE `atdefault` RENAME TO `atDefault`;
ALTER TABLE `atfile` RENAME TO `atFile`;
ALTER TABLE `atnumber` RENAME TO `atNumber`;
ALTER TABLE `atselectoptions` RENAME TO `atSelectOptions`;
ALTER TABLE `atselectoptionsselected` RENAME TO `atSelectOptionsSelected`;

1 Attachment

sabumnim
 
shadowcomputers replied on at Permalink Reply
shadowcomputers
Useful instructions to moving a site can be found at:http://www.concrete5.org/documentation/installation/moving_a_site...

One of the links on that page goes to an add-on that should help you move your database from SQL to MySQL.
The link is:http://www.concrete5.org/marketplace/addons/mysql-case-insensitive-...

I hope this helps.
siteadvice replied on at Permalink Reply
siteadvice
Add to this list...

ALTER TABLE `composercontentlayout` RENAME TO `ComposerContentLayout`;
ALTER TABLE `composerdrafts` RENAME TO `ComposerDrafts`;
ALTER TABLE `composertypes` RENAME TO `ComposerTypes`;
siteadvice replied on at Permalink Reply
siteadvice
I just did a clean install of v 5.6.3.1 and there are now 171 tables in the Concrete5 database.

Does anyone have an update of these table rename instructions with the latest set of tables included?
Mainio replied on at Permalink Reply
Mainio
http://www.concrete5.org/documentation/how-tos/developers/mysql-database-case-insensitivity/

http://www.concrete5.org/marketplace/addons/database-case-sensitivi...
siteadvice replied on at Permalink Reply
siteadvice
These ones seem to be missing...

ALTER TABLE `areapermissionassignments` RENAME TO `AreaPermissionAssignments`;
ALTER TABLE `areapermissionblocktypeaccesslist` RENAME TO `AreaPermissionBlockTypeAccessList`;
ALTER TABLE `areapermissionblocktypeaccesslistcustom` RENAME TO `AreaPermissionBlockTypeAccessListCustom`;
ALTER TABLE `basicworkflowpermissionassignments` RENAME TO `BasicWorkflowPermissionAssignments`;
ALTER TABLE `basicworkflowprogressdata` RENAME TO `BasicWorkflowProgressData`;
ALTER TABLE `blockpermissionassignments` RENAME TO `BlockPermissionAssignments`;
ALTER TABLE `blocktypepermissionblocktypeaccesslist` RENAME TO `BlockTypePermissionBlockTypeAccessList`;
ALTER TABLE `blocktypepermissionblocktypeaccesslistcustom` RENAME TO `BlockTypePermissionBlockTypeAccessListCustom`;
ALTER TABLE `filepermissionassignments` RENAME TO `FilePermissionAssignments`;
ALTER TABLE `filesetpermissionassignments` RENAME TO `FileSetPermissionAssignments`;
ALTER TABLE `filesetpermissionfiletypeaccesslist` RENAME TO `FileSetPermissionFileTypeAccessList`;
ALTER TABLE `filesetpermissionfiletypeaccesslistcustom` RENAME TO `FileSetPermissionFileTypeAccessListCustom`;
ALTER TABLE `groupsetgroups` RENAME TO `GroupSetGroups`;
ALTER TABLE `groupsets` RENAME TO `GroupSets`;
ALTER TABLE `pagepermissionassignments` RENAME TO `PagePermissionAssignments`;
ALTER TABLE `pagepermissionpagetypeaccesslist` RENAME TO `PagePermissionPageTypeAccessList`;
ALTER TABLE `pagepermissionpagetypeaccesslistcustom` RENAME TO `PagePermissionPageTypeAccessListCustom`;
ALTER TABLE `pagepermissionpropertyaccesslist` RENAME TO `PagePermissionPropertyAccessList`;
ALTER TABLE `pagepermissionpropertyattributeaccesslistcustom` RENAME TO `PagePermissionPropertyAttributeAccessListCustom`;
ALTER TABLE `pagepermissionthemeaccesslist` RENAME TO `PagePermissionThemeAccessList`;
ALTER TABLE `pagepermissionthemeaccesslistcustom` RENAME TO `PagePermissionThemeAccessListCustom`;
ALTER TABLE `pageworkflowprogress` RENAME TO `PageWorkflowProgress`;
ALTER TABLE `permissionaccess` RENAME TO `PermissionAccess`;
ALTER TABLE `permissionaccessentities` RENAME TO `PermissionAccessEntities`;
ALTER TABLE `permissionaccessentitygroups` RENAME TO `PermissionAccessEntityGroups`;
ALTER TABLE `permissionaccessentitygroupsets` RENAME TO `PermissionAccessEntityGroupSets`;
ALTER TABLE `permissionaccessentitytypecategories` RENAME TO `PermissionAccessEntityTypeCategories`;
ALTER TABLE `permissionaccessentitytypes` RENAME TO `PermissionAccessEntityTypes`;
ALTER TABLE `permissionaccessentityusers` RENAME TO `PermissionAccessEntityUsers`;
ALTER TABLE `permissionaccesslist` RENAME TO `PermissionAccessList`;
ALTER TABLE `permissionaccessworkflows` RENAME TO `PermissionAccessWorkflows`;
ALTER TABLE `permissionassignments` RENAME TO `PermissionAssignments`;
ALTER TABLE `permissiondurationobjects` RENAME TO `PermissionDurationObjects`;
ALTER TABLE `permissionkeycategories` RENAME TO `PermissionKeyCategories`;
ALTER TABLE `permissionkeys` RENAME TO `PermissionKeys`;
ALTER TABLE `userpermissionassigngroupaccesslist` RENAME TO `UserPermissionAssignGroupAccessList`;
ALTER TABLE `userpermissionassigngroupaccesslistcustom` RENAME TO `UserPermissionAssignGroupAccessListCustom`;
ALTER TABLE `userpermissioneditpropertyaccesslist` RENAME TO `UserPermissionEditPropertyAccessList`;
ALTER TABLE `userpermissioneditpropertyattributeaccesslistcustom` RENAME TO `UserPermissionEditPropertyAttributeAccessListCustom`;
ALTER TABLE `userpermissionusersearchaccesslist` RENAME TO `UserPermissionUserSearchAccessList`;
ALTER TABLE `userpermissionusersearchaccesslistcustom` RENAME TO `UserPermissionUserSearchAccessListCustom`;
ALTER TABLE `userpermissionviewattributeaccesslist` RENAME TO `UserPermissionViewAttributeAccessList`;
ALTER TABLE `userpermissionviewattributeaccesslistcustom` RENAME TO `UserPermissionViewAttributeAccessListCustom`;
ALTER TABLE `workflowprogress` RENAME TO `WorkflowProgress`;
ALTER TABLE `workflowprogresscategories` RENAME TO `WorkflowProgressCategories`;
ALTER TABLE `workflowprogresshistory` RENAME TO `WorkflowProgressHistory`;
ALTER TABLE `workflowrequestobjects` RENAME TO `WorkflowRequestObjects`;
ALTER TABLE `workflows` RENAME TO `Workflows`;
ALTER TABLE `workflowtypes` RENAME TO `WorkflowTypes`;
ALTER TABLE `queuemessages` RENAME TO `QueueMessages`;
ALTER TABLE `queuepageduplicationrelations` RENAME TO `QueuePageDuplicationRelations`;
ALTER TABLE `queues` RENAME TO `Queues`;
ALTER TABLE `stacks` RENAME TO `Stacks`;
ALTER TABLE `systemantispamlibraries` RENAME TO `SystemAntiSpamLibraries`;
ALTER TABLE `systemcaptchalibraries` RENAME TO `SystemCaptchaLibraries`;
ALTER TABLE `btcorescrapbookdisplay` RENAME TO `btCoreScrapbookDisplay`;
ALTER TABLE `btcorestackdisplay` RENAME TO `btCoreStackDisplay`;
ALTER TABLE `btdashboardnewsflowlatest` RENAME TO `btDashboardNewsflowLatest`;
ALTER TABLE `jobsetjobs` RENAME TO `JobSetJobs`;
ALTER TABLE `jobsets` RENAME TO `JobSets`;
ALTER TABLE `collectionversionblocksoutputcache` RENAME TO `CollectionVersionBlocksOutputCache`;
ALTER TABLE `collectionversionrelatededits` RENAME TO `CollectionVersionRelatedEdits`;

Thanks to websanity (http://www.concrete5.org/profile/-/view/12856/) for providing this list, which saved some time:http://www.concrete5.org/community/forums/documentation_efforts/con...