* Sun Apr 20 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-14.sme
- set innodb_page_size=64k [SME: 12982] breaking change, needs backup and restore of mariadb databases - convert mysql* bins call to mariadb-* [SME: 12983] - revert [SME: 12591]
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
# non RH ocmpiled version of mariadb limits MyISAM index to 1000 bytes, newer mysql db use Aria as engine for those tables
|
||||
( /usr/bin/mysql_filter_user_table /home/e-smith/db/mysql/mysql.dump |sed -e 's/ENGINE=MyISAM/ENGINE=Aria/';
|
||||
[ -f /home/e-smith/db/mysql/mysql.privileges.dump ] && cat /home/e-smith/db/mysql/mysql.privileges.dump;
|
||||
cat /var/lib/mysql.private/set.password ) | mysql || exit 1
|
||||
/usr/bin/mysql_upgrade
|
||||
cat /var/lib/mysql.private/set.password ) | mariadb || exit 1
|
||||
/usr/bin/mariadb-upgrade
|
||||
/bin/rm /run/mariadb/mariadb.pid
|
||||
/usr/bin/systemctl restart mariadb.service
|
||||
for i in $(seq 1 20);
|
||||
@@ -17,8 +17,8 @@ do
|
||||
[ -f /home/e-smith/db/mysql/mysql.privileges.dump ] /bin/rm /home/e-smith/db/mysql/mysql.privileges.dump
|
||||
exit 0
|
||||
fi
|
||||
echo waiting for mysqld to restart
|
||||
echo waiting for mariadb to restart
|
||||
sleep 1
|
||||
done
|
||||
echo mysqld failed to restart
|
||||
echo mariadb failed to restart
|
||||
exit 1
|
||||
|
@@ -2,4 +2,9 @@
|
||||
#innodb
|
||||
{# enabled is already the default
|
||||
}innodb_file_per_table={ $mariadb{'innodb_file_per_table'}||'1' }
|
||||
# innodb_strict_mode = 0
|
||||
# higher size see SME 12982
|
||||
innodb_page_size=64k
|
||||
innodb_log_buffer_size={ $mariadb{'innodb_log_buffer_size='}||'32M' }
|
||||
innodb_buffer_pool_size={ $mariadb{'innodb_buffer_pool_size'}||'512M' }
|
||||
|
||||
|
Reference in New Issue
Block a user