# Sh: mysql: command not found

**URL:** https://forum.shopware.com/t/sh-mysql-command-not-found/96914
**Category:** Programmierung
**Created:** [1. November 2022 um 19:50 UTC](https://forum.shopware.com/t/sh-mysql-command-not-found/96914 "2022-11-01T19:50:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)
#### Post date: [1. November 2022 um 19:50 UTC](https://forum.shopware.com/t/sh-mysql-command-not-found/96914/1 "2022-11-01T19:50:17Z")

</div>

Hallo zusammen,  
bei der Installation von Shopware Developer kriege ich nach dem Eintragen der Datenbank informationen folgenden Fehler:  
`(10/46) Starting

> mysql -u ‚USER‘ -p’PASSWORD’ -h ‚localhost‘ --port=‚8889‘ -e „DROP DATABASE IF EXISTS `dev-shopware`“  
> sh: mysql: command not found

Execution aborted, a subcommand failed!`

(USER und PASSWORD sind Platzhalter, das steht natürlich nicht so da).

Ich habe bereits für mysql einen Alias erstell über die beiden Dateien .zshrc und .bashrc.  
Wenn ich im Terminal `mysql -v` eingebe funktioniert der Befehl.  
Auch wenn ich mich mit `mysql -u 'USER' -p'PASSWORD' -h 'localhost' --port='8889'` einlogge habe ich zugriff auf die mysql Shell.

Ich habe eine lokale Installation auf einem Mac Ventura 13.0.

Hat jemand eine Ahnung was los sein könnte?

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [2. November 2022 um 11:23 UTC](https://forum.shopware.com/t/sh-mysql-command-not-found/96914/2 "2022-11-02T11:23:04Z")

</div>

Mac verwendet zsh, Shopware sh. Aber das hast du ja auch schon mit .bashrc abgedeckt.

Was wenn du die Standard-Shell temporär auf sh änderst?

---

<div class="post-metadata">

### Author: ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)
#### Post date: [2. November 2022 um 14:18 UTC](https://forum.shopware.com/t/sh-mysql-command-not-found/96914/3 "2022-11-02T14:18:10Z")

</div>

Hallo Max

Vielen dank für die Antwort nun sehe ich woher der Fehler kommt.

Wie kann ich nun mysql für sh verfügbar machen?
