UNiTE, Remote CLI, eXtract Wizard

#37338 Unable to connect to database

Posted in ‘UNiTE and Remote CLI’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
Tool version

Latest post by youknow on Wednesday, 22 June 2022 02:12 CDT



we've got the same error with site restore as mentioned here:

20220621|21:08:58|Unable to connect to the Database: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value

How will look like the workaround or a solution for this problem?

Kind Regards,

Akeeba Staff

There currently is a bug in MySQLi driver that is causing the issue. A new version will be released shortly, but you'll have to take a new backup for changes to take effect (the restoration script is embedded at backup time). In the meantime, can you please try to switch to PDO driver during database restoration? That should work around the issue.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



I've switched to PHP-CLI 7.4. Now it's working.


Kind Regards,

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!