From 347ef944c5d0774166989d2ef9ec49cc6671484c Mon Sep 17 00:00:00 2001 From: Joe Ferguson Date: Sun, 6 Nov 2022 13:39:52 -0600 Subject: [PATCH] fix mysql create script (#1813) * fix mysql create script * Tag v13.3.2 --- bin/homestead | 2 +- scripts/create-mysql.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/homestead b/bin/homestead index eda8d2568..47eaa7fa8 100755 --- a/bin/homestead +++ b/bin/homestead @@ -8,7 +8,7 @@ if(is_file( __DIR__.'/../vendor/autoload.php')) { require __DIR__.'/../../../autoload.php'; } -$app = new Symfony\Component\Console\Application('Laravel Homestead', '13.3.1'); +$app = new Symfony\Component\Console\Application('Laravel Homestead', '13.3.2'); $app->add(new Laravel\Homestead\MakeCommand); $app->add(new Laravel\Homestead\WslApplyFeatures); diff --git a/scripts/create-mysql.sh b/scripts/create-mysql.sh index 0f51abbd5..481d2f532 100755 --- a/scripts/create-mysql.sh +++ b/scripts/create-mysql.sh @@ -7,7 +7,15 @@ password = secret host = 127.0.0.1 EOF -cp /root/.my.cnf /home/vagrant/.my.cnf +cat > /home/vagrant/.my.cnf << EOF +[client] +user = homestead +password = secret +host = 127.0.0.1 +EOF + +chown vagrant /home/vagrant/.my.cnf + DB=$1;