* Fri Apr 05 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-4.sme

- tidy spec and sources for mariadb10.5 support [SME: 12524]
- try to make compatible with higher version from mariadb repo [SME: 11856]
- fix logrotate duplicate entry [SME: 12554]

* Thu Apr 04 2024 Brian Read <brianr@koozali.org> 11.0.0-3.sme
- Set license file to GPL2.0  [SME: 12577]
This commit is contained in:
2024-04-06 00:48:58 -04:00
parent 7e830858f7
commit fbc84843d3
28 changed files with 24 additions and 829 deletions

View File

@@ -1,7 +1,7 @@
#! /bin/sh
( cat /home/e-smith/db/mysql/mysql.dump ;
cat /var/lib/mysql/set.password ) | mysql || exit 1
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

View File

@@ -1,14 +1,5 @@
#innodb
{# https://mariadb.com/kb/en/innodb-system-variables/#innodb_large_prefix
#default Off up to 10.2.1
# removed in 10.3.1 and 10.6.0
# keep it there up to 10.2.2
}innodb_large_prefix=1
{#https://mariadb.com/kb/en/innodb-system-variables/#innodb_file_format
# default is antelope up to 10.2.1
# keep it up to 10.2.2
}innodb_file_format={ $mariadb{'innodb_file_format'}||'barracuda' }
{# enabled is already the default
}innodb_file_per_table={ $mariadb{'innodb_file_per_table'}||'1' }

View File

@@ -1,4 +1,2 @@
{ # allow backwards-compatibility with safe_mysqld (mysql < 4.0)
-f "/usr/bin/mysqld_safe" ? "[mysqld_safe]" : "[safe_mysqld]";
}
[mysqld_safe]

View File

@@ -1,14 +1,4 @@
# *-mysql.init
:programname, isequal, "mysql.init" /var/log/mysql.init/mysql.init.log
& stop
:programname, isequal, "mariadb105-mysql.init" /var/log/mysql.init/mariadb105-mysql.init.log
& stop
:programname, isequal, "mariadb103-mysql.init" /var/log/mysql.init/mariadb103-mysql.init.log
& stop
:programname, isequal, "mariadb102-mysql.init" /var/log/mysql.init/mariadb102-mysql.init.log
& stop
:programname, isequal, "mariadb101-mysql.init" /var/log/mysql.init/mariadb101-mysql.init.log
& stop
:programname, isequal, "mysql57-mysql.init" /var/log/mysql.init/mysql57-mysql.init.log
& stop

View File

@@ -1,12 +0,0 @@
{
use esmith::util;
my $pw = esmith::util::LdapPassword();
$OUT .= "use mysql;\n";
$OUT .= "ALTER TABLE user MODIFY Password char(41) NOT NULL default '';\n";
$OUT .= "UPDATE user SET password=password('$pw') WHERE user='root';\n";
$OUT .= "DELETE FROM db WHERE user='';\n";
$OUT .= "DELETE FROM user WHERE user='';\n";
$OUT .= "FLUSH PRIVILEGES;\n";
}