在将我的MAMP(Pro)安装从2.2更新到3.0.2之后,我的问题是让我的Dropbox mysql数据库同步工作。
我一直在使用以下设置退出一段时间,它完美无缺,直到我更新:
工作电脑:
Mac Pro G5运行MacOS 10.8.5
用户名A
MAMP& MAMP Pro正常安装
用户root中的Dropbox文件夹:/Users/UsernameA/Dropbox
带有第二个分区的符号链接:/Volumes/Diskname/Dropbox
符号链接到Dropbox:
/Applications/MAMP/htdocs
/Applications/MAMP/db/mysql
/Library/Application Support/appsolute/MAMP PRO/db/mysql
家用电脑:
Mac Mini运行MacOS 10.9.2
用户名B
MAMP& MAMP Pro正常安装
用户root中的Dropbox文件夹:/Users/UsernameB/Dropbox
符号链接到Dropbox:
/Applications/MAMP/htdocs
/Applications/MAMP/db/mysql
/Library/Application Support/appsolute/MAMP PRO/db/mysql
两台计算机上的MAMP Pro设置
Default Apache port for http connections: 80
Default Apache port for https connections (SSL): 443
MySQL port: 3306
Run Apache/MySQL server as user: www (Apache) / mysql (MySQL)
MySQL Password user root: notroot
在我的工作计算机上,一切正常,Apache和MySQL服务器正常启动。 但是当我试图在家里启动MAMP Pro时,我一直都没有启动MYSQL错误。在MAMP中,MySQL服务器也不会启动。 这是在我的 mysql_error.log :
中140320 11:09:14 mysqld_safe Starting mysqld daemon with databases from /Library/Application Support/appsolute/MAMP PRO/db/mysql
140320 11:09:14 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
140320 11:09:14 [Warning] Setting lower_case_table_names=2 because file system for /Library/Application Support/appsolute/MAMP PRO/db/mysql/ is case insensitive
140320 11:09:14 [Note] Plugin 'FEDERATED' is disabled.
/Applications/MAMP/Library/bin/mysqld: Table 'plugin' is read only
140320 11:09:14 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
140320 11:09:14 InnoDB: The InnoDB memory heap is disabled
140320 11:09:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140320 11:09:14 InnoDB: Compressed tables use zlib 1.2.3
140320 11:09:14 InnoDB: Initializing buffer pool, size = 128.0M
140320 11:09:15 InnoDB: Completed initialization of buffer pool
140320 11:09:15 InnoDB: highest supported file format is Barracuda.
140320 11:09:15 InnoDB: Waiting for the background threads to start
140320 11:09:16 InnoDB: 5.5.34 started; log sequence number 100221878
140320 11:09:16 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'host' is read only
140320 11:09:16 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended
我肯定知道它与 / Library / Application Support / appsolute / MAMP PRO / db / mysql 文件夹有关,因为当我删除符号链接并使用默认安装的mysql文件夹时在我的家用电脑上,MySQL服务器正常启动 我尝试了一切:
但没有任何帮助!
我在某处看到Dropbox的路径必须在两台计算机上都完全相同,但在更新之前这样可以正常工作吗?
还有人提到两台计算机上的用户名必须相同,但在更新之前还能正常工作吗?
任何想法导致了什么?
谢谢!
答案 0 :(得分:0)
我在新的Xampp安装时遇到了类似的问题,我试图在 my.ini 中更改这些行:
datadir="C:/xampp/mysql/data"
innodb_data_home_dir = "C:/xampp/mysql/data"
innodb_log_group_home_dir = "C:/xampp/mysql/data"
分为:
datadir="D:/Dropbox/web-data"
innodb_data_home_dir = "D:/Dropbox/web-data"
innodb_log_group_home_dir = "D:/Dropbox/web-data"
您需要将数据文件夹中的所有初始内容复制到新的Web数据文件夹中。您可以与您的安装进行比较,希望它能够正常工作。