Comments - Logration does not work

8 months, 1 week ago Daniel Black

The DB user for the mariadb-admin in the context of the logrotate script has insufficient privs.

su doesn't apply to scripts.

ALTER USER 'root'@'localhost' IDENTIFIED VIA unix_socket

is a simple way or make a config file with credentials. And RELOAD privs are required.

 
8 months, 1 week ago Olivier Studer

Hi,

The DB user has the correct right. See bellow: [root@svx-mdb-04t 10.11]# !ma mariadb -u root Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 31031 Server version: 10.11.8-MariaDB-log MariaDB Server

Copyright © 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> select user,host,password,plugin,authentication_string from mysql.user where user = 'root'; +------+----------------+-------------------------------------------+-----------------------+-------------------------------------------+

UserHostPasswordpluginauthentication_string

+------+----------------+-------------------------------------------+-----------------------+-------------------------------------------+

rootlocalhostunix_socket
root127.0.0.1*encryptpasswordmysql_native_password*4C245D4EC046217F6C26895020969816A007382C
root134.21.203.189*encryptpasswordmysql_native_password*4C245D4EC046217F6C26895020969816A007382C
root134.21.203.190*encryptpasswordmysql_native_password*4C245D4EC046217F6C26895020969816A007382C

+------+----------------+-------------------------------------------+-----------------------+-------------------------------------------+ 4 rows in set (0.001 sec)

MariaDB [(none)]>

I need more help Regards

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.