* Fri Mar 07 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-9.sme
- upgrade to support mariadb 11.4 [SME: 12930] move mariadb-upgrade to mysql.init unit, remove duplicate in 00_restore_dumped_dbs and 10mysql_upgrade add our tmp.d add post action dnf script update mariadb.service.d/ content set default to utfmb4 - TODO mysql.dump filtering [SME: 12592] - TODO feedback plugin [SME: 12897] * Sun Jan 26 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-8.sme - prestart script requires daemontools bins [SME: 12566]
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
( cat /home/e-smith/db/mysql/mysql.dump ;
|
||||
cat /var/lib/mysql.private/set.password ) | mysql || exit 1
|
||||
/usr/bin/mysql_upgrade
|
||||
/bin/rm /var/run/mariadb/mariadb.pid
|
||||
/usr/bin/systemctl restart mariadb.service
|
||||
for i in $(seq 1 20);
|
||||
|
@@ -1,16 +0,0 @@
|
||||
#!/bin/sh
|
||||
/usr/bin/mysql_upgrade
|
||||
|
||||
/bin/rm /var/run/mariadb/mariadb.pid
|
||||
/usr/bin/systemctl restart mariadb.service
|
||||
for i in $(seq 1 20);
|
||||
do
|
||||
if [ -f /var/run/mariadb/mariadb.pid ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
echo waiting for mysqld to restart
|
||||
sleep 1
|
||||
done
|
||||
echo mysqld failed to restart
|
||||
exit 1
|
3
root/etc/e-smith/templates/etc/my.cnf/001client
Normal file
3
root/etc/e-smith/templates/etc/my.cnf/001client
Normal file
@@ -0,0 +1,3 @@
|
||||
[client]
|
||||
default-character-set = utf8mb4
|
||||
|
3
root/etc/e-smith/templates/etc/my.cnf/003mysql
Normal file
3
root/etc/e-smith/templates/etc/my.cnf/003mysql
Normal file
@@ -0,0 +1,3 @@
|
||||
[mysql]
|
||||
default-character-set = utf8mb4
|
||||
|
11
root/etc/e-smith/templates/etc/my.cnf/006charset
Normal file
11
root/etc/e-smith/templates/etc/my.cnf/006charset
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
# starting mariadb 10.6 , utf8 changes to utf8mb3 (as utf8 used to be an alias of utfmb3)
|
||||
# utf8 will soon be an alias of utf8mb4, and more and mroe db are demanding utf8mb4
|
||||
# so we are better default to it in 2025.
|
||||
# old-mode will force utf8mb3 for character-set-system
|
||||
}
|
||||
character-set-client-handshake = FALSE
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
init-connect = 'SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci'
|
||||
character-set-server = utf8mb4
|
||||
old-mode = ''
|
Reference in New Issue
Block a user