I am trying to upgrade from 4.2.2 to 5.0.1 and when I ran the sql_upgrade.php. I received this error message.
ALTER TABLE log ADD category varchar(255) default NULL
ERROR: query failed: ALTER TABLE log ADD category varchar(255) default NULL
Error: The table ‘log’ is full
C:\emr_wamp\www\openemr-5\library\sql_upgrade_fx.php at 675:sqlStatement
C:\emr_wamp\www\openemr-5\sql_upgrade.php at 56:upgradeFromSqlFile(4_2_2-to-5_0_0_upgrade.sql)
QUESTION:
Should I backup the table that has over 35 million records in it, then truncate the table?
There is a mechanism to backup and clear the log tables (note there is more than 1 log table, so good to use that process) at Administration->Backup->Create Eventlog Backup
The folder was created but it seems the system assumes that XAMPP will be used. I have not dug in to see where this veriable is being filled. I personally don’t use xampp.
I was getting the full message because the folder mounted drive that I am storing the database in was full. I under estimated how fast the database was going to grow and some other things and so once I cleared the databases not need and the log tables. The upgrade when through.