简体   繁体   English

XAMPP MySQL 服务器无法在 Mac OS High Sierra 上启动

[英]XAMPP MySQL server won't start on Mac OS High Sierra

I've spent several days on this problem, I've been searching the forums / Google to see if anyone has a solution.我在这个问题上花了几天时间,我一直在搜索论坛/谷歌,看看是否有人有解决方案。 I need to run an older version of XAMPP (5.6) and the MySQL server fails to start on Mac OS X. The XAMPP application manager will not start the MySQL server, so I used Terminal我需要运行旧版本的 XAMPP (5.6) 并且 MySQL 服务器无法在 Mac OS X 上启动。 XAMPP 应用程序管理器不会启动 MySQL 服务器,所以我使用了终端

sudo /Applications/XAMPP/bin/mysql.server start

to force the server to run.强制服务器运行。 But I got an error message: "Starting mysqld daemon with databases from /Applications/XAMPP/xamppfiles/var/mysql /Applications/XAMPP/xamppfiles/bin/mysqld_safe_helper: Can't create/write to file '/Applications/XAMPP/xamppfiles/var/mysql/UserName.local.err' (Errcode: 13 "Permission denied") /Applications/XAMPP/bin/mysql.server: line 260: kill: (3256) - No such process ERROR!"但我收到一条错误消息:“使用来自 /Applications/XAMPP/xamppfiles/var/mysql /Applications/XAMPP/xamppfiles/bin/mysqld_safe_helper 的数据库启动 mysqld 守护进程:无法创建/写入文件 '/Applications/XAMPP/xamppfiles /var/mysql/UserName.local.err' (Errcode: 13 "Permission denied") /Applications/XAMPP/bin/mysql.server: line 260: kill: (3256) - No such process ERROR!"

Get the same error when logging into Terminal as ROOT.以 ROOT 身​​份登录终端时出现相同的错误。

The privileges for the "UserName.local.err" file was: -rwxrwx--- 1 UserName admin 2500041 Oct 28 16:22 UserName-MacBook-Pro.local.err “UserName.local.err”文件的权限是:-rwxrwx--- 1 UserName admin 2500041 Oct 28 16:22 UserName-MacBook-Pro.local.err

So I gave the file all privileges - I will delete the entire XAMPP folder (a copy) after printing out the SQL table structure and data.所以我给了这个文件所有的权限——我会在打印出 SQL 表结构和数据后删除整个 XAMPP 文件夹(一个副本)。

The privileges for the file are now: -rwxrwxrwx 1 UserName admin 2500041 Oct 28 16:22 UserName-MacBook-Pro.local.err该文件的权限现在是:-rwxrwxrwx 1 UserName admin 2500041 Oct 28 16:22 UserName-MacBook-Pro.local.err

The error message has now changed a bit: "Starting mysqld daemon with databases from /Applications/XAMPP/xamppfiles/var/mysql /Applications/XAMPP/bin/mysql.server: line 260: kill: (4738) - No such process ERROR!"错误消息现在已经改变了一点:“从 /Applications/XAMPP/xamppfiles/var/mysql /Applications/XAMPP/bin/mysql.server: line 260: kill: (4738) - No such process ERROR 中的数据库启动 mysqld 守护进程!”

Any idea as to getting this server to run?关于让这个服务器运行的任何想法? Thanks so much for your help!非常感谢你的帮助! Cheers, Rick干杯,瑞克

Well, this is odd.嗯,这很奇怪。 I cycled through the steps (and the problem) over and over again.我一遍又一遍地循环执行这些步骤(和问题)。 I re-installed the old version of XAMPP a number of times and had the same issue.我多次重新安装旧版本的 XAMPP 并遇到同样的问题。 I re-installed it one last time, and the mysql.server started up.我上次重装了一次,mysql.server就启动了。 Can't say why though...虽然说不上为什么...

Thanks anyway, Rick无论如何,谢谢,瑞克

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM