Mariadb error 2002
Lama tak terjun ke dunia database, ada pengaturan yang terlupakan sehingga muncul error.
1
2
3
mariadb -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local server through socket '/var/run/mysql/mysql.sock' (2)
Setelah dicek, ternyata service-nya belum jalan karena tidak executable.
1
ls -l /etc/rc.d|grep -iE "(maria|mysql)"
Mari aktifkan
1
2
3
4
chmod +x /etc/rc.d/rc.mysqld
/etc/rc.d/rc.mysqld start
210530 10:36:21 mysqld_safe Logging to '/var/lib/mysql/bumi.bumi.err'.
210530 10:36:21 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql
Done. Alhamdulillah
This post is licensed under CC BY 4.0 by the author.