6.0.0-beta1
7/31/25

[#5861] Setup.php does not create mysql user and DB permissions
Summary Setup.php does not create mysql user and DB permissions
Queue Horde Groupware Webmail Edition
Queue Version 1.0.3
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester lfbm.andamentos (at) gmail (dot) com
Created 11/04/2007 (6479 days ago)
Due
Updated 11/05/2007 (6478 days ago)
Assigned
Resolved 11/05/2007 (6478 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/05/2007 10:56:15 AM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
No, you have to create that user yourself.
11/04/2007 05:51:54 PM lfbm (dot) andamentos (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Setup.php does not create mysql user and DB permissions
Queue ⇒ Horde Groupware Webmail Edition
Reply to this comment
$Horde: groupware/scripts/setup.php,v 1.12 2007/06/27 16:25:29 jan Exp $



The script does not create the horde user in MySQL and does not define 
horde DB permissions.



I think this is the missing part:



"USE mysql;



REPLACE INTO user (host, user, password)

     VALUES (

         'localhost',

         'horde',

-- IMPORTANT: Change this password!

         PASSWORD('horde')

);



REPLACE INTO db (host, db, user, select_priv, insert_priv, update_priv,

                  delete_priv, create_priv, drop_priv, index_priv)

     VALUES (

         'localhost',

         'horde',

         'horde',

         'Y', 'Y', 'Y', 'Y',

         'Y', 'Y', 'Y'

);



-- Make sure that priviliges are reloaded.

FLUSH PRIVILEGES;"

Saved Queries