ssh:
systemctl status mysql
● mariadb.service - MariaDB 10.5.21 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-11-15 13:21:31 CET; 3h 16min ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 569 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Process: 605 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 613 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_P>
Process: 2640 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 2642 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
Main PID: 757 (mariadbd)
Status: "Taking your SQL requests now..."
Tasks: 10 (limit: 77071)
Memory: 890.1M
CPU: 12.577s
CGroup: /system.slice/mariadb.service
└─757 /usr/sbin/mariadbd
Nov 15 13:21:31 server.company.com mariadbd[757]: Version: '10.5.21-MariaDB-0+deb11u1' socket: '/run/mysqld/mysqld.sock' port: 3306 Debian 11
Nov 15 13:21:31 server.company.com systemd[1]: Started MariaDB 10.5.21 database server.
Nov 15 13:21:31 server.company.com mariadbd[757]: 2023-11-15 13:21:31 3 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Nov 15 13:21:31 server.company.com /etc/mysql/debian-start[2647]: Looking for 'mariadb' as: /usr/bin/mariadb
Nov 15 13:21:31 server.company.com /etc/mysql/debian-start[2647]: Reading datadir from the MariaDB server failed. Got the following error when executing the 'mysql' command line client
Nov 15 13:21:31 server.company.com /etc/mysql/debian-start[2647]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Nov 15 13:21:31 server.company.com /etc/mysql/debian-start[2647]: FATAL ERROR: Upgrade failed
Nov 15 13:21:31 server.company.com mariadbd[757]: 2023-11-15 13:21:31 4 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Nov 15 13:21:31 server.company.com debian-start[2659]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Nov 15 13:21:57 server.company.com mariadbd[757]: 2023-11-15 13:21:57 0 [Note] InnoDB: Buffer pool(s) load completed at 231115 13:21:57
---------------------------------------------------------
ssh:
systemctl status mysqld
● mysqld.service - MySQL database server
Loaded: loaded (/etc/systemd/system/mysqld.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-11-15 16:35:30 CET; 23s ago
Main PID: 78821 (mysqld_safe)
Tasks: 4 (limit: 77071)
Memory: 26.6M
CPU: 241ms
CGroup: /system.slice/mysqld.service
├─78821 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/mysqld.pid --socket=/usr/local/mysql/data/mysql.sock
├─78944 /usr/local/mysql/bin/mysqld --basedir=/usr --datadir=/usr/local/mysql/data --plugin-dir=/usr/lib/mysql/plugin --skip-log-error --pid-file=/usr/local/mysql/data>
└─78945 logger -t mysqld -p daemon error
Nov 15 16:35:30 server.company.com systemd[1]: Started MySQL database server.
Nov 15 16:35:30 server.company.com mysqld_safe[78821]: 231115 16:35:30 mysqld_safe Logging to syslog.
Nov 15 16:35:30 server.company.com mysqld_safe[78821]: 231115 16:35:30 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
Nov 15 16:35:30 server.company.com mysqld[78945]: 2023-11-15 16:35:30 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 10.3.18-MariaDB) starting as process 78944 ...
Nov 15 16:35:30 server.company.com mysqld[78945]: 2023-11-15 16:35:30 0 [ERROR] mysqld: Can't lock aria control file '/usr/local/mysql/data/aria_log_control' for exclusive use,>
error: 11. Will retry for 30 seconds