Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated grant command to include create user command, as some version… #3768

Open
wants to merge 1 commit into
base: 0.8.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/installation/ubuntu1804/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ $ mysql -u root -p -e 'create database openboxes default charset utf8;'

## Grant permissions to new database user
```
$ mysql -u root -p -e 'grant all on openboxes.* to openboxes@localhost identified by "<password>";'
$ mysql -u root -p -e 'CREATE USER openboxes@localhost identified by "<password>";'
Copy link
Member

@mdpearson mdpearson Jun 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to use CREATE USER IF NOT EXISTS here, but see also the code I use in the openboxes-devops repo when setting up a new host. N.B., we need to grant process privileges for the "Database Status" tab to work in /openboxes/admin/showSettings

https://github.com/openboxes/openboxes-devops/blob/68d1df6368a6962863f4e59e3d861ef3a8110c2e/ansible/playbooks/users.yml#L102

$ mysql -u root -p -e 'grant all on openboxes.* to openboxes@localhost;'
```
!!! note
For security reasons, you will want to set a good password. These values should be used in the
Expand Down