I am having trouble installingIMathAS
When I try to run the database setup program as part of IMathAS, I get the following error:
Query failed : CREATE TABLE `imas_users` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `SID` VARCHAR(50) NOT NULL, `password` VARCHAR(32) NOT NULL, `rights` SMALLINT(4) UNSIGNED NOT NULL DEFAULT '0', `FirstName` VARCHAR(20) NOT NULL, `LastName` VARCHAR(20) NOT NULL, `email` VARCHAR(100) NOT NULL, `lastaccess` INT(10) UNSIGNED NOT NULL DEFAULT '0', `groupid` INT(10) UNSIGNED NOT NULL DEFAULT '0', `msgnotify` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', `qrightsdef` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', `deflib` INT(10) UNSIGNED NOT NULL DEFAULT '0', `usedeflib` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', `remoteaccess` VARCHAR(10) NOT NULL, INDEX (`lastaccess`), INDEX (`rights`), UNIQUE (`SID`) ) TYPE = innodb COMMENT = 'User Information'; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE = innodb COMMENT = 'User Information'' at line 1
Here are the installation instructions: imathas.com/imathas/readme.html
What am I doing wrong?
Thanks.
MySQL longer accepts TYPE = innodb, rather all instances must be changed to ENGINE = innodb
You can do this by changing ALL instances of TYPE = innodb to ENGINE = innodb within dbsetup.php
Though you can do this manually, you will need to do this around 40 times which isn't the most efficient method, but it CAN be done if you prefer.
Alternatively, for simplicity run a command
sed -i 's/TYPE = innodb/ENGINE = innodb/g' /pathtoimathas/dbsetup.php
if done correctly, this command will change all instances of TYPE = innodb to ENGINE = innodb within dbsetup.php. After completing this you must delete the config.php file and restart the installation process.