时间:2021-07-01 10:21:17 帮助过:28人阅读
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)]>
完成。
查看安装
[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