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

db:convert-mysql-charset and MariaDB 10.3 #10163

Closed
timm2k opened this issue Jul 9, 2018 · 3 comments
Closed

db:convert-mysql-charset and MariaDB 10.3 #10163

timm2k opened this issue Jul 9, 2018 · 3 comments
Labels
Milestone

Comments

@timm2k
Copy link
Contributor

timm2k commented Jul 9, 2018

Dear devs,

I've tried to use occ db:convert-mysql-charset with MariaDB 10.3. MariaDB 10.3 doesn't know global variables like innodb_large_prefix and innodb_file_format because they were removed and deprcated since MariaDB 10.2. These settings are default and hardcoded in MariaDB 10.3.

So db:convert-mysql-charset fails to run with message
"The database is not properly setup to use the charset utf8mb4.
For more information please read the documentation at https://docs.nextcloud.com/server/13/go.php?to=admin-mysql-utf8mb4"

db:convert-mysql-charset needs to check the db server's version. MariaDB 10.3 is ready to use utf8mb4.

Steps to reproduce

  1. install NC without utf8mb4 support. Use MariaDB 10.3
  2. occ db:convert-mysql-charset

Expected behaviour

Database is converted to utf8mb4

Actual behaviour

convert fails

Kind regards
Timm :-)

@MorrisJobke MorrisJobke added the bug label Jul 9, 2018
@MorrisJobke
Copy link
Member

cc @nickvergessen

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #5099 (Failed to convert DB from sqlite to MariaDB), #5912 (Recommend PostgreSQL instead of MariaDB/MySQL), #3179 (PostgreSQL => MySQL db:convert-type with calendar/contacts), #3709 (Upgrade with SSL-enabled MySQL DB fails), and #4914 (occ db:convert-type mysql -> UniqueConstraintViolationException).

@nickvergessen
Copy link
Member

Can you please run the following query:

SELECT VERSION();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants