mirror of
https://github.com/photoprism/photoprism-docs.git
synced 2026-04-25 02:35:50 +03:00
[GH-ISSUE #75] Documentation : MariaDB user creation and privileges grant #21
Labels
No labels
bug
docs 📚
done
enhancement
enhancement
help wanted
idea
low-priority
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism-docs#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @teimahu on GitHub (Apr 29, 2021).
Original GitHub issue: https://github.com/photoprism/photoprism-docs/issues/75
Originally assigned to: @lastzero on GitHub.
Hi,
I think there is a mistake with the SQL command for granting rights to the newly created user in file : docs/getting-started/advanced/databases.md
On my setup (MariaDB 10.4.18), I had to change the grant line from:
GRANT ALL PRIVILEGES ON photoprism.* to 'photoprism'@'%';
To:
GRANT ALL PRIVILEGES ON photoprism.* to 'photoprism'@'%' IDENTIFIED BY 'insecure';
And I would end with a:
FLUSH PRIVILEGES;
So that new grant is taken into account.
Thanks,
Mathieu
@lastzero commented on GitHub (Apr 30, 2021):
Updated our docs. Does this work for you?
Setting the password again with
GRANT ALLshould not be needed IMO.@teimahu commented on GitHub (Apr 30, 2021):
Yes you are right, I found tutorials with and without it yesterday.
But the MariaDB documentation clearly states that setting the password in GRANT ALL is optionnal,
I just tested again today creating a new user on my setup and of course, the "identified by" statement is not mandatory, I surely made a mistake yesterday.
Sorry I should have double checked before creating an issue.