You are here: PHP Products > ChartBuilder > Upgrading ChartBuilder

ChartBuilder for PHP/MySQL

Upgrading ChartBuilder to a newer version

Step 1: Download and extract the newest version

Step 2: Replace files in your ChartBuilder Directory

Replace all the files in your ChartBuilder directory with the files in the latest ChartBuilder download, except databases.php and charts.xml.  Leave these two files "as-is" to ensure you don't lose any of your work.

Step 3: Define a MySQL configuration database.

If you are upgrading from ChartBuilder 3.8 or earlier, open databases.php and add the following line:

define("ConfigDB", "ChartBuilderAdmin");

Change "ChartBuilderAdmin" to the display name of one of your database connections where you want to include the six ChartBuilder configuration tables.

Step 4: Migrate Chart Definitions

If you are upgrading from ChartBuilder 3.8 or earlier, open yoursite/ogs/migrate.php to create the MySQL configuration tables and migrate your chart definitions from the xml file to the MySQL tables.