将XAMPP文件夹移动到新计算机,现在得到“(XAMPPErrorDomain错误1.)".尝试启动MySQL时 [英] Moved XAMPP folder to new computer, now getting "(XAMPPErrorDomain error 1.)" when trying to start up MySQL

查看:120
本文介绍了将XAMPP文件夹移动到新计算机,现在得到“(XAMPPErrorDomain错误1.)".尝试启动MySQL时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我不得不从头开始在MacBook上重新安装Lion.我保存了XAMPP文件夹,并将其移至新安装的application文件夹中.我可以启动Apache,但不能启动MySQL.我收到此错误:"The operation couldn’t be completed. (XAMPPErrorDomain error 1.)".

I recently had to reinstall Lion from scratch on my MacBook. I saved my XAMPP folder and moved it into the applications folder in my new install. I can start up Apache, but not MySQL. I get this error: "The operation couldn’t be completed. (XAMPPErrorDomain error 1.)".

我尝试将var/mysql的权限设置为775和777,都无效.

I tried setting permissions on the var/mysql to 775 and 777, neither worked.

我尝试在终端中运行"sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start",并且得到以下信息:"

I tried running "sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start" in terminal and I get this: "

Starting MySQL
. ERROR! Manager of pid-file quit without updating file.

当我检查了它生成的错误文件时,看到了:

" When I checked the error file it generated, I see this:

"

110820 14:41:20 mysqld_safe Starting mysqld daemon with databases from /Applications/XAMPP/xamppfiles/var/mysql
110820 14:41:20 [Warning] The syntax '--skip-locking' is deprecated and will be removed in a future release. Please use --skip-external-locking instead.
110820 14:41:20 [Warning] option 'thread_stack': unsigned value 65536 adjusted to 131072
110820 14:41:20 [Warning] Setting lower_case_table_names=2 because file system for /Applications/XAMPP/xamppfiles/var/mysql/ is case insensitive
110820 14:41:20 [Note] Plugin 'FEDERATED' is disabled.
110820 14:41:20  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
110820 14:41:20 mysqld_safe mysqld from pid file /Applications/XAMPP/xamppfiles/var/mysql/hex-sha6-ev11435.concordia.ca.pid ended

"

有什么想法吗?从旧的操作系统安装更改为新的操作系统的唯一更改是计算机名称从Scott的Macbook更改为Scott的Mac B ook.在我必须擦除驱动器并重新安装所有组件之前,它在10.7上运行良好.

Any ideas? The only thing that changed from my old OS install to my new one is the name of the computer changed from Scott's Macbook to Scott's MacBook. It worked fine on 10.7 before I had to erase the drive and reinstall everything.

推荐答案

权限问题, 简单地做

chmod -R 777 /Applications/XAMPP/xamppfiles/var

你很好.

这篇关于将XAMPP文件夹移动到新计算机,现在得到“(XAMPPErrorDomain错误1.)".尝试启动MySQL时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆