linux系统rpm包安装mysql

2025-11-23 11:16:38

1、cd /tmp

如果是linux5版本的:

# CentOS 5.x

wget http://mirrors.163.com/.help/CentOS5-Base-163.repo

如果是linux6版本的:

# CentOS 6.x

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

下载好之后就会在/tmp下有一个CentOS*-Base-163.repo的文件执行下面操作:

linux系统rpm包安装mysql

2、接下来执行|yum clean allyum makecache然后执行下面的命令安装mysql:

linux系统rpm包安装mysql

3、最后就是享受你的mysql带来的乐趣:

[root@db02 ~]# mysql -uroot -p

Enter password: 

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 728

Server version: 5.7.9-log Source distribution

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;

+--------------------+

| Database           |

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:189
  • 阅读量:91
  • 阅读量:96
  • 阅读量:160
  • 阅读量:34
  • 猜你喜欢