it was reported in the cpanel article before the last update:do you have a tutorial to downgrade?
Code:
yum downgrade MariaDB-server MariaDB-common MariaDB-shared MariaDB-client MariaDB-compat MariaDB-devel
it was reported in the cpanel article before the last update:do you have a tutorial to downgrade?
yum downgrade MariaDB-server MariaDB-common MariaDB-shared MariaDB-client MariaDB-compat MariaDB-devel
First disable MySQL service monitoringdo you have a tutorial to downgrade?
$ whmapi1 configureservice service=mysql enabled=1 monitored=0
$ mkdir -p ~/mysqlbkp
$ service mysql restart --skip-networking --skip-grant-tables
$ mysql_upgrade
$ mysqldump --all-databases --routines --triggers > ~/mysqlbkp/dbcopy.sql
$ service mysql stop
$ cp -r /var/lib/mysql/mysql ~/mysqlbkp/
$ service mysql start
$ yum downgrade MariaDB-server MariaDB-common MariaDB-shared MariaDB-client MariaDB-compat MariaDB-devel
$ whmapi1 configureservice service=mysql enabled=1 monitored=1
Confirming this fix solves the problem without needing to downgrade.now MARIADB have last Ver.
Lets try
All issues solved, no error in CPANEL MYSQL DATABASES or CPANEL DB WizardCode:mysql -e "ALTER TABLE mysql.user MODIFY COLUMN password_last_changed timestamp AFTER max_statement_time, MODIFY COLUMN password_lifetime smallint AFTER password_last_changed, MODIFY COLUMN account_locked enum('N','Y') AFTER password_lifetime" /scripts/restartsrv_mysql
This only fixes the MySQL Databases interface issue, not the broken PHP applications that use PHP < 7.2, right?Confirming this fix solves the problem without needing to downgrade.
ERROR 1054 (42S22) at line 1: Unknown column 'password_last_changed' in 'user'All issues solved, no error in CPANEL MYSQL DATABASES or CPANEL DB WizardCode:mysql -e "ALTER TABLE mysql.user MODIFY COLUMN password_last_changed timestamp AFTER max_statement_time, MODIFY COLUMN password_lifetime smallint AFTER password_last_changed, MODIFY COLUMN account_locked enum('N','Y') AFTER password_lifetime" /scripts/restartsrv_mysql
i couldn't agree more, first the price hikes and now they prove why they are worth the extra price tag .... pft. Took me an hour of debugging to finally find this thread here to deal with the issue, which took down hundreds of my client sites.When cPanel is aware of these issues, it should send a mailing commenting what the hell is happenning, and provide the workaround. That would save both customers and support staff the hundreds of hours/man to debug, think, investigate, and add to that the time we have to lose apologizing with our end customers.
Or if you don't want to spend money sending thousands of emails, add a notification function to WHM so it can show a warning saying "Hey dude! MariaDB did it again, here are the symptoms and the workaround. Thanks for keep paying. Love. cPanel." (Yep, actually I WANT to see such a warning and I assure you other admins will absolutelly love it too.)
And please, don't send me to open a Feature Request. Be proactive guys, we are paying a lot of money for you to make the best panel and this feature shouldn't be that complicated. Don't stagnate please.
I have a last question please. How many time you need approximately for solve this error?.The autofixer is to resolve the issues caused in the cPanel databases interface. It doesn't affect the PHP issues, so you'd still want to stay on the older version if you don't want to upgrade PHP just yet.
Hi,how to we disable mariadb updates? i downgraded then this morning to 10.3.25 then the next day it went back to 10.3.26
Such autofixer is being run on every nightly update? So, by tomorrow it would be safe to unlock updates for MariaDB on servers with websites running PHP>= 7.3, is this correct?The autofixer is to resolve the issues caused in the cPanel databases interface. It doesn't affect the PHP issues, so you'd still want to stay on the older version if you don't want to upgrade PHP just yet.
/scripts/autorepair fix_mariadb_show_grants_roles
Requesting script ... info [autorepair] Successfully verified signature for cpanel (key types: release).
Done
Auto Repair is running......Auto Repair is done.
mysql -e "ALTER TABLE mysql.user MODIFY COLUMN password_last_changed timestamp AFTER max_statement_time, MODIFY COLUMN password_lifetime smallint AFTER password_last_changed, MODIFY COLUMN account_locked enum('N','Y') AFTER password_lifetime"
ERROR 1054 (42S22) at line 1: Unknown column 'password_last_changed' in 'user'