Loading...
 
Skip to main content

Architecture / Installation


Re: unable to connect to database, installation errors

Thanks Guys for the continued support. Chibaguy's suggestion enabled me to
shed significantly more insight into my particular problem with v2.2. Just
for the heck of it, I tried upgrading to v 2.2, after 1.911 was working.
After noticing a far greater proportion of successful queries, but still a fair
amount of errors, I implemented Chibaguy's approach using PHPMyAdmin. I
have one last annoying very specific error remaining, which I will
describe in some detail below, and maybe you guys can help me solve that
one.

Most of the errors were of the type "You have an error in your SQL syntax
near 'ENGINE=MyISAM'... ". I discovered this was a result of my hosting
company having MySQL ver 3.23.58, which I guess is a tad older version and
incompatible with 'ENGINE'. I changed all instances of 'ENGINE' to 'TYPE'
and all of those errors disappeared. {I have to recant some of my comments
as evidence is mounting that my hosting company is not quite ready for
v2.2, rather than a problem with v2.2. I guess v2.2 is not immensely
backwards compatible with older versions of MySQL. I wonder if my last
error is also related to such incompatibility.

The last hangup or the next Error, at least, is with SQL query:

DROP TABLE IF EXISTS tiki_modules;
CREATE TABLE tiki_modules(
moduleId int( 8 ) NOT NULL AUTO_INCREMENT ,
name varchar( 200 ) NOT NULL default '',
position char( 1 ) default NULL ,
ord int( 4 ) default NULL ,
TYPE char( 1 ) default NULL ,
title varchar( 255 ) default NULL ,
cache_time int( 14 ) default NULL ,
rows int( 4 ) default NULL ,
params varchar( 255 ) default NULL ,
groups text,
PRIMARY KEY ( name( 100 ) , position, ord, params( 140 ) ) ,
KEY positionType( position, TYPE ) ,
KEY moduleId( moduleId )
) TYPE = MYISAM

MySQL said: Documentation

  1. 1171 - All parts of a PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE instead


I cannot seem to easily solve this one. I cannot seem to find syntax that
will work. Changing the declarations of NULL to NOT NULL in various
permutations is not doing it. I don't quite know the syntax for utilizing UNIQUE either.

Can you guys help with this hopefully, last specific error?