mariadb 복구 (ERROR 2002 (HY000): Can't connect to local MySQL server through socket)

mysql  깨졌을때.. (실행안될때..)ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
서비스 정지systemctl stop mariadb
안전모드mysqld_safe --user=mysql
디비초기화mysql_install_db --user=mysql --basedir=/usr/ --ldata=/var/lib/mysql/
비번설정mysqladmin -u root password
데이터도 초기화 되는 듯...

댓글

이 블로그의 인기 게시물

LSF (GPU 스케쥴링) 명령어 사용법

CentOS 7 리부팅 없이 새 디스크 인식 (find a new disk without reboot)

python에서 hive 사용