我今天早上從雪豹服務器升級到了山獅,並安裝了Server應用程序,現在我無法連接到MySQL,我擔心我的所有數據庫丟失,任何人都有這個問題,並可以提供解決方案?Mysql在山獅升級和Server.app安裝後停止工作
第一個問題似乎是與mysql.sock文件,它不存在。所以我無法從任何東西連接或轉儲到文件並重新開始。以下是happends當我運行mysql
/usr/libexec/mysqld
130102 17:07:48 [Warning] Setting lower_case_table_names=2 because file system for /var/mysql/ is case insensitive
InnoDB: The InnoDB memory heap has been disabled.
InnoDB: Mutex and rw_lock use GCC atomic builtins.
InnoDB: Log scan progressed past the checkpoint lsn 0 36808
130102 17:07:48 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 43655
130102 17:07:48 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
130102 17:07:49 InnoDB: Started; log sequence number 0 43655
130102 17:07:49 [Note] Recovering after a crash using mysql-bin
130102 17:07:49 [Note] Starting crash recovery...
130102 17:07:49 [Note] Crash recovery finished.
130102 17:07:49 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
我試過其他的東西都mysqld_update和一堆。我現在的主要目標是以某種方式獲取數據並進行乾淨的安裝。但我似乎無法找到數據。
如果我在終端上找到一個數據庫名,我發現它塞滿了/ Library/Server/Previous/private/var/mysql/DBNAME,但我無法在終端或查找器中訪問該位置(甚至作爲根源),試圖把它們放入它們中給我一個「不存在」的回報。