from a linux command prompt... You would need to invoke the MySQL command prompt, select the database, and then change the setting.
mysql -u username -p
Connect <databasename>;
UPDATE ost_config SET value='0' WHERE namespace='core' AND key='isonline';
To change it back later... change the 0 to 1.