From cd3f5ed6fed0de831ae45749cc2fd05b2738d688 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 4 Nov 2016 20:47:40 -0400 Subject: [PATCH] Correct password setting for MySQL user --- app/Repositories/DatabaseRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/DatabaseRepository.php b/app/Repositories/DatabaseRepository.php index 777b6f2b6..c1c9b4e37 100644 --- a/app/Repositories/DatabaseRepository.php +++ b/app/Repositories/DatabaseRepository.php @@ -138,7 +138,7 @@ class DatabaseRepository { $capsule->setAsGlobal(); Capsule::statement(sprintf( - 'ALTER USER \'%s\'@\'%s\' IDENTIFIED BY \'%s\'', + 'SET PASSWORD FOR \'%s\'@\'%s\' = PASSWORD(\'%s\')', $db->username, $db->remote, $password