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

fix install on mb4 enabled mariadb/mysql #5209

Merged
merged 1 commit into from
Jun 2, 2017
Merged

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Jun 1, 2017

Issue

Try to install against MariaDB/MySQL with mb4 support enabled (as described in https://docs.nextcloud.com/server/11/admin_manual/maintenance/mysql_4byte_support.html) by providing admin credentials to the DB. The target database does not exist at this moment.

NC 12 is affected.

Introduced by #4514 (downstream…)

Expected

Install succeeds

Reality

Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1049] Unknown database 'stable12'

Fix

provide "null" as db name connection parameter as done with non-mb4-supported setup.

@blizzz
Copy link
Member Author

blizzz commented Jun 1, 2017

Btw, upstream looks differently, they also moved the connect() method out of the abstract class and changed it e.g. not to accept dbname parameter at all. Perhaps some other commits missing there…?

@blizzz
Copy link
Member Author

blizzz commented Jun 1, 2017

@karlitschek needs backport to 12, ok?

@karlitschek
Copy link
Member

yep. please backport

@blizzz
Copy link
Member Author

blizzz commented Jun 1, 2017

backport goes here #5217

@nickvergessen nickvergessen added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 1, 2017
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz
Copy link
Member Author

blizzz commented Jun 1, 2017

rebased to revive CI, it got stuck.

@blizzz blizzz merged commit 45305c7 into master Jun 2, 2017
@blizzz blizzz deleted the fix-install-mysql-mb4 branch June 2, 2017 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: install and update regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants