在 CentOS 7(Linux)上安装MariaDB,搭建Mysql服务(Centos 7、mysql)
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了在 CentOS 7(Linux)上安装MariaDB,搭建Mysql服务(Centos 7、mysql),小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1517字,纯文字阅读大概需要3分钟。
内容图文
![在 CentOS 7(Linux)上安装MariaDB,搭建Mysql服务(Centos 7、mysql)](/upload/InfoBanner/zyjiaocheng/507/887230f40882477f92575bb9395896fa.jpg)
Remove anonymous users? [Y/n] <– 是否删除匿名用户,回车
Disallow root login remotely? [Y/n] <–是否禁止root远程登录,回车,
Remove test database and access to it? [Y/n] <– 是否删除test数据库,回车
Reload privilege tables now? [Y/n] <– 是否重新加载权限表,回车
初始化MariaDB完成,接下来测试登录
[root@centos001 ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 13
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.00 sec)
MariaDB [(none)]>
完成。
二、配置MariaDB
查看安装
[root@centos001 ~]# rpm -qa | grep mariadb mariadb-libs-5.5.60-1.el7_5.x86_64 mariadb-5.5.60-1.el7_5.x86_64 mariadb-server-5.5.60-1.el7_5.x86_64
修改配置文件
vi /etc/my.cnf
我这里所有配置都默认安装,开启远程登陆权限,使用root用户操作数据就可以了,对数据编码等设置都可以使用root 权限操作的。
在 CentOS 7(Linux)上安装MariaDB,搭建Mysql服务(Centos 7、mysql)
标签:mariadb 直接 int 5.6 hat tps current loading ppi
本文系统来源:https://www.cnblogs.com/sopcce/p/10832305.html
内容总结
以上是互联网集市为您收集整理的在 CentOS 7(Linux)上安装MariaDB,搭建Mysql服务(Centos 7、mysql)全部内容,希望文章能够帮你解决在 CentOS 7(Linux)上安装MariaDB,搭建Mysql服务(Centos 7、mysql)所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。