centos7是装mysql还是mariadb好?
mysql其实和mariadb是个一样的东西,mysql卖给甲骨文后看势头是逐渐走向了闭源,如果考虑到将来版权和升级问题什么最好选mariadb,你要觉得无所谓那选什么都无所谓。centos 默认安装mariadb
mariadb密码忘了怎么办?
1.编辑配置文件,跳过输入密码过程
2.重启服务,进入mariadb服务,设置mysql表密码
3.编辑配置文件,取消跳过输入密码过程
4.重启服务
5.登录
1.vim /etc/my.cnf
编辑配置文件,在[mysqld]下插入下句并保存
skip-grant-tables
2.systemctl restart mariadb.service
mysql
MariaDB [(none)]> use mysql;
MariaDB [(none)]> update user set password=password("123456") where user="root";
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> quit
3.vim /etc/my.cnf 去掉skip-grant-tables并保存
4.systemctl restart mariadb.service
5.mysql -uroot -p123456
linux系统怎么安装mariadb?
它的安装与MySQL的noinstall版本类似。
1.下载并解压noinstall压缩包,假设解压到D:\dev\MariaDB目录下载地址(5.1.44b):fe.up.pt2.创建配置文件my.ini
配置文件一般放在Windows系统目录中(也可以放在你的安装目录内),如C:\WINDOWS或C:\WINNT,名为my.ini。将上面下载后的文件mariadb-noinstall-5.1.44b-win32-beta.zip解压后,在该文件夹中,一般包含5个MySQL自带的配置文件,my-small.ini、my-medium.ini、my-large.ini、my-huge.ini和my-innodb-heavy-4G.ini,请你根据自己机器的内存大小,选择其一,并把它重新命名为my.ini用作基本配置文件。
mysql的版本有哪些?
1. MySQL Community Server 社区版本,开源免费,但不提供官方技术支持。
2. MySQL Enterprise Edition 企业版本,需付费,可以试用30天。
3. MySQL Cluster 集群版,开源免费。可将几个MySQL Server封装成一个Server。
4. MySQL Cluster CGE 高级集群版,需付费。
5. MySQL Workbench(GUI TOOL)一款专为MySQL设计的ER/数据库建模工具。
MySQL: