Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new HeidiSQL command for Windows and WSL2 (#2679)
- Loading branch information
1 parent
d86db92
commit 2ff4f0b
Showing
7 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated: If you want to edit and own this file, remove this line. | ||
## Description: Run HeidiSQL against current db | ||
## Usage: heidisql | ||
## Example: "ddev heidisql" | ||
## OSTypes: windows,wsl2 | ||
## HostBinaryExists: "/mnt/c/Program Files/HeidiSQL/heidisql.exe,C:\Program Files\HeidiSQL\Heidisql.exe" | ||
|
||
arguments="--host=127.0.0.1 --port=${DDEV_HOST_DB_PORT} --user=root --password=root --description=${DDEV_SITENAME}" | ||
|
||
case $OSTYPE in | ||
"win*"* | "msys"*) | ||
'/c/Program Files/HeidiSQL/heidisql.exe' "$arguments" & | ||
;; | ||
# linux-gnu in this case is only WSL2 as selected in OSTypes above | ||
"linux-gnu") | ||
# HeidiSQL is Microsoft only, but we want to start it from WSL2 | ||
"/mnt/c/Program Files/HeidiSQL/heidisql.exe" "$arguments" & | ||
;; | ||
esac |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters