Ticket #2316 (closed defect: fixed)
option --db not recognized, when trying to upgrade MySQL database
| Reported by: | edsouza | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | undecided |
| Version: | 0.8.6p1 | Keywords: | MySQL, database |
| Cc: |
Description
If the
cdb_url? = "sqlite:///state.sqlite"
entry in master.cfg is changed to use a local MySQL database like so:
cdb_url? = "mysql://root:@localhost/buildbot?max_idle=300"[[BR]]
The twistd.log prints the following instructions:
If you are
2012-06-12 09:28:47-0400 [-] using MySQL, you must specify the connector string on the upgrade-master
2012-06-12 09:28:47-0400 [-] command line:
2012-06-12 09:28:47-0400 [-]
2012-06-12 09:28:47-0400 [-] buildbot upgrade-master --db=<db-url> path/to/master
However, the --db option does not appear to be supported:
bash-4.1$ buildbot upgrade-master --db=mysql://root:@localhost/buildbot?max_idle=300 .
/usr/local/bin/buildbot: option --db not recognized
Change History
comment:2 Changed 11 months ago by dustin
That error message has already been fixed, but it's still wrong in the manual.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
just use buildbot upgrade-master before that update your master.cfg no need to use --db since --db only applies at buildbot create-master
c['db'] = { 'db_url' : "mysql://sql_user:sql_password@sql_host/sql_db", }