-
Notifications
You must be signed in to change notification settings - Fork 359
How to get access to mysql database
Tim Downey edited this page Dec 11, 2018
·
9 revisions
-
bosh ssh
onto thedatabase
instance sudo su -
-
bosh manifest
and locate theccdb
password. If the environment is using CredHub (such as one of our bosh-lites) you can either:- look up this password in CredHub: https://github.com/cloudfoundry/capi-workspace/blob/master/scripts/mysql_bosh_lite [1] (this script has an example)
- Depending on the database find it in
/var/vcap/jobs/mysql/config/mariadb_ctl_config.yml
/var/vcap/jobs/pxc-mysql/config/galera-init-config.yml
-
/var/vcap/packages/mariadb/bin/mysql -ucloud_controller -p"PASSWORD" -P 3306 -h sql-db.service.cf.internal cloud_controller
/var/vcap/packages/pxc/bin/mysql -ucloud_controller -p"" -P 3306 -h sql-db.service.cf.internal cloud_controller
Bonus instructions for Postgres:
/var/vcap/packages/postgres-9.6.10/bin/psql -p 5524 -U cloud_controller
-
Pipelines
-
Contributing
- Tips and Tricks
- Cloud Controller API v3 Style Guide
- Playbooks
- Development configuration
- Testing
-
Architectural Details
-
CC Resources
- Apps
- Audit Events
- Deployments
- Labels
- Services
- Sidecars
-
Dependencies
-
Troubleshooting
- Ruby Console Script to Find Fields that Cannot Be Decrypted
- Logging database queries in unit tests
- Inspecting blobstore cc resources and cc packages(webdav)
- How to Use USR1 Trap for Diagnostics
- How to Perf: Finding and Fixing Bottlenecks
- How to get access to mysql database
- How To Get a Ruby Heap Dumps & GC Stats from CC
- How to curl v4 internal endpoints with mtls
- How to access Bosh Director console and restore an outdated Cloud Config
- Analyzing Cloud Controller's NGINX logs using the toplogs script
-
k8s
-
Archive