basically on my vps somehow mysql.sock vanished in tmp as well lib folder. I want to reinstall mysql but will db get lost?
MySQL stores its database files in /var/lib/mysql it's a good idea to backup this folder. Removing the mysql package should not remove this folder.
cd /var/lib; tar czf mysql-db.tar.gz mysql
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago