Page MenuHomePhabricator

Confusing MySQL permission problem not detected
Closed, DeclinedPublic

Description

Author: bugswikimedia

Description:
Hi!

On my server the connection to MySQL is being done using the user that owns the PHP files. This resulted in wrong permissions for database access, even with correct (MySQL) root information.

With this configuration the installation fails with the message

Error selecting database terminationdb: 1044 Access denied for user ''@'localhost' to database 'DBNAME'

Notice the empty username.

Proposed solution: Detect this case and suggest changing the files' owner to "root".

Bye,
Carsten


Version: 1.12.x
Severity: minor

Details

Reference
bz13524

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:06 PM
bzimport set Reference to bz13524.
bzimport added a subscriber: Unknown Object (MLST).

We should only be connecting to MySQL as the user you provide. Cannot replicate in new installer, closing WFM.