[Koha-bugs] [Bug 14533] koha-create --use-db option shouldn't create any db or db user

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 7 16:43:43 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14533

--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Comment on attachment 41424
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41424
Patch - remove CREATE USER when koha-create --use-db

-    if [ "$op" = use ]
-    then
-        mysql --defaults-extra-file=/etc/mysql/koha-common.cnf --force <<eof
-CREATE USER \`$mysqluser\`@'$mysql_hostname' IDENTIFIED BY '$mysqlpwd';
-CREATE USER \`$mysqluser\`@'%' IDENTIFIED BY '$mysqlpwd';
-GRANT ALL PRIVILEGES ON \`$mysqldb\`.* TO \`$mysqluser\`;
-FLUSH PRIVILEGES;
-eof
-    fi #`
-

This is not enough, as the DB is still being created. Look at my previous
comment

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list