OSX Yosemite 升级后如何让 MySQL 服务器工作? [英] How to get MySQL server working after OSX Yosemite upgrade?

查看:39
本文介绍了OSX Yosemite 升级后如何让 MySQL 服务器工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我将 Mac 从 Mavericks OSX 升级到 Yosemite 后,我的本地 Apache 和 MySQL 服务器设置不再起作用.感谢 Apache localhost/~username/不工作 我刚刚得到了 Apache 服务器工作正常,但我的 Joomla 应用程序现在显示它无法访问 MySQL 数据库;phpmyadmin 工具也不能.

After I upgraded my Mac from Mavericks OSX to Yosemite, my local Apache and MySQL server setup did not work anymore. Thanks to Apache localhost/~username/ not working I just got the Apache server working but my Joomla application now indicates it can't access the MySQL database; neither can the Phpmyadmin tool.

如何解决这个问题?我看过为 Yosemite 安装 MySQL 的说明(https://www.computersnyou.com/3376/setup-apache-php-mysql-macosx-10-10-yosemite/) 但我不确定这是否是我的 Joomla 的最佳前进方式应用程序还需要访问现有的 MySQL 数据库信息吗?例如,我不想丢失现有的各种 Web 应用程序保存的数据库信息....

How to fix this? I've seen instructions for installing MySQL for Yosemite (https://www.computersnyou.com/3376/setup-apache-php-mysql-macosx-10-10-yosemite/) but I'm not sure whether that's the best way forward as my Joomla application still needs to access the existing MySQL db information? E.g., I don't want to lose my existing saved database info of various web applications....

推荐答案

如果你有一个在 Mavericks 上运行的本地版本的 mysql,mysql 首选项面板应该仍然在首选项中可见,只需点击首选项窗格并开始mysql.

If you had a working native version of mysql working on Mavericks, the mysql preference pane should be still visible in the preferences, just click on the preference pane and start mysql.

唯一的问题是 mysql 在启动时不会自动启动,这可以通过以下步骤解决:https://stackoverflow.com/a/26465743/580173

Only problem is that mysql does not auto-start on boot, this can be solved by following these steps: https://stackoverflow.com/a/26465743/580173

这篇关于OSX Yosemite 升级后如何让 MySQL 服务器工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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