Платформа Freebsd 12(amd64)+Apache24+PHP7.
В общем надо создать таблица с таким набором:
Код: Выделить всё
CREATE TABLE `wusers` (
`time_begin` timestamp NOT NULL default '0000-00-00 00:00:00',
`rule_num` smallint(5) unsigned NOT NULL,
KEY `rule_num` (`rule_num`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 ;
Код: Выделить всё
CREATE TABLE hotspot (
-> time_begin timestamp NOT NULL default 0000-00-00 00:00:00,
-> rule_num smallint(5) unsigned NOT NULL,
-> KEY rule_num (rule_num)
-> ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 ;
ERROR 1064 (42000): 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 '-00-00 00:00:00,
rule_num smallint(5) unsigned NOT NULL,
KEY rule_num (rule_' at line 2
и пока только ошибки получаю.
Подскажите, что не так делаю при создании таблицы?