记录问题:linux下安装mariadb(mysql分支)

1.一开始我直接运行命令:

yum install mariadb

发现不能启动服务。

2.安装服务

yum -y install mariadb mariadb-server

3.启动

systemctl start mariadb//启动
systemctl enable mariadb//开机启动

4.设置

mysql_secure_installation

5.登录测试

mysql -u root -p
~]:输入密码
进入以下界面:
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 6
Server version: 5.5.56-MariaDB MariaDB Server

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

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

MariaDB [(none)]>

6.远程登录,在linux服务器搭建好,使用自己的windows电脑登录,提示:

host xxx is  not allow to connect to this mariadb server

解决:权限问题配置

进入mariadb命令行,操作mysql数据库的user表,详见参考博客

配置好之后,可以远程登录mariadb数据库服务器。

7.参考博客

https://www.cnblogs.com/zhanzhan/p/7729981.html

https://blog.csdn.net/ly_dengle/article/details/77835882

猜你喜欢

转载自blog.csdn.net/qq_22656233/article/details/80175912