Strain DatabaseTable DescriptionBarrick lab strains are stored in a MySQL database, accessible after login or by this direct link![]() ![]()
Important Points
Backing up the databasePeriodically and before doing any complex SQL operations, backup the database. In phpMyAdmin, select the "strain" table from the "lab" database. Then click on "Operations". In the "Copy table to" box select the "backup" database and name the new table "strain_YYYY_MM_DD", e.g. "strain_2011-05-31". Be sure the "structure and data" button is selected. Hit "go".Batch EditingYou can use MySQL commands by clicking on the SQL tab in phpMyAdmin. Set up a SELECT statement that retrieves the items you want to change.SELECT * FROM `strain_5-31-11` WHERE `strain` LIKE 'JEB' AND `number` >=622 AND `number` <=702 AND `freezer` = 'Barrick 1' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | If you need to change multiple items at once use the following UPDATE statement. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If you need to change multiple items at once, use something like following UPDATE statement. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UPDATE `strain` SET `rack` = 'Barrick 1', `box` = 'Barrick 3' WHERE `strain` LIKE 'JEB' AND `number` >=622 AND `number` <=702 AND `freezer` = 'Barrick 1' |