Skip to content

Commit fc4c689

Browse files
committed
Connecting to database shortcut
1 parent dfce42d commit fc4c689

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dev.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ function wp-cli {
118118
_docker_compose exec -w /var/www/html portal wp "$@"
119119
}
120120

121+
function db {
122+
echo "Connecting to MySQL 'climatedata' database, with same user, password. This should only work in development mode"
123+
echo ""
124+
echo " Reminder: to exit, use CTRL+D key combination"
125+
echo ""
126+
_docker_compose exec -it db mysql -u climatedata -p'climatedata' climatedata
127+
}
128+
121129
function db-shell {
122130
_docker_compose exec -it db bash
123131
}

0 commit comments

Comments
 (0)