MSQL

From CLONWiki
Revision as of 11:27, 11 June 2008 by 129.57.121.200 (talk)
Jump to navigation Jump to search

mSQL database is used by CODA to store configurations. There is a plan to move to mySQL. To dump mSQL following command was used (in release 2.1 only !!!):

msqldump clasrun > clasrun.sql
msqldump clasdev > clasdev.sql
mysql -h clondb1 -u clasrun daq_clasrun < clasrun.sql
mysql -h clondb1 -u clasrun daq_clasdev < clasdev.sql

NOTE: database 'daq_clasrun' must be created and have appropriate privileges.

Observed problem: 'BONUS' and 'bonus' recognized by mySQL as identical key; To fix it 'msqldump' was modified to use VARCHAR() BINARY instead of CHAR() for primary keys. Some other changes were applied as well (see code).