Examples
Import MySQL
Import your MySQL database schema into ChartDB
Download Import Script
Download our MySQL import script:
Usage
Run the script with your database credentials and ChartDB information:
Required Parameters
-h
Database hostname-P
Database port (default: 3306)-u
Database username-p
Database password-d
Database name-a
ChartDB API key-t
Target diagram ID
The script will connect to your database, extract the schema, and automatically import it into your ChartDB diagram.
Automated Daily Updates
To automatically update your diagram daily using cron, add the following line to your crontab:
To edit your crontab:
Note: Replace /path/to/mysql-import.sh
with the absolute path to the
script and adjust the credentials accordingly. The log file path
(/path/to/mysql-import.log
) should be in a directory where your user has
write permissions.
Was this page helpful?