I was trying to reset the root mysql password. I started poking around and i stopped mysqld service. But I found a copy of mariadb also running.
Is this normal to have both mysql and mariadb running? I quite sure it's not.
In the current state as above, mysql won't connect. no socket.
When I try to start mysqld.
This is a fairly fresh DA install.
Code:
root [~] # ps -aux | grep mysql*
mysql 502665 0.0 5.7 1088348 102488 pts/1 Sl 08:22 0:00 /usr/local/bin/mariadbd --basedir=/usr/local --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plu-user=mysql --skip-grant-tables --log-error=/usr/local/mysql/data/phx.err --pid-file=phx.pid
root 509187 0.0 0.1 4656 3456 ? S 08:31 0:00 sh -c /usr/bin/systemctl start mysqld.service >/dev/null 2>/dev/null
root 509188 0.0 0.4 19864 8576 ? S 08:31 0:00 /usr/bin/systemctl start mysqld.service
root 509576 0.0 0.1 4656 3456 ? S 08:31 0:00 sh -c /usr/bin/systemctl restart mysqld.service 2>&1
root 509577 0.0 0.4 19864 8448 ? S 08:31 0:00 /usr/bin/systemctl restart mysqld.service
mysql 509618 0.2 2.5 244204 45352 ? Ssl 08:31 0:00 /usr/local/mysql/bin/mysqld --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock
root 509814 0.0 0.1 3876 2048 pts/1 S+ 08:32 0:00 grep --color=auto mysql*
root [~] # systemctl stop mysqld
root [~] # systemctl stop mariadbd
Failed to stop mariadbd.service: Unit mariadbd.service not loaded.
root [~] # systemctl stop mariadb
Failed to stop mariadb.service: Unit mariadb.service not loaded.
root [~] # ps -aux | grep mysql*
mysql 502665 0.0 5.7 1088348 102488 pts/1 Sl 08:22 0:00 /usr/local/bin/mariadbd --basedir=/usr/local --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --skip-grant-tables --log-error=/usr/local/mysql/data/phx.err --pid-file=phx.pid
Is this normal to have both mysql and mariadb running? I quite sure it's not.
In the current state as above, mysql won't connect. no socket.
When I try to start mysqld.
Code:
root [~] # systemctl start mysqld
Job for mysqld.service failed because the control process exited with error code.
See "systemctl status mysqld.service" and "journalctl -xeu mysqld.service" for details.
root [~] # systemctl status mysqld.service
● mysqld.service - MySQL database server
Loaded: loaded (/etc/systemd/system/mysqld.service; enabled; preset: disabled)
Active: activating (start) since Sat 2025-07-05 08:43:27 MST; 6s ago
Process: 518658 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 518659 ExecStartPre=/bin/sh -c [ ! -e /usr/local/mysql/bin/galera_recovery ] && VAR= || VAR=`cd /usr/local/mysql/bin/..; /usr/local/mysql/bin/galera_recovery`; [ $? >
Main PID: 518679 (mysqld)
Tasks: 2 (limit: 10688)
Memory: 27.7M
CPU: 112ms
CGroup: /system.slice/mysqld.service
└─518679 /usr/local/mysql/bin/mysqld --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock
Jul 05 08:48:02 phx systemd[1]: Starting MySQL database server...
Jul 05 08:48:03 phx mysqld[522227]: 2025-07-05 8:48:03 0 [Note] Starting MariaDB 10.6.22-MariaDB source revision 19644f6821d59ecca0f9b1f44fadb3b887061965 server_uid QMIhRG7z0PSeE/47JCJ4HHDd00k= as process 522227
Jul 05 08:48:03 phx mysqld[522227]: 2025-07-05 8:48:03 0 [ERROR] mysqld: Can't lock aria control file '/var/lib/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds
This is a fairly fresh DA install.