ERROR WHILE RUNNING MARIADB

Published: 03 September 2025
on channel: LawlietBytes
45
3

it fails because the MariaDB server (mariadbd) is not able to start properly.
Common causes are:
1.Corrupt or missing data directory
2.Port/socket conflicts
3.Permission issues
4.Bad configuration file

TO DIAGNOSE
#Check service status
sudo systemctl status mariadb --no-pager -l
#Check MariaDB error logs
sudo journalctl -xeu mariadb --no-pager | tail -n 50


#Fixes depending on the problem
#Old process/socket blocking
sudo killall -9 mysqld mariadbd
sudo rm -f /run/mysqld/mysqld.sock
sudo systemctl start mariadb

#Wrong permissions
#If logs say "Permission denied" for /var/lib/mysql or /run/mysqld:
sudo chown -R mysql:mysql /var/lib/mysql
sudo chown -R mysql:mysql /run/mysqld
sudo systemctl restart mariadb

#Case 3: Corrupted/missing data
#If logs say "InnoDB corruption" or "cannot find mysql.user table", reinitialize:

sudo systemctl stop mariadb
sudo mv /var/lib/mysql /var/lib/mysql.bak # backup
sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl start mariadb


Config error
#If logs mention /etc/mysql/mariadb.conf.d/50-server.cnf, edit it:

sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf






THANK YOU
Kindly Subscribe if you feel my video is useful ........


On this page of the site you can watch the video online ERROR WHILE RUNNING MARIADB with a duration of hours minute second in good quality, which was uploaded by the user LawlietBytes 03 September 2025, share the link with friends and acquaintances, this video has already been watched 45 times on youtube and it was liked by 3 viewers. Enjoy your viewing!