I upgrade a FreePBX distro 14 with Asterisk 13 to FreepPBX15.
Also I need to shrink size files of DB (asteriskcdrdb: cdr and cel) after deleting old call history.
[root@asterisk3]$ ll -h /var/lib/mysql/
total 1.7G
drwx------. 2 mysql mysql 16K Jun 27 16:33 asterisk
drwx------. 2 mysql mysql 50 Jun 28 10:12 asteriskcdrdb
-rw-rw----. 1 mysql mysql 1.7G Jun 30 11:22 ibdata1
-rw-rw----. 1 mysql mysql 5.0M Jun 30 11:22 ib_logfile0
-rw-rw----. 1 mysql mysql 5.0M Jun 30 11:23 ib_logfile1
But mariadb 5.5.65 cannot execute the OPTIMIZE TABLE INNODB function, because it does not have such a function. This feature is available in the next major version - 10.1.
But I can’t install it - due to limitations of the FREEPBX distribution.
Recommendations for updating mariadb
- Modify the repository configuration
- Set
innodb_fast_shutdown
to0
- Stop MariaDB
- Uninstall the old version of MariaDB
- Install the new version of MariaDB
- Start MariaDB
- Run
mysql_upgrade
But when i try to uninstall mariadb
[root@asterisk3]$ yum remove mariadb-server
Loaded plugins: fastestmirror, versionlock
Resolving Dependencies
--> Running transaction check
---> Package mariadb-server.x86_64 1:5.5.65-1.el7 will be erased
--> Processing Dependency: mariadb-server for package: freepbx-14.1-1.sng7.noarch
--> Running transaction check
---> Package freepbx.noarch 0:14.1-1.sng7 will be erased
--> Processing Dependency: freepbx for package: sangoma-pbx-2203-2.sng7.noarch
--> Running transaction check
---> Package sangoma-pbx.noarch 0:2203-2.sng7 will be erased
--> Finished Dependency Resolution
Error: Trying to remove "sangoma-pbx", which is protected
Tell me, please, what are the ways to solve my problem?
1 post - 1 participant