Darshans-MacBook-Air-2:~ Darshan1$ sudo mkdir /var/mysql
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
鍵入什麼密碼?如何修復丟失的MySQL套接字(Mamp)?
的mysql.sock文件夾
Darshans-MacBook-Air-2:~ Darshan1$ sudo mkdir /var/mysql
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
鍵入什麼密碼?如何修復丟失的MySQL套接字(Mamp)?
的mysql.sock文件夾
沒有顯示試試這個,看看那裏的插座。 MySQL將在啓動時創建
MariaDB [yourSchema]> show variables like '%socket%';
+-----------------------------------------+-----------------+
| Variable_name | Value |
+-----------------------------------------+-----------------+
| performance_schema_max_socket_classes | 10 |
| performance_schema_max_socket_instances | -1 |
| socket | /tmp/mysql.sock |
+-----------------------------------------+-----------------+
3 rows in set (0.07 sec)
MariaDB [yourSchema]>
如何執行這個抱歉,但我是新來的mysql和終端@Bernd Buffen – Darshan
首先,檢查是MySQL服務正在運行。你能連接到數據庫嗎?嘗試:** ps -ax | grep mysqld **來查看MySQL是否在運行,你可以看一下my.cnf文件。您可以在服務運行時看到套接字的創建位置 –
嘗試:** sudo su **然後輸入密碼。那麼你得到一個根shell# –