简体   繁体   中英

Reinstall MySQL (mariadb) in Debian Stretch

我完全删除了包括配置文件在内的mysql,当我尝试重新安装时,没有mysql.socket(我在/ var / lib / mysql /中搜索,没有任何内容。

Typically you will see mysql.sock file when you start the mysql daemon process. This is create the sock file.

But you can also search and see whether it has created somewhere.

netstat -ln | grep -o -m 1 -E '\S*mysqld?\.sock'

or you can check with this command:

% mysqladmin variables

If you want to create the file, you can do this

mkdir /var/mysql
ln -s /tmp/mysql.sock /var/mysql/mysql.sock

This thread explains things in more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM