SQL error when deploying site
Permalink
Hello!
I'm trying to deploy a new C5 site into the wild! Woot!
However, there's an issue. My client host with SimpleHost. I configured the new site and imported the database from demo. I get this error:
It doesn't exist because the table is actually called 'config' in the new database. Since this is a shared host, I'm not sure how to fix this. I don't think I can set MySQL to case insensitive.
Has anyone run into this before?
Thanks!
I'm trying to deploy a new C5 site into the wild! Woot!
However, there's an issue. My client host with SimpleHost. I configured the new site and imported the database from demo. I get this error:
select cfValue from `Config` where cfKey = 'PERMISSIONS_MODEL' Table 'p581377r_concrete5.Config' doesn't exist
It doesn't exist because the table is actually called 'config' in the new database. Since this is a shared host, I'm not sure how to fix this. I don't think I can set MySQL to case insensitive.
Has anyone run into this before?
Thanks!
Actually, I found your SQL snippet for renaming the tables. I added all the new tables for version 5.3.3.1. I hope I got all the names right. I didn't have an easy way to verify what the code actually says in reference to some of these table names, but the site is up and running now. Woot!
Here's the snippet:
Here's the snippet:
RENAME TABLE areagroupblocktypes To AreaGroupBlockTypes; RENAME TABLE areagroups To AreaGroups; RENAME TABLE areas To Areas; RENAME TABLE ataddress To atAddress; RENAME TABLE atboolean To atBoolean; RENAME TABLE atbooleansettings To atBooleanSettings; RENAME TABLE atdatetime To atDateTime; RENAME TABLE atdatetimesettings To atDateTimeSettings; RENAME TABLE atdefault To atDefault; RENAME TABLE atfile To atFile; RENAME TABLE atnumber To atNumber; RENAME TABLE atselectoptions To atSelectOptions; RENAME TABLE atselectoptionsselected To atSelectOptionsSelected; RENAME TABLE atselectsettings To atSelectSettings; RENAME TABLE attributekeycategories To AttributeKeyCategories;
Viewing 15 lines of 99 lines. View entire code block.
I used this code snippet and it solved my problem, except for one thing:
This line
RENAME TABLE userbannedips To UserBannedIps;
should have been
RENAME TABLE userbannedips To UserBannedIPs;
This line
RENAME TABLE userbannedips To UserBannedIps;
should have been
RENAME TABLE userbannedips To UserBannedIPs;
Hello. We wrote add-on to fix tables names case sensitive problem.
Check it:
http://www.concrete5.org/marketplace/addons/mysql-case-insensitive-...
Check it:
http://www.concrete5.org/marketplace/addons/mysql-case-insensitive-...
If you are okay using phpMyAdmin and don't want to pay for the above addon, there's a free script available here:
http://www.concrete5.org/community/forums/installation/table-names-...
http://www.concrete5.org/community/forums/installation/table-names-...
https://www.concrete5.org/community/forums/installation/move-site/...