Skip to content

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
@blizzz blizzz force-pushed the fix-install-mysql-mb4 branch from 54b4498 to 18a8f36 Compare June 1, 2017 11:44
@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.

5 participants