2014-08-27, 07:48 PM
Hi all,
I was doing a test upgrade of MyBB 1.6 to 1.8 using the latest GIT (from 1 hour ago). The MyBB 1.6 install was brand new, stock (no mods or themes), and created for the purpose of testing. Upon uploading MyBB 1.8 and running the upgrade script I got the following :
Upon further investigation, it appears that the IP address in the session table is now being stored as a varbinary type rather than as a string. Unfortunately, because the upgrade script creates a session before updating the database, it errors out. Upon manually updating the table and changing the field ip to a type of varbinary, I was able to upgrade with no other problems.
My server information :
I was doing a test upgrade of MyBB 1.6 to 1.8 using the latest GIT (from 1 hour ago). The MyBB 1.6 install was brand new, stock (no mods or themes), and created for the purpose of testing. Upon uploading MyBB 1.8 and running the upgrade script I got the following :
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1366 - Incorrect string value: '\x8E\xC9\x06' for column 'ip' at row 1
Query:
REPLACE INTO mybb_sessions SET `uid`='1',`sid`='7eeb9392436b87e2e150b44bfdd14757',`time`='1409167747',`ip`=X'188ec906',`location`='/install/upgrade.php?',`useragent`='Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:24.7) Gecko/20140802 Firefox/24.7 PaleMoon/24.7.1',`location1`='0',`location2`='0',`nopermission`='0'
Upon further investigation, it appears that the IP address in the session table is now being stored as a varbinary type rather than as a string. Unfortunately, because the upgrade script creates a session before updating the database, it errors out. Upon manually updating the table and changing the field ip to a type of varbinary, I was able to upgrade with no other problems.
My server information :
MyBB Version 1.8.0
PHP Version 5.5.15
SQL Engine MySQLi 5.6.20