Error in SQL Query
Posted: 21 Sep 2008, 00:26
Hi,
In a new phoca installation with the last version my db tables were not created. I followed your instructions and run the sql query given in install.bak in admin-php. However, I get the following response:
[code]jos ALTER TABLE `jos__phocagallery_categories` ADD `hits` INT( 11 ) NOT NULL DEFAULT '0' AFTER `count` ;
MySQL meldet: Dokumentation
#1064 - 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 'jos ALTER TABLE `jos__phocagallery_categories` ADD `hits` INT( 11 ) NOT NULL DEF' at line 1[/code]
What is wrong in the syntax? My system info tolds me: Database version 5.0.32-Debian_7etch6 , PHP 5.2, Apache Server.
In a new phoca installation with the last version my db tables were not created. I followed your instructions and run the sql query given in install.bak in admin-php. However, I get the following response:
[code]jos ALTER TABLE `jos__phocagallery_categories` ADD `hits` INT( 11 ) NOT NULL DEFAULT '0' AFTER `count` ;
MySQL meldet: Dokumentation
#1064 - 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 'jos ALTER TABLE `jos__phocagallery_categories` ADD `hits` INT( 11 ) NOT NULL DEF' at line 1[/code]
What is wrong in the syntax? My system info tolds me: Database version 5.0.32-Debian_7etch6 , PHP 5.2, Apache Server.