使MySQL在OSX 10.7 Lion上运行 [英] Getting MySQL working on OSX 10.7 Lion
问题描述
我目前正在尝试让MySQL在OSX 10.7 Lion上运行.我尝试了冲泡方式:
I'm currently trying to get MySQL working on OSX 10.7 Lion. I tried the brew way:
brew install mysql
-> cmake -> no problems
-> make -> no problems
-> make install -> no problems
-> done
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
Installing MySQL system tables...
/usr/local/bin/mysql_install_db: line 428: 15397 Done { echo "use mysql;"; cat $create_system_tables $fill_system_tables; }
15398 Done(141) | eval "$filter_cmd_line"
15401 Segmentation fault: 11 | $mysqld_install_cmd_line > /dev/null
Installation of system tables failed! Examine the logs in
/usr/local/var/mysql for more information.
有人让mysql在Lion上运行吗?
Did anyone get mysql to run on Lion?
推荐答案
您可以直接从MySQL下载MySQL安装程序作为DMG文件,包括安装程序,系统偏好设置窗格和启动脚本.转到 MySQL的社区服务器下载页面,选择Mac OS X作为平台并选择DMG文件.
You can download a MySQL installer as a DMG file, complete with an installer, system preferences pane and a startup script directly from MySQL. Go to MySQL's community server download page, select Mac OS X as the platform and pick the DMG file.
您可以跳过注册表格(注册表格下方有一个小链接),并且应该在路上.
You can skip the registration form (there a little link under the signup form) and you should be on your way.
下载文件后,双击DMG,启动安装程序并完成安装.然后,使用其安装程序安装启动脚本,最后双击首选项窗格.我强烈建议选择为计算机上的所有用户安装它.
Once the file is downloaded, double-click on the DMG, launch the installer and complete the installation. After that, install the startup script using its installer and finally the preferences pane by double-clicking on it. I highly recommend choosing to install it for all users on the computer.
与从源代码进行编译相比,您会发现这种方法要容易得多.
You'll find this way much easier than compiling from source.
如果您需要出色的OS X工具来管理MySQL数据库,则应查看 Sequel Pro .
You should check out Sequel Pro if you need a great OS X tool to manage your MySQL databases.
这篇关于使MySQL在OSX 10.7 Lion上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!