我在哪里输入命令来重新启动mysql数据库?
它在PHP文件中吗?还是进入数据库本身?我使用 Heidi SQL 连接到数据库。
像这样的命令
= killall -9 mysqld
= service mysql stop
=cp var/lib/mysql/mysql.sock var/lib/mysql/mysql.sock_backup
= rm -f /var/lib/mysql/mysql.sock
= service mysql start
= ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
= /scripts/restartsrv mysql
因为我收到这个错误
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)