阅读内容

Linux下安装MySQL5.x

[日期:2007-12-06] 来源:mysql  作者:mysql


二.下载rpm安装包,体验快捷安装

下载合适的rpm包到待安装临时目录,比如/home/software/,本文用的是MySQL-server-5.0.22-0.i386.rpm安装包,
安装过程如下:
# cd /home/software
# rpm -ivh MySQL-server-5.0.22-0.i386.rpm
如果提示如下错误:
warning: mysql-3.23.54a-11.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e


error: Failed dependencies:
perl(CGI) is needed by mysql-3.23.54a-11
perl-DBD-MySQL is needed by mysql-3.23.54a-11
则需要加参数,进行强制安装:
# rpm -ivh MySQL-server-5.0.22-0.i386.rpm --force --nodeps
最后如果出现如下提示:
Preparing...             ########################################### [100%]
1:MySQL-server           ########################################### [100%]
071016  9:27:51 [Warning] Asked for 196608 thread stack, but got 126976
071016  9:27:51 [Warning] Asked for 196608 thread stack, but got 126976
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.

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

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting MySQL[  OK  ]
那么恭喜你,安装成功,而且mysql会自动启动。
你可以利用上面的几种方法启动和停止mysql,也可以利用
#service mysql start
#service mysql stop
来启动和停止服务

上一页123下一页  GO



相关资讯       linux mysql 
本文评论       全部评论
发表评论
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款


点评: 字数
姓名:

L
I
N
U
X


GOOGLE搜索
Google