https://github.com/mesmacosta/cloudsql-mysql-tooling
Scripts with the goal to enable easy usage of some MySQL operations.
https://github.com/mesmacosta/cloudsql-mysql-tooling
automation database devops-tools gcloud mysql terraform
Last synced: 3 months ago
JSON representation
Scripts with the goal to enable easy usage of some MySQL operations.
- Host: GitHub
- URL: https://github.com/mesmacosta/cloudsql-mysql-tooling
- Owner: mesmacosta
- License: mit
- Created: 2020-04-29T19:51:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T22:36:17.000Z (about 6 years ago)
- Last Synced: 2025-10-14T07:05:08.785Z (9 months ago)
- Topics: automation, database, devops-tools, gcloud, mysql, terraform
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudsql-mysql-tooling
Scripts with the goal to enable easy usage of some MySQL operations.
## INIT database
```bash
./init-db.sh
```
## Creating Schemas and Tables in MySQL
```bash
./connect-db.sh
```
Provide your password when prompted, then execute:
```bash
CREATE SCHEMA MY_SCHEMA;
CREATE TABLE MY_SCHEMA.MY_TABLE (name INT, address TEXT);
exit
```
## Clean up MySQL Schemas and Tables
```bash
./cleanup-db.sh
```
## Delete the MySQL database
```bash
./delete-db.sh
```