yunfei@yunfei-ThinkPad-Edge:~/mysql-5.5.27$ sudo bash scripts/mysql_install_db --user=mysql
FATAL ERROR: Could not find mysqld
The following directories were searched:
/usr/libexec
/usr/sbin
/usr/bin
If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.
安网上的方法装mysql http://markhai-85.iteye.com/blog/1560271 装到bash scripts/mysql_install_db --user=mysql 的 时候出的问题
刚学多多见谅
初装mysql5.5.27遇到问题求助
-
- 帖子: 7
- 注册时间: 2012-09-15 10:04
- 系统: Win7 and Ubuntu
- b33e
- 帖子: 3864
- 注册时间: 2011-06-07 14:20
- 系统: Mint18
-
- 论坛版主
- 帖子: 5229
- 注册时间: 2007-01-14 16:23
Re: 初装mysql5.5.27遇到问题求助
可能你下载的是源码吧,总之,你还是照着mysql自己带的安装文件做比较好,或者直接apt-get install mysql
这一段是从mysql5.0的源码包里面的install-source里面复制出来的,新版的也差不多的,照着做一般没问题
照做之前,先执行
apt-get build-dep mysql
解决下可能出现的依赖关系
The basic commands that you must execute to install a MySQL source
distribution are:
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
这一段是从mysql5.0的源码包里面的install-source里面复制出来的,新版的也差不多的,照着做一般没问题
照做之前,先执行
apt-get build-dep mysql
解决下可能出现的依赖关系
The basic commands that you must execute to install a MySQL source
distribution are:
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}