- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
我正尝试在 Snow Leopard 上安装 MySQL5,但遇到了一些问题。这是我的终端日志:
users-MacBook-Pro:~ sam$ sudo port install mysql5Password:
---> Computing dependencies for mysql5
---> Fetching mysql5
---> Verifying checksum(s) for mysql5
---> Extracting mysql5
---> Applying patches to mysql5
---> Configuring mysql5
---> Building mysql5
---> Staging mysql5 into destroot
---> Installing mysql5 @5.1.53_0
The MySQL client has been installed.
If you also want a MySQL server, install the mysql5-server port.
---> Activating mysql5 @5.1.53_0
---> Cleaning mysql5
users-MacBook-Pro:~ sam$ sudo port install mysql5-server
Password:
---> Computing dependencies for mysql5-server
---> Fetching mysql5-server
---> Verifying checksum(s) for mysql5-server
---> Extracting mysql5-server
---> Configuring mysql5-server
---> Building mysql5-server
---> Staging mysql5-server into destroot
---> Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting mysql5-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo port load mysql5-server
###########################################################
---> Installing mysql5-server @5.1.53_0
******************************************************
* In order to setup the database, you might want to run
* sudo -u _mysql mysql_install_db5
* if this is a new install
******************************************************
---> Activating mysql5-server @5.1.53_0
---> Cleaning mysql5-server
users-MacBook-Pro:~ sam$ sudo chmod -Rf 777 /opt/local/var/db/mysql
chmod: /opt/local/var/db/mysql: No such file or directory
users-MacBook-Pro:~ sam$ sudo chmod -Rf 777 /opt/local/var/db/mysql5
users-MacBook-Pro:~ sam$ sudo -u _mysql mysql_install_db5
Installing MySQL system tables...
ERROR: 1004 Can't create file '/var/tmp/#sqlf2ef_1_0.frm' (errno: 9)
110125 20:22:45 [ERROR] Aborting
110125 20:22:45 [Note] /opt/local/libexec/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/opt/local/var/db/mysql5 for more information.
You can try to start the mysqld daemon with:
shell> /opt/local/libexec/mysqld --skip-grant &
and use the command line tool /opt/local/lib/mysql5/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /opt/local/lib/mysql5/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /opt/local/var/db/mysql5 that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /opt/local/lib/mysql5/bin/mysqlbug script!
我已尝试修复我的磁盘权限,但似乎没有任何效果:(非常感谢有关如何启动和运行 MySQL 的任何建议!
最佳答案
试试这个:
sudo chown -R mysql:mysql /opt/local/var/db/mysql5
sudo chmod u+rwx,go= /opt/local/var/db/mysql5
sudo /opt/local/lib/mysql5/bin/mysql_install_db --user=mysql
如果您在设置 root 密码时遇到问题,请使用此处的说明重置它:http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-unix
为了启动和停止 mysql 守护程序,我使用以下别名:
alias mysql_start='sudo /opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper start';
alias mysql_stop='sudo /opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper stop';
alias mysql_restart='sudo /opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper restart';
祝你好运!
关于mysql - 使用 MacPorts 在 Snow Leopard 上安装 MySQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4798464/
如果依赖项构建失败,是否也可以安装端口? 我的意思是,我必须安装 texlive,它需要大量依赖项,而其中一个 (py26-libxml2) 无法构建。有办法跳过吗? 我知道它不安全,但我需要它,而且
假设我想将端口重置为其初始状态,包括其配置文件。这可以通过以下方式实现: sudo port uninstall portname sudo port install portname (停用然后重新
port installed 显示本地机器上所有已安装的包,但是有没有办法列出每个包的大小?谢谢! 最佳答案 我不相信 Macports 有一个内置命令来列出你的安装大小,但你可以这样做: 在终端中试
ginnyweasley:~ s66$ sudo port selfupdate Password: ---> Updating MacPorts base sources using rsync
我正在尝试使用 MacPorts 安装 libiconv。当我的 Mac 运行 10.6 时,我需要构建它以在 OS X 10.5 中运行。所以我把这个添加到 macports.conf : maco
有没有办法查看我通过 MacPorts 安装的所有内容? 我知道我已经安装了 Apache 和 php 5.3.8,但我想看看我还安装了哪些内容。 最佳答案 使用已安装的端口列出您的所有端口。 关于m
我坐在机场这里,想出了一些我想尝试的东西,但如果 macports 下载-编译-下载-编译,我没有时间 sudo port install .但是,如果它下载了所有内容,那么我就可以在飞机上对其进行编
我在 mavericks 上安装了 macports,将 macports 标志更改为 +no_x11 -x11 +quartz 然后继续安装geany。现在剪贴板对 geany 根本不起作用。既不在
当尝试通过 Macports 安装 Imagemagick 时,我在构建 perl5.12 依赖项时不断收到错误消息。它说:错误:处理过程中遇到状态 1。 我试过更新 Macports,独立安装/构建
我正在尝试 self 更新我的 Macport,但收到以下消息: Error: /opt/local/bin/port: port selfupdate failed: Error synchroni
我正在尝试从源代码在 Mavericks 上安装 ATLAS(因为我需要 LAPACK/BLAS),因为通过 Macports 安装失败(可能是出于同样的原因?)。尽管多次尝试设置编译器,但仍无法找到
尝试使用以下命令行在我的机器(PPC、Mac OSX 10.5.7)上安装 ruby19 之后 sudo port install ruby19 ruby的版本没变 ruby -v => ruby
最近两次我使用 MacPorts 安装 mysql5 +server ,未安装允许我在启动时启动 MySQL 的 plist。我不记得上次安装时做了什么,如果有的话,我似乎找不到安装它的方法。我错过了
我目前安装了以下 MacPorts: ImageMagick @6.6.4-9_0+q16 ImageMagick @6.6.5-0_0+q16 (active) 如何将 6.6.4 设置为激活状
hansarijanto$ port -v MacPorts 2.0.3 hansarijanto$ xcodebuild -version Xcode 4.3.2 Build version 4E2
如何找到给定文件名的端口名称,更具体地说是可执行文件? Macport网站似乎没有帮助,因为您只能按标题搜索。 谢谢! 最佳答案 不幸的是,MacPorts当前(2.3.1)仅在安装了端口的情况下才支
每次安装新软件包时,我都会看到以下错误消息: ---> Found 1 broken file(s), matching files to ports Warning: No port py24-s
我想使用 macports 安装节点。 但是它根本不起作用: $ sudo port install nodejs Password: ---> Computing dependencies for
我的某个端口有问题。它编译并安装得很好(port install webkit-gtk),实际问题稍后出现(某个符号没有编译到库中,但细节在这里并不重要)。 为了调试和修复此问题,我想在安装之前对 w
有人见过这个吗? version:1 :debug:main Executing org.macports.main (p7zip) :debug:main Skipping completed or
我是一名优秀的程序员,十分优秀!