From 0e61d10f00bc0617c70faaae5af135a99dc88e27 Mon Sep 17 00:00:00 2001 From: Mischa Braam Date: Wed, 23 Oct 2024 09:35:38 +0200 Subject: [PATCH] Fix restart of mysql (#640) --- cli/ValetPlus/Mysql.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/ValetPlus/Mysql.php b/cli/ValetPlus/Mysql.php index f8648046..acad795f 100644 --- a/cli/ValetPlus/Mysql.php +++ b/cli/ValetPlus/Mysql.php @@ -185,7 +185,8 @@ public function restart() { $version = $this->installedVersion() ?: self::MYSQL_DEFAULT_VERSION; info("Restarting {$version}..."); - $this->cli->quietlyAsUser('brew services restart ' . $version); + $this->cli->quietly('brew services stop ' . $version); + $this->cli->quietlyAsUser('brew services start ' . $version); } /**