Skip to content

Commit

Permalink
Merge pull request #29275 from code-dot-org/add-db_admin-client
Browse files Browse the repository at this point in the history
Add scripts that connect to MySQL as the admin database user [skip ci]
  • Loading branch information
sureshc committed Jun 25, 2019
2 parents 1e931eb + a9256e8 commit 2d4055f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/admin-reporting-sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env ruby
require_relative '../deployment'
require_relative '../lib/cdo/mysql_console_helper'

raise 'please define CDO.reporting_db_admin' unless CDO.reporting_db_admin

MysqlConsoleHelper.run(CDO.reporting_db_admin, ARGV.join(' ').strip)
7 changes: 7 additions & 0 deletions bin/admin-sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env ruby
require_relative '../deployment'
require_relative '../lib/cdo/mysql_console_helper'

raise 'please define CDO.db_admin' unless CDO.db_admin

MysqlConsoleHelper.run(CDO.db_admin, ARGV.join(' ').strip)
1 change: 1 addition & 0 deletions config.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ devinternal_db_writer:

db_cluster_id:
db_admin:
reporting_db_admin:

db_writer: 'mysql://root@localhost/'
reporting_db_writer: 'mysql://root@localhost/'
Expand Down

0 comments on commit 2d4055f

Please sign in to comment.