mysql5.58 在 mac os 10.6.5 中取消启动服务器

标签 mysql macos

MySQL 5.5.8 卸载 MAC OS 10.6.5,重新启动计算机是消息“/Library/StartupItems/MySQLCOM”尚未启动,因为它没有正确的安全设置。我设置 sudo/Applications/TextEdit.app/Contents/MacOS/TextEdit/usr/local/mysql/support-files/mysql.server

找到定义 basedir 的配置并设置以下内容: basedir=/usr/本地/mysql datadir=/usr/local/mysql/data

错误我点击mysql首选项启动mysql服务器未启动

我 sudo chown -R root:wheel/Library/StartupItems/MySQLCOM 并再次重启,不是警告消息,而是 mysql 服务器未启动,为什么?

最佳答案

我刚刚在 Mac os X 10.6.5 上安装了 MySQL 5.5.8 (mysql-5.5.8-osx10.6-x86_64.dmg),但也遇到了 MySQL 无法启动的问题。

看完这篇文章后: http://forums.mysql.com/read.php?11,399397,399606#msg-399606

Modify the mysql.server script file using the following command :

sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /usr/local/mysql/support-files/mysql.server

Locate the configuration defining the basedir and set the following:

basedir=/usr/local/mysql 
datadir=/usr/local/mysql/data 

Save the file and start the mysql server in the system preferences / terminal

这解决了问题。

希望这对您有所帮助。感谢http://forums.mysql.com/profile.php?11,3773555 !

关于mysql5.58 在 mac os 10.6.5 中取消启动服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4486543/

相关文章:

c# - 如何将 Case 语句添加到我的 LINQ 查询

mysql - 如何使用 docker 将大型或中等大小的 SQL 转储导入 Mysql/MariaDB

mysql - 嵌套查询——有没有更聪明的方法

cocoa - 是否可以将自定义数据检测器添加到 OSX Cocoa 应用程序? (例如 Mail.app/Safari)

mysql - SQL 查询列别名与 concat 不起作用

php - Laravel更新数据库表设计

macos - 如何在 Mac OS X 上启动 mongodb 服务?

objective-c - 以编程方式从 Mac 钥匙串(keychain)存储和检索私钥

macos - 快速统一标题和工具栏, Storyboard没有标题可见性

macos - NSPopover 内的 NSView : Converting Coordinates