Hello, so I needed to move my datadir of MariaDB on my cPanel server because as many it happens, I kept the default config of partitions, and didn't think about it, so I had 20GB and it was getting full, and obviously the main folder taking space was /var/lib/mysql
Long story short, I moved the mysql folder to the /home/mysql (/home partition has plenty of space free and is on the same SSD that /var). Simple rsync the files, changing the config and reboot the database server, created a symlink from the old to the new folder.
Now I noticed something, and maybe this is normal and has always been like this.
When I use /scripts/restartsrv_mysql it restarts the database server, it always says mysql but its MariaDB.
Why when I manually restart the mariadb server using systemctl it doesnt work but using the word mysql instead it restarts mariadb, I am just confused, it it all just the same thing ? does both need to run ?
Just to be sure, I added protecthome=false to the mariadb.service config just in case
Thank you for any explanations/guidance/help !
Long story short, I moved the mysql folder to the /home/mysql (/home partition has plenty of space free and is on the same SSD that /var). Simple rsync the files, changing the config and reboot the database server, created a symlink from the old to the new folder.
Now I noticed something, and maybe this is normal and has always been like this.
When I use /scripts/restartsrv_mysql it restarts the database server, it always says mysql but its MariaDB.
Why when I manually restart the mariadb server using systemctl it doesnt work but using the word mysql instead it restarts mariadb, I am just confused, it it all just the same thing ? does both need to run ?
Just to be sure, I added protecthome=false to the mariadb.service config just in case
Thank you for any explanations/guidance/help !