![Mac 10.6.8 Zend Server CE MySQL 无法启动 — “错误!pid 文件管理器退出,未更新文件”](https://linux22.com/image/558781/Mac%2010.6.8%20Zend%20Server%20CE%20MySQL%20%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8%20%E2%80%94%20%E2%80%9C%E9%94%99%E8%AF%AF%EF%BC%81pid%20%E6%96%87%E4%BB%B6%E7%AE%A1%E7%90%86%E5%99%A8%E9%80%80%E5%87%BA%EF%BC%8C%E6%9C%AA%E6%9B%B4%E6%96%B0%E6%96%87%E4%BB%B6%E2%80%9D.png)
MySQL 无法启动,我之前在同一台 Mac 上安装了 zend server,MySQL 可以正常工作。之后我重新安装了rm -r /usr/local/zend
。是否还有其他目录需要清除?或者您有什么想法?
在/usr/local/zend/mysql/数据
bash-3.2# echo $PATH
/usr/local/zend/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
bash-3.2# zendctl.sh start-mysql
Starting MySQL
. ERROR! Manager of pid-file quit without updating file.
bash-3.2#
这是启动失败的日志文件
110817 13:20:08 mysqld_safe Starting mysqld daemon with databases from /usr/local/zend/mysql/data
110817 13:20:09 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
110817 13:20:09 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
110817 13:20:09 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/zend/mysql/data/ is case insensitive
110817 13:20:09 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/zend/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
110817 13:20:09 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110817 13:20:09 InnoDB: Initializing buffer pool, size = 8.0M
110817 13:20:09 InnoDB: Completed initialization of buffer pool
InnoDB: Log scan progressed past the checkpoint lsn 0 37356
110817 13:20:09 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 44233
110817 13:20:09 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 6 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
110817 13:20:09 InnoDB: Started; log sequence number 0 44233
110817 13:20:09 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
110817 13:20:09 mysqld_safe mysqld from pid file /usr/local/zend/mysql/data/puidhcp-088-227.is.nottingham.ac.uk.pid ended
答案1
[错误] 致命错误:无法打开和锁定权限表:表“mysql.host”不存在
运行mysql_install_db
命令来初始 MySQL 数据目录并创建系统表。