网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

linux系统rpm包安装mysql

时间:2024-11-14 07:22:11

1、cd /tmp如果是linux5版本的:# CentOS 5.xwget http://mirrors.163.com/.help/CentOS5-Base-163.repo如果是linux6版本的:# CentOS 6.xwget 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 -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 728Server version: 5.7.9-log Source distributionCopyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show databases;+--------------------+| Database |

© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com