diff --git a/cli/Valet/Mysql.php b/cli/Valet/Mysql.php index 4634e187..a19dbe1a 100644 --- a/cli/Valet/Mysql.php +++ b/cli/Valet/Mysql.php @@ -72,6 +72,13 @@ public function install($type = 'mysql@5.7') $this->stop(); $this->installConfiguration($type); $this->restart(); + + // If formula is versioned link the formula as the binary. + if (strpos($type, '@')) { + $this->cli->runAsUser("brew link $type --force", function () { + warning('Failed linking MySQL!'); + }); + } } /**