Skip to content

Commit

Permalink
Add scripts that connect to MySQL as the admin database user.
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshc committed Jun 21, 2019
1 parent 53013e5 commit a9256e8
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 a9256e8

Please sign in to comment.