Bug 17513: Create GRANT for user@localhost in koha-create
See the bug description for the details. Test plan: Use this script to create a new koha installation, using MariaDB You should not display "user koha_kohadev doesn't have enough privilege on database koha_kohadev " Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Confirm that this still works (with MySQL). Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
66bb0a2e33
commit
474a369fc0
|
|
@ -661,6 +661,7 @@ CREATE DATABASE \`$mysqldb\`;
|
|||
CREATE USER \`$mysqluser\`@'$mysql_hostname' IDENTIFIED BY '$mysqlpwd';
|
||||
CREATE USER \`$mysqluser\`@'%' IDENTIFIED BY '$mysqlpwd';
|
||||
GRANT ALL PRIVILEGES ON \`$mysqldb\`.* TO \`$mysqluser\`;
|
||||
GRANT ALL PRIVILEGES ON \`$mysqldb\`.* TO \`$mysqluser\`@'$mysql_hostname';
|
||||
FLUSH PRIVILEGES;
|
||||
eof
|
||||
fi #`
|
||||
|
|
@ -671,6 +672,7 @@ eof
|
|||
CREATE USER \`$mysqluser\`@'$mysql_hostname' IDENTIFIED BY '$mysqlpwd';
|
||||
CREATE USER \`$mysqluser\`@'%' IDENTIFIED BY '$mysqlpwd';
|
||||
GRANT ALL PRIVILEGES ON \`$mysqldb\`.* TO \`$mysqluser\`;
|
||||
GRANT ALL PRIVILEGES ON \`$mysqldb\`.* TO \`$mysqluser\`@'$mysql_hostname';
|
||||
FLUSH PRIVILEGES;
|
||||
eof
|
||||
fi #`
|
||||
|
|
|
|||
Loading…
Reference in New Issue