Mac 端口 Mysql 安装
我使用 Mac Ports 在 Leopard 上完成了安装。我还通过 Mac Ports 安装了 Mysqld 以与 python 一起使用。我在mysql启动时设置了mysql的密码。一切似乎都很好,除了当我从命令行调用 mysql-start 时,现在我得到了: mysql-start *****密码: 启动MySQL 。成功! demetrius-fords-macbook-pro-17:~ demet8$
我还收到一个系统询问,说明:您希望 mysqld 接受传入通知吗.....
所以我有点认为我正在激活 mysqld,而不是实际的 mysql 命令解释器。我可以使用 mysql-stop 毫无问题地关闭服务器。最后在Python解释器中,当我运行:import MySQLdb时,我得到:
/opt/local/Library/ Frameworks/Python.framework/Versions/2.6/lib /python2.6/site-packages/MySQLdb/__init__.py:34:DeprecationWarning:sets 模块已弃用 from set import ImmutableSet
我认为这不会影响 mysqld @ all。我通过 bash_login 的路径中没有 mysql 默认套接字。我需要这样做吗?谢谢....
I completed my install on Leopard with Mac Ports. I also installed Mysqld via Mac Ports for use with python. I set the password for mysql on mysql start. Everything seemed to be fine except when I invoke mysql-start from the command line now I get this: mysql-start
*****Password:
Starting MySQL
. SUCCESS!
demetrius-fords-macbook-pro-17:~ demet8$
I also get a system que stating:Do you want mysqld to accepting incoming notifications.....
So I kinda think I am activating mysqld, not the actual mysql command interpreter. I can use mysql-stop with no problem to shut the server down. Lastly in the Python interpreter when I run: import MySQLdb I get this:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
I don't think this affects mysqld @ all. I don't have the mysql default socket in my path via bash_login. Do I need to do that? thank you....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
客户端的命令通常是 mysql (参见 MySql 文档) 但是在 macports 中,他们附加了主要版本号,所以尝试 mysql5
python 错误只是一个折旧,所以可以忽略
The command for the client is normally mysql (see MySql docs) However in macports they have appended the major version number so try mysql5
The python error is only a depreciation so can be ignored