Home > Database > Mysql Tutorial > Centos 下rpm方式安装MySQL

Centos 下rpm方式安装MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:54:54
Original
999 people have browsed it

Centos/Linux下面用rpm方法安装mysql5.1首先还是要下载,因为我是64位的Linux,所以下载的是64bit的版本,需要下三个文件server和

Linux公社

首页 → 数据库技术

背景:

阅读新闻

Centos 下rpm方式安装MySQL

[日期:2009-07-30] 来源:  作者:yuwuxing [字体:]

CentOS/Linux下面用rpm方法安装mysql5.1

首先还是要下载,因为我是64位的Linux,所以下载的是64bit的版本,需要下三个文件server和

64bit mysql 下载地址

MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm

://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/

MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm

://ftp.stu.edu.tw/pub/Unix/Database/Mysql/

MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm

://ftp.mirror.tw/pub/mysql/

32bit和更多下载镜像,请自己上下载

这里预设下载目录为/usr/local/src/

依次执行以下命令

#下载所需rpm包

cd /usr/local/src/

wget ://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/

wget ://ftp.stu.edu.tw/pub/Unix/Database/Mysql/

wget ://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 8

Server 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

 

本文来自:?p=104

linux

  • 0
  • 在Ubuntu中使用Rails链接Oracle

    Oracle11G for Linux 的安装(RHEL5)

    相关资讯       mysql  CentOS 

    图片资讯      

    本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
    本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。


    Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

    Related labels:
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Latest Issues
    MySQL stops process
    From 1970-01-01 08:00:00
    0
    0
    0
    Error when installing mysql on linux
    From 1970-01-01 08:00:00
    0
    0
    0
    phpstudy cannot start mysql?
    From 1970-01-01 08:00:00
    0
    0
    0
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template