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

MySQL not working probably #184

Closed
lnielsen opened this issue Sep 25, 2019 · 0 comments
Closed

MySQL not working probably #184

lnielsen opened this issue Sep 25, 2019 · 0 comments

Comments

@lnielsen
Copy link
Member

Reported via Gitter:

Greetings. We tried to install Invenio v3.1.1 with setup instruction, but we selected MySQL database, because our company is used to work with MySQL database. After the research we want to report some issues with MySQL Invenio install.
First: When we process /scripts/setup, it will fails because of permissions of MySQL docker database. Looks like the Docker installer not creating or adding permissions to Invenio user (default: my-site). Following code is solution, how to get success with setup database:

 # Execute MySQL docker box
docker exec -it my-site_db_1 bash
 # Create user my-site with password my-site
CREATE USER 'my-site'@'%' IDENTIFIED BY 'my-site';
 # Create database my-site
CREATE DATABASE my-site;
 # Let my-site user get permission
GRANT ALL PRIVILEGES ON *.* TO 'my-site'@'%' WITH GRANT OPTION;

Now the setup will be success.
Second: When we create record via JSON CURL, it will write to MySQL table records_metadata with strange UTF8 strings (nonASCII strings). So if we want to view the record in site, it will throw Unicode error. Also I noticed, that the record in administration has correct UID. Just in MySQL database is strange like in picture:

@lnielsen lnielsen added this to Backlog in Sprint Week 46-47 (2019) - V3.2 Release via automation Nov 11, 2019
@roksys roksys moved this from Todo to In progress in Sprint Week 46-47 (2019) - V3.2 Release Nov 11, 2019
@roksys roksys self-assigned this Nov 11, 2019
roksys pushed a commit to roksys/cookiecutter-invenio-instance that referenced this issue Nov 11, 2019
roksys pushed a commit to roksys/invenio-records that referenced this issue Nov 12, 2019
@roksys roksys moved this from In progress to Done in Sprint Week 46-47 (2019) - V3.2 Release Nov 12, 2019
kpsherva pushed a commit that referenced this issue Nov 12, 2019
roksys pushed a commit to roksys/cookiecutter-invenio-instance that referenced this issue Nov 13, 2019
roksys pushed a commit to roksys/cookiecutter-invenio-instance that referenced this issue Nov 13, 2019
roksys pushed a commit to roksys/cookiecutter-invenio-instance that referenced this issue Nov 13, 2019
roksys pushed a commit to roksys/cookiecutter-invenio-instance that referenced this issue Nov 13, 2019
kpsherva pushed a commit to roksys/cookiecutter-invenio-instance that referenced this issue Nov 14, 2019
kpsherva pushed a commit that referenced this issue Nov 14, 2019
lnielsen pushed a commit that referenced this issue Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants