博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
centos7 安装 mariadb(mysql的一个分支) 的正确命令
阅读量:4299 次
发布时间:2019-05-27

本文共 1469 字,大约阅读时间需要 4 分钟。

今天在centos上安装mysql, 各种不对。。。

首先是这样的,

[root@VM_177_92_centos ~]# yum install mysql已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfile正在解决依赖关系--> 正在检查事务---> 软件包 mariadb.x86_64.1.5.5.44-2.el7.centos 将被 安装

当时我就懵逼了,mariadb是什么鬼???google之才知道,mariadb 是mysql的一个分支,

而centos 7默认使用的是mariadb,哦,好吧。。。。。

后面google之解决问题:

yum -y install mariadb*

[root@VM_177_92_centos ~]# yum -y install mariadb*已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfile软件包 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 已安装并且是最新版本正在解决依赖关系--> 正在检查事务---> 软件包 mariadb.x86_64.1.5.5.44-2.el7.centos 将被 安装

安装后:

[root@VM_177_92_centos ~]# systemctl start mariadb.service[root@VM_177_92_centos ~]#[root@VM_177_92_centos ~]# systemctl enable mariadb.serviceCreated symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

运行:

[root@VM_177_92_centos ~]# mysqlWelcome to the MariaDB monitor.  Commands end with ; or \g.Your MariaDB connection id is 2Server version: 5.5.44-MariaDB MariaDB ServerCopyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]>MariaDB [(none)]>MariaDB [(none)]> show databases;+--------------------+| Database           |+--------------------+| information_schema || mysql              || performance_schema || test               |+--------------------+4 rows in set (0.00 sec)MariaDB [(none)]>

转载地址:http://slvws.baihongyu.com/

你可能感兴趣的文章
git add . git add -u git add -A区别
查看>>
apache下虚拟域名配置
查看>>
session和cookie区别与联系
查看>>
PHP 实现笛卡尔积
查看>>
Laravel中的$loop
查看>>
CentOS7 重置root密码
查看>>
Centos安装Python3
查看>>
PHP批量插入
查看>>
laravel连接sql server 2008
查看>>
Laravel 操作redis的各种数据类型
查看>>
Laravel框架学习笔记之任务调度(定时任务)
查看>>
laravel 定时任务秒级执行
查看>>
浅析 Laravel 官方文档推荐的 Nginx 配置
查看>>
Swagger在Laravel项目中的使用
查看>>
Laravel 的生命周期
查看>>
CentOS Docker 安装
查看>>
Nginx
查看>>
Navicat远程连接云主机数据库
查看>>
Nginx配置文件nginx.conf中文详解(总结)
查看>>
Mysql出现Table 'performance_schema.session_status' doesn't exist
查看>>