1,根据服务器情况下载server rpm和client rpm 下载地址http://dev.mysql.com/downloads/mysql/5.1.html
2,linux下执行rpm -ivh MySQL-server-community-5.1.58-1.rhel5.x86_64.rpm
Preparing... ########################################### [100%]
1:MySQL-server-community ########################################### [100%]
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 tc_132_16 password 'new-password'
Alternatively you can run:
/usr/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.
Please report any problems with the /usr/bin/mysqlbug script!
Starting MySQL.[ OK ]
Giving mysqld 2 seconds to start
netstat -nat
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
mysql服务已经启动
有冲突报请使用rpm -e --nodeps mysql-libs-5.1.52-1.el6_0.1.x86_64先卸载在安装。
3 ,安装客户端,执行rpm -ivh MySQL-client-community-5.1.58-1.rhel5.x86_64.rpm
Preparing... ########################################### [100%]
1:MySQL-client-community ########################################### [100%]
执行mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.58-community MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
安装成功
4, 默认mysql安装完成后是没有密码的,
执行usr/bin/mysqladmin -u root password 'newpassword'
修改密码
连接mysql -uroot -pnewpassword
成功
安装mysql完成
重启mysql可以通过service mysqld restart完成
分享到:
相关推荐
安装文件:MySQL-server-5.1.62-1.glibc23.i386.rpm # rpm -ivh /software/mysql/MySQL-server-5.1.62-1.glibc23.i386.rpm 这是在/usr/share/mysql 目录下生成一些 文件,其中有一个文件名为:my-medium.cnf 将其...
1、把以下5个rpm上传到/home/soft/mysql目录 2、执行rpm安装 #rpm -ivh mysql-*.rpm --force --nodeps 3、安装完成后执行以下命令查询mysql root帐号密码 #grep 'temporary password' /var/log/mysqld.log 没拿到,...
在Linux 系统下使用RPM 安装方式 ,其中使用到的资源文件,版本是mysql5.7 包含的资源文件: mysql-community-client-5.7.16-1.el7.x86_64.rpm mysql-community-common-5.7.16-1.el7.x86_64.rpm mysql-community-...
linux的mysql安装文件rpm版,安装过程可以看博客
Linux下安装Mysql数据库; Linux mysql rpm安装包 Linux mysql安装教程
linux下mysql(rpm)安装使用手册
Linux系统MySQL(rpm版)安装文件,可直接用来下载安装mysql
Linux下安装MySQL所需rpm包 客户端 ,由于文件过大,客户端跟服务器端分开上传了
linux平台安装mysql所需的rpm包,包括client、server、devel等
rpm文件是Red Hat公司开发的软件安装包,rpm可让Linux在安装软件包时免除许多复杂的手续。该命令在安装时常用的参数是 –ivh ,其中i表示将安装指定的rmp软件包,V表示安装时的详细信息,h表示在安装期间出现“#”...
linux下如何彻底卸载RPM或yum安装的mysql
Linux 使用rpm方式安装mysql,供大家参考学习使用!,附详细安装配置过程,以及问题处理等
linux下mysqlrpm安装使用手册.pdf
1. http://dev.mysql.com/Downloads/MySQL-5.6/MySQL-server-5.6.21-1.rhel5.x86_64.rpm 2. http://dev.mysql.com/Downloads/MySQL-5.6/MySQL-devel-5.6.21-1.rhel5.x86_64.rpm 3. ...
Linux下MySQL安装,rpm包、zip包都有
rpm文件是Red Hat公司开发的软件安装包,rpm可让Linux在安装软件包时免除许多复杂的手续。该命令在安装时常用的参数是 –ivh ,其中i表示将安装指定的rmp软件包,V表示安装时的详细信息,h表示在安装期间出现“#”...
国产麒麟系统KylinOS 安装MySQL 8.0-RPM包安装操作手册
Linux MySQL 5.0 rpm包,几乎绝版了,SpagoBI必须搭档,非常好用。
linux Mysql5.17.rpm,其中包括了server端和client端 是做测试的好东西
Linux下RPM方式安装MySQL5.7.pdf Linux下RPM方式安装MySQL5.7.pdf