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

Conversation

trs998
Copy link

@trs998 trs998 commented Jan 10, 2023

…s of MySQL grant cannot create users.

Mysql command grant could be used to create users, but this use was deprecated and now doesn't work on current versions of MySQL - updated command twill work in them all.

…s of MySQL grant cannot create users.

Mysql command grant could be used to create users, but this use was deprecated and now doesn't work on current versions of MySQL - updated command twill work in them all.
Copy link
Member

@jmiranda jmiranda left a comment

Choose a reason for hiding this comment

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

These are commands that work in MySQL 8. Need to confirm that these same commands work for MySQL 5.7.

@@ -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

@awalkowiak
Copy link
Collaborator

@jmiranda I think this one can be closed, because these docs will be updated for the grails 3 fairly soon.

@awalkowiak awalkowiak changed the base branch from master to 0.8.x February 26, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants