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

Startupscript utf mysql fails #53

Open
WaaromZoMoeilijk opened this issue May 21, 2017 · 2 comments
Open

Startupscript utf mysql fails #53

WaaromZoMoeilijk opened this issue May 21, 2017 · 2 comments
Assignees
Labels

Comments

@WaaromZoMoeilijk
Copy link
Collaborator

@enoch85 Any idea?

Enabling UTF8mb4 support on nextcloud_db....
Please be patient, it may take a while.
[/] .....] Restarting mysql (via systemctl): mysql.service
System config value mysql.utf8mb4 set to boolean true
 - Repair MySQL collation
     - Change row format for oc_accounts ...
     - Change collation for oc_accounts ...
     - Change row format for oc_activity ...
     - Change collation for oc_activity ...
     - Change row format for oc_activity_mq ...
     - Change collation for oc_activity_mq ...
     - Change row format for oc_addressbookchanges ...
     - Change collation for oc_addressbookchanges ...
     - Change row format for oc_addressbooks ...
     - Change collation for oc_addressbooks ...

                                                                                                                                
  [Doctrine\DBAL\Exception\DriverException]                                                                                     
  An exception occurred while executing 'ALTER TABLE `oc_addressbooks` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;':  
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes               
                                                                                                                                

                                                                                                                   
  [Doctrine\DBAL\Driver\PDOException]                                                                              
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes  
                                                                                                                   

                                                                                                                   
  [PDOException]                                                                                                   
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes  
                                                                                                                   

maintenance:repair [--include-expensive]

Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!
sudo -u www-data /var/www/nextcloud/occ maintenance:repair failed

@enoch85
Copy link
Member

enoch85 commented May 21, 2017

Which MySQL version? Maybe it differs between 5.7 and 5.X?

Also check the Nextcloud documentation: https://docs.nextcloud.com/server/11/admin_manual/maintenance/mysql_4byte_support.html

@WaaromZoMoeilijk
Copy link
Collaborator Author

WaaromZoMoeilijk commented May 21, 2017

After: sudo -u www-data /var/www/nextcloud/occ config:system:set mysql.utf8mb4 --type boolean --value="false"

and maintenance:repair it functions again. Will figure out how to implement utf8mb4 support. Thanks.

Mysql server 5.5

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

2 participants