![]() |
**Corrupt file** - "create_tables.sql" in download zip - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: Installation Problems (https://community.letodms.com/forumdisplay.php?fid=9) +--- Thread: **Corrupt file** - "create_tables.sql" in download zip (/showthread.php?tid=313) |
**Corrupt file** - "create_tables.sql" in download zip - berberama - 07-29-2011 Install instructions here: http://www.letodms.com/doc/doku.php?id=install:install But... When going to step #6 "Execute “create_tables.sql” to preload database" MySQL displays error for database as: Code: Error How do we fix that. I can see table created, but they do not work (because of above error) - check.php displays: Code: settings->_rootDir : Ok Again, I can see all tables, but because of error (in the .sql file) they do not work. What can I do to fix this? Thank you. RE: **Corrupt file** - "create_tables.sql" in download zip - berberama - 08-04-2011 Hi All... ... *bump* Please can someone help with this? ![]() Thanks muchly! RE: **Corrupt file** - "create_tables.sql" in download zip - berberama - 08-04-2011 I found an answer which might help people --> http://stackoverflow.com/questions/1827063/mysql-error-key-specification-without-a-key-length I think it suggests there's something wrong with the length or characters size? But I'm not fully versed so have difficulty understanding. maybe some LetoDMS Guru can look at this and fix the .sql file? I hope so!!! ![]() Pretty please... RE: **Corrupt file** - "create_tables.sql" in download zip - berberama - 08-04-2011 After much trying, I've narrowed down the offending MySQL entry to: Code: CREATE TABLE `tblCategory` ( Which throws this error: Quote:#1170 - BLOB/TEXT column 'name' used in key specification without a key length MySQL version is: 5.1.41 PHP version is: 5.2.13 Server API is: CGI/FastCGI Apache version is: 2.2.15 OS versions is: centOS 5.6 i686 Please can someone help? ![]() I was directed to the following information by another PHP developer: Note: He was able to duplicate this issue on 3 of his servers! Quote:When creating a new table or altering an existing table with primary keys, unique constraints and indexes, or when defining a new index with Alter Table manipulation statement in MySQL database, the following error may occur and prohibit the the command from completing: Info from: http://www.mydigitallife.info/mysql-error-1170-42000-blobtext-column-used-in-key-specification-without-a-key-length/ In essence, he told me to use varchar type (not text) and place a length limit of 255. I will try that shortly and report. RE: **Corrupt file** - "create_tables.sql" in download zip - dkeaton - 08-18-2011 I am getting the exact error. I cannot install 3.2 or 3.1 because of this issue. Any solutions?? RE: **Corrupt file** - "create_tables.sql" in download zip - steinm - 08-23-2011 (08-04-2011, 10:07 PM)berberama Wrote: After much trying, I've narrowed down the offending MySQL entry to: just remove the UNIQUE('name') Uwe RE: **Corrupt file** - "create_tables.sql" in download zip - developer - 09-14-2011 I faced the same problem, and what I did is to replace 'name' with 'id' instead : CREATE TABLE `tblCategory` ( `id` int(11) NOT NULL auto_increment, `name` text NOT NULL, PRIMARY KEY (`id`), UNIQUE (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; Note : You may see some duplicate tables error afterwards as some tables were created halfway before this error. But the overall creation should have completed successfully. RE: **Corrupt file** - "create_tables.sql" in download zip - heraco - 09-26-2011 I used the script and it was ok: create_tables-innodb.sql |