Thanks, so i can try to run this sql code on my database through phpmyadmin?
it seems that this code is incorrect?
sorry for my stupid question, i'm not a professional.
3 errors were found during analysis.
Unexpected beginning of statement. (near "ALTERTABLE" at position 0)
Unexpected beginning of statement. (near "`usu_cache`" at position 11)
Unrecognized statement type. (near "MODIFY" at position 23)
SQL query:
ALTERTABLE `usu_cache` MODIFY COLUMN `cache_date` DATETIME NOT NULL default '0001-01-01 00:00:00'
[ QUOTE=mc12345678;1321352]It would seem that somewhere between the code/line numbers identified by PHP 5 and PHP 8 that the default value for `cache_date` is set to '0000-00-00 00:00:00' instead of the more recent server preferred '0001-01-01 00:00:00'. Not sure if in following the above path of code if that means right now that your database needs an update or if it could be resolved by changing the install assignment as part of a first time run and it would be resolved.
The update for the field would be:
Code:
ALTERTABLE `usu_cache` MODIFY COLUMN `cache_date` DATETIME NOT NULL default '0001-01-01 00:00:00';
Although it does appear that the error is in the generation of the table, so probably looking for the sql that (should be before the location identified by PHP 8 above) provides the CREATE TABLE query. In there change the default date as identified above and "should" work.
Bookmarks