我在OSX Lion上運行mysql 5.5.22。我的問題是mysqld_safe啓動並停止在起始位置像這樣。mysqld_safe命令啓動然後停止OSX Lion
我輸入以下命令:mysqld_safe的
120327 05:33:57 mysqld_safe Logging to '/usr/local/mysql/data/The-BatMobile.local.err'.
120327 05:33:57 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
該mysqld_safe的方案已在代碼25分鐘這段最後一行被拖延了。任何人有想法?我已經完成的谷歌搜索揭示了一些與獅子有關的問題,但沒有在這個特定的問題。
編輯//
讀取MySQL錯誤日誌後,我發現mysqldsafe可能已經運行表明這種前行的代碼:
120327 05:33:57 mysqld_safe Logging to '/usr/local/mysql/data/The-BatMobile.local.err'.
120327 05:33:57 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
是我的假設是正確的?
以下是錯誤日誌:
21 120327 11:21:58 mysqld_safe mysqld from pid file /usr/local/mysql/data/the- batmobile.pid ended
22 120327 11:23:06 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
23 120327 11:23:06 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
24 120327 11:23:06 [Note] Plugin 'FEDERATED' is disabled.
25 120327 11:23:06 InnoDB: The InnoDB memory heap is disabled
26 120327 11:23:06 InnoDB: Mutexes and rw_locks use GCC atomic builtins
27 120327 11:23:06 InnoDB: Compressed tables use zlib 1.2.3
28 120327 11:23:06 InnoDB: Initializing buffer pool, size = 128.0M
29 120327 11:23:06 InnoDB: Completed initialization of buffer pool
30 120327 11:23:06 InnoDB: highest supported file format is Barracuda.
31 120327 11:23:06 InnoDB: Waiting for the background threads to start
32 120327 11:23:07 InnoDB: 1.1.8 started; log sequence number 1595675
33 120327 11:23:07 [Note] Event Scheduler: Loaded 0 events
34 120327 11:23:07 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
35 Version: '5.5.22' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
我還想知道當我輸入'sudo。/ mysqld_safe'時發生了什麼。我懷疑它正在運行,但找不到下一步該做什麼。謝謝(你的)信息! 'sudo ./mysql -u root'是我所需要的mysql CLI。 – 2015-03-10 15:41:35