Skip to content

Commit cd3f5ed

Browse files
committed
Correct password setting for MySQL user
1 parent 61e6529 commit cd3f5ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Repositories/DatabaseRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function modifyPassword($database, $password)
138138

139139
$capsule->setAsGlobal();
140140
Capsule::statement(sprintf(
141-
'ALTER USER \'%s\'@\'%s\' IDENTIFIED BY \'%s\'',
141+
'SET PASSWORD FOR \'%s\'@\'%s\' = PASSWORD(\'%s\')',
142142
$db->username,
143143
$db->remote,
144144
$password

0 commit comments

Comments
 (0)