Hi @stefan-franz
I donât know myphpadmin but it is probably easier doing it all from the command line. You only have to pass one statement to the database. The rest like changing the MariaDB config and the Nextcloud OCC commands you have do via command line anywaysâŠ
Thats how I would do it:
Login to your server using PUTTY and backup your MariaDB configuration file:
sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.backup
Then open the configuration file with nano:
sudo nano /etc/mysql/my.cnf
Look for the section [mysqld]
and make sure it contains the following line:
innodb_file_per_table = 1
If the line is already there but with another value, change the value to 1
, if it is not there or commented out, just add the line. After that save the file by pressing CTRL + O and exit nano by pressing CTRL + X.
Back in the command line, restart the MariaDB service:
sudo systemctl restart mariadb
Then change into your Nextcloud installation directoryâŠ
cd /path/to/Nextcloud
âŠand put Nextcloud into maintanance mode:
sudo -u www-data php occ maintenance:mode --on
Then login to your MariaDB as rootâŠ
mysql -u root -p
âŠand enter the following statement:
ALTER DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
exit the database with:
exit;
Back in the Linux command line, enter the following commands:
sudo -u www-data php occ config:system:set mysql.utf8mb4 --type boolean --value="true"
sudo -u www-data php occ maintenance:repair
Disable maintanance mode:
sudo -u www-data php occ maintenance:mode --off
Done.