当前位置: 技术问答>linux和unix
linux下装mysql问题
来源: 互联网 发布时间:2015-05-29
本文导语: 我下了mysql-standard-4.0.15-pc-linux-i686.tar.gz,解压后在scripts目录下 执行./mysql_install_db, 提示./mysql_install_db: my_print_defaults: command not found Didn't find ./bin/mysqld You should do a 'make install' befor...
我下了mysql-standard-4.0.15-pc-linux-i686.tar.gz,解压后在scripts目录下
执行./mysql_install_db,
提示./mysql_install_db: my_print_defaults: command not found
Didn't find ./bin/mysqld
You should do a 'make install' before executing this script
但是在../scripts 和.../mysql目录下都根本make不了啊,说没有target
艾,装了n次了,都搞不定,在linux下装mysql到底该怎样弄啊,我也试过MySQL-3.22.22-1.i386.rpm -ivh 报错说Segmentation fault,不知道是什么意思?
MySQL-4.0.15-0.src.rpm也试过,不行。
请教大侠们到底在linux下面怎么装mysql啊?
执行./mysql_install_db,
提示./mysql_install_db: my_print_defaults: command not found
Didn't find ./bin/mysqld
You should do a 'make install' before executing this script
但是在../scripts 和.../mysql目录下都根本make不了啊,说没有target
艾,装了n次了,都搞不定,在linux下装mysql到底该怎样弄啊,我也试过MySQL-3.22.22-1.i386.rpm -ivh 报错说Segmentation fault,不知道是什么意思?
MySQL-4.0.15-0.src.rpm也试过,不行。
请教大侠们到底在linux下面怎么装mysql啊?
|
新版本要这么做
rpm mysql安装包
shell> groupadd mysql(不要变这个名字)
shell> useradd -g mysql mysql(不要变这个名字)
shell> cd /usr/local/mysql
shell> scripts/mysql_install_db
shell> chown -R root /usr/local/mysql
shell> chown -R mysql /usr/local/mysql/var
shell> chgrp -R mysql /usr/local/mysql
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> /usr/local/mysql/bin/mysqld_safe --user=mysql &
(/etc/rc.d/init.d/mysql start)
rpm mysql安装包
shell> groupadd mysql(不要变这个名字)
shell> useradd -g mysql mysql(不要变这个名字)
shell> cd /usr/local/mysql
shell> scripts/mysql_install_db
shell> chown -R root /usr/local/mysql
shell> chown -R mysql /usr/local/mysql/var
shell> chgrp -R mysql /usr/local/mysql
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> /usr/local/mysql/bin/mysqld_safe --user=mysql &
(/etc/rc.d/init.d/mysql start)
|
安装完了可能需要重新启动一次计算机,
另外,如果用RPM的话,则需要在服务中打勾,再充气一次.
另外,如果用RPM的话,则需要在服务中打勾,再充气一次.