Welcome 微信登录

首页 / 数据库 / MySQL / Centos 下rpm方式安装MySQL

CentOS/Linux下面用rpm方法安装mysql5.1首先还是要下载,因为我是64位的Linux,所以下载的是64bit的版本,需要下三个文件server和64bit mysql 下载地址MySQL-server-community-5.1.36-0.rhel5.x86_64.rpmhttp://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/MySQL-client-community-5.1.36-0.rhel5.x86_64.rpmhttp://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.stu.edu.tw/pub/Unix/Database/Mysql/MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpmhttp://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.mirror.tw/pub/mysql/32bit和更多下载镜像,请自己上www.mysql.com下载这里预设下载目录为/usr/local/src/依次执行以下命令#下载所需rpm包cd /usr/local/src/wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.stu.edu.tw/pub/Unix/Database/Mysql/wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.mirror.tw/pub/mysql/#开始安装rpm -ivh MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm然后运行一下mysql看是否安装成功mysql提示:Welcome to the MySQL monitor.  Commands end with ; or g.Your MySQL connection id is 8Server version: 5.1.36-community-log MySQL Community Server (GPL)Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.mysql>即为安装成功修改登录密码:mysqladmin -u root password ‘new-password’格式:mysqladmin -u用户名 -p旧密码 password 新密码再次登录mysql -u root -p 本文来自:http://www.yuwuxing.cn/?p=104在Ubuntu中使用Rails链接OracleOracle11G for Linux 的安装(RHEL5)相关资讯      mysql  CentOS 
  • 数据库服务器 MySQL  (08/15/2013 06:50:23)
  • CentOS /usr/libexec/gconf-sanity  (07/04/2013 17:07:42)
  • 为什么我们选择CentOS而不是Debian  (06/06/2013 06:19:40)
  • CentOS虚拟机NAT静态IP设置  (07/04/2013 17:09:32)
  • CentOS 格式化新硬盘并设置开机自  (07/04/2013 16:50:50)
  • MySQL Administrator连接VMWare下  (05/24/2013 09:20:58)
本文评论 查看全部评论 (0)
表情: 姓名: 字数