Our technical support can complete this for you close to a scheduled time within our operating hours. You can order a 1 hour Professional Service.
Technical Experience Required: Intermidiate
Estimated time: ~30 minutes
F.A.Q
- Do i have to upgrade to MySQL 8.4?
It is not mandatory, but highly recommended for stability and performance improvement. - Will the MediaCP automatically upgrade to MySQL 8.4?
No. The upgrade process can take some time to complete depending on how many channels and reporting data exists, it is best managed manually. - What is the benefit of upgrading?
MySQL 8.4 provides performance and stability improvements. - What version of MySQL am i using now?
You can run the following command to check your MySQL version:/usr/local/mediacp/mysql/bin/mysql --version
Notice
- You should ensure that you have at least 2 GB free on the / path before beginning (df -h)
- This guide includes instructions to easily revert the changes should there be any problem
- Installations with many busy stations are likely to have a large historics table and the upgrade process may take a longer time (1-2 hours) to complete.
- These steps follow a MySQL In-Place Binary Upgrade
Step 1 - Backup
- Perform a MediaCP backup of installation + database:
/root/init backup --no-contents;
- Stop & Backup the entire MySQL path. This will allow for a simple restoration of mysql with all your data should there be any problem at all.
mediacp stop mysql;
cp -a /usr/local/mediacp/mysql/ /usr/local/mediacp/mysql.backup/;
Step 2 - MySQL 8.0 upgrade to 8.4
- Ensure MySQL is stopped:
mediacp stop mysql;
- Download and extract MySQL 8.4 from our mirror:
wget http://mirror.mediacp.net/download/common/mysql-8.4.9-linux-glibc2.28-x86_64-minimal.tar.xz;
tar xf mysql-8.4.9-linux-glibc2.28-x86_64-minimal.tar.xz; - Install MySQL 8.4 binaries:
cp -ar mysql-8.4.9-linux-glibc2.28-x86_64-minimal/* /usr/local/mediacp/mysql/;
- Start MySQL
mediacp restart mysql
- Monitor the error log:
tail -F /usr/local/mediacp/mysql/data/*.err
- MySQL will perform the upgrade process automatically at this point, which may take some time to complete. Even know MySQL service is started, it may not become available until the process is completed.
DO NOT STOP MYSQL OR RESTART YOUR SERVER UNTIL COMPLETED. - Wait for messages resembling the following - pay careful attention for any errors:
Server upgrade from '80031' to '80300' started
Server upgrade from '80031' to '80300' completed
[Server] /usr/local/mediacp/mysql/bin/mysqld: ready for connections.
- MySQL will perform the upgrade process automatically at this point, which may take some time to complete. Even know MySQL service is started, it may not become available until the process is completed.
- Check the MediaCP is online at your regular web address
Step 4 - Clean up
If there were no errors, then you can safely remove the mysql full backup directory:
rm -rf /usr/local/mediacp/mysql.backup/;
Reverting in case of failure
If you experience any problems, then you can run the following to restore the original MySQL service:
mediacp stop mysql;
rm -rf /usr/local/mediacp/mysql/;
mv /usr/local/mediacp/mysql.backup/ /usr/local/mediacp/mysql/
mediacp restart mysql;