首页 笔记 图片 查字 
所属分类:Linux
浏览:117
内容:

命令:

[root@localhost]  yum -y install -y mariadb

验证:

[root@localhost]  mysql -hlocalhost -uroot -P3306 -p123456


Welcome to the MariaDB monitor.  Commands end with ; or g.

Your MySQL connection id is 312805

Server version: 5.7.37-log Source distribution


Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.


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


MySQL [(none)]> 

MySQL [(none)]> show databases ;

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

| Database           |

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

| information_schema |

| __recycle_bin__    |

| mysql              |

| performance_schema |

| sys                |

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

6 rows in set (0.00 sec)


MySQL [(none)]>