Correct password setting for MySQL user

This commit is contained in:
Dane Everitt 2016-11-04 20:47:40 -04:00
parent 61e65294af
commit cd3f5ed6fe
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -138,7 +138,7 @@ class DatabaseRepository {
$capsule->setAsGlobal(); $capsule->setAsGlobal();
Capsule::statement(sprintf( Capsule::statement(sprintf(
'ALTER USER \'%s\'@\'%s\' IDENTIFIED BY \'%s\'', 'SET PASSWORD FOR \'%s\'@\'%s\' = PASSWORD(\'%s\')',
$db->username, $db->username,
$db->remote, $db->remote,
$password $password