fastz28 Posted July 17, 2013 Share Posted July 17, 2013 QL query: CREATE TABLE pop_cpg_pictures ( pid int(11) NOT NULL auto_increment, aid int(11) NOT NULL default '0', filepath varchar(255) NOT NULL default '', filename varchar(255) NOT NULL default '', filesize int(11) NOT NULL default '0', total_filesize int(11) NOT NULL default '0', pwidth smallint(6) NOT NULL default '0', pheight smallint(6) NOT NULL default '0', hits int(10) NOT NULL default '0', mtime timestamp NOT NULL default '0', ctime int(11) NOT NULL default '0', owner_id int(11) NOT NULL default '0', owner_name varchar(40) NOT NULL default '', pic_rating int(11) NOT NULL default '0', votes int(11) NOT NULL default '0', title varchar(255) NOT NULL default '', caption text NOT NULL, keywords varchar(255) NOT NULL default '', approved enum('YES','NO') NOT NULL default 'NO', user1 varchar(255) NOT NULL default '', user2 varchar(255) NOT NULL default '', user3 varchar(255) NOT NULL default '', user4 varchar(255) NOT NULL default '', url_prefix[...] MySQL said: #1067 - Invalid default value for 'mtime' Quote Link to comment https://forums.phpfreaks.com/topic/280259-having-problems-loading-mysql-into-myphpadmin-error/ Share on other sites More sharing options...
Barand Posted July 17, 2013 Share Posted July 17, 2013 TIMESTAMP default values can be CURRENT_TIMESTAMP (auto insert current datetime on INSERT) CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP (auto insert current datetime on INSERT and UPDATE) Quote Link to comment https://forums.phpfreaks.com/topic/280259-having-problems-loading-mysql-into-myphpadmin-error/#findComment-1441154 Share on other sites More sharing options...
fastz28 Posted July 18, 2013 Author Share Posted July 18, 2013 thank you barand i got it to work :-) Quote Link to comment https://forums.phpfreaks.com/topic/280259-having-problems-loading-mysql-into-myphpadmin-error/#findComment-1441161 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.