免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1905 | 回复: 9
打印 上一主题 下一主题

手动安装mysql失败 帮忙看看是那里出了问题![已经解决] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-05 20:54 |只看该作者 |倒序浏览
具体操作过程如下:
sudo su
grep mysql /etc/passwd
groupadd -g 451 mysql
useradd -u 451 -g 451 -d /usr/local/mysql/ mysql
cd /usr/local/
tar -zvxf /home/mrh/mysql-5.1.23-rc-linux-i686-glibc23.tar.gz
ln -s mysql-5.0.51a-linux-i686-glibc23 mysql
cd mysql/
./scripts/mysql_install_db –user=mysql
chown -R root .
chown -R mysql data
chgrp -R mysql .
bin/mysqld_safe –user=mysql &

到这 ./scripts/mysql_install_db –user=mysql 时 显示如下:

----------------------------------------------------------
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h mrh-desktop password 'new-password'

Alternatively you can run:
./bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available at http://www.mysql.com/
Support MySQL by buying support/licenses from http://shop.mysql.com/

----------------------------------------------------------
一直到 bin/mysqld_safe --user=mysql &  这里就出问题了,mysql运行不了  显示如下:

-----------------------------------
[1] 6585
root@mrh-desktop:/usr/local/mysql# 081106 20:57:26 mysqld_safe Logging to '/usr/local/mysql/data/mrh-desktop.err'.
081106 20:57:26 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

---------------------------------------
root@mrh-desktop:/usr/local/mysql# mysql -u root
程序 'mysql' 尚未安装。  您可以通过输入以下命令安装:
apt-get install mysql-client-5.0
bash: mysql:找不到命令





··············································································································································

原来是我的包有问题 重新下了个包 安装成功  
ubuntu 8.04下
linux+apache+mysql+php配置
地址:http://hi.baidu.com/mrico/blog/item/cc0ae633d892c644ad4b5fdf.html

[ 本帖最后由 mrh111 于 2008-11-10 11:38 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-11-05 20:55 |只看该作者
权限问题,
shell> bin/mysqld_safe --user=mysql &
在这部你是不是用的是root用户啊!

论坛徽章:
0
3 [报告]
发表于 2008-11-05 20:59 |只看该作者
是用的root 用户阿
不用root用户不行的

论坛徽章:
0
4 [报告]
发表于 2008-11-05 21:30 |只看该作者
没人帮我下阿?

[ 本帖最后由 mrh111 于 2008-11-5 21:44 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-11-05 22:39 |只看该作者
希望LZ 发贴的时候把错误提示 , 日志记录,操作过程等都详细的写出来
方便别人帮你忙

论坛徽章:
0
6 [报告]
发表于 2008-11-06 09:08 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
7 [报告]
发表于 2008-11-06 09:20 |只看该作者
原帖由 xwmhmily 于 2008-11-5 22:39 发表
希望LZ 发贴的时候把错误提示 , 日志记录,操作过程等都详细的写出来
方便别人帮你忙


好的 我晚上重新发帖 白天要上班 ,谢谢了

论坛徽章:
0
8 [报告]
发表于 2008-11-06 09:30 |只看该作者
原帖由 mrh111 于 2008-11-5 20:54 发表
groupadd mysql
useradd -g mysql mysql
cd /usr/local
tar zxvf /home/mrh/mysql-5.1.23-rc-linux-i686-glibc23.tar.gz
ln -s /usr/local/mysql-5.1.23-rc-linux-i686-glibc23 mysql
cd mysql
scripts/m ...


把错误日志贴出来看看

论坛徽章:
0
9 [报告]
发表于 2008-11-06 14:19 |只看该作者
原帖由 LEMMONTREE 于 2008-11-6 09:30 发表


把错误日志贴出来看看


这个就是运行后出现的错误

[1] 6931
root@mrh-desktop:/usr/local/mysql# 081105 21:09:03 mysqld_safe Logging to '/usr/local/mysql/data/mrh-desktop.err'.
081105 21:09:03 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
081105 21:09:05 mysqld_safe mysqld from pid file /usr/local/mysql/data/mrh-desktop.pid ended

论坛徽章:
0
10 [报告]
发表于 2008-11-14 12:53 |只看该作者

回复 #1 mrh111 的帖子

是在权限那里出现问题了
你检测一下目录的权限问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP