Refine ddev config
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
## #ddev-generated
|
||||
## Description: Run MySQLWorkbench against current db
|
||||
## Usage: mysqlworkbench
|
||||
## Example: "ddev mysqlworkbench"
|
||||
|
||||
# Note that this examle uses $DDEV_HOST_DB_PORT to get the port for the connection
|
||||
# Mysql Workbench can be obtained from https://dev.mysql.com/downloads/workbench/
|
||||
|
||||
query="root:[email protected]:${DDEV_HOST_DB_PORT}"
|
||||
|
||||
case $OSTYPE in
|
||||
linux-gnu)
|
||||
# You may need "apt-get install libproj-dev gnome-keyring" if it complains about those
|
||||
mysql-workbench --query "$query" &
|
||||
echo "Attempted to launch mysql-workbench"
|
||||
;;
|
||||
|
||||
"darwin"*)
|
||||
"/Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench" --query "$query" &
|
||||
echo "Attempted to launch MySQLWorkbench.app"
|
||||
;;
|
||||
|
||||
"win*"* | "msys"*)
|
||||
# 'C:\Program Files\MySQL\MySQL Workbench 8.0 CE\mysqlworkbench.exe'
|
||||
# You may need to add it to your system %PATH% or change the path here
|
||||
# On docker toolbox you'll need to change the query to use the toolbox IP address,
|
||||
# likely 192.168.99.100
|
||||
'C:\Program Files\MySQL\MySQL Workbench 8.0 CE\mysqlworkbench.exe' --query "$query"
|
||||
#;;
|
||||
esac
|
||||
Reference in New Issue
Block a user