弹指神通MariaDB——MariaDB与MySQL各版本的区别

转载请注明出处:http://blog.csdn.net/dongdong9223/article/details/86645690
本文出自【我是干勾鱼的博客

Ingredients:

1 MariaDB的性质

MariaDB从MySQL衍生而来,作为完全开源的一款数据库产品。关于MariaDB更详细的信息其实是在MariaDB.org中。在MariaDB download中也做了详细的说明了MariaDB的性质:

MariaDB is free and open source software

The MariaDB database server is published as free and open source software under the General Public License version 2. You can download and use it as much as you want free of charge. All use of the binaries from mariadb.org is at your own risk as stated in the GPLv2. While we do our best to make the world’s best database software, the MariaDB Foundation does not provide any guarantees and cannot be hold liable for any issues you may encounter. The MariaDB Foundation does not provide any help or support.

If you intend to run MariaDB database server in production we recommend purchasing a subscription from MariaDB Corporation, or any of the other commercial support providers in the MariaDB ecosystem. There are many resources you can use to learn MariaDB and support yourself or get peer support online.

这里面说明了MariaDB遵循GPLv2协议,其实说的就是MariaDB完全开源,全部免费,但是不对使用者承担任何责任。

2 MariaDB与MySQL各版本之间的对应关系

目前MariaDB最新的版本是MariaDB 10.3,里面的List of All MariaDB 10.3 Releases中则介绍了目前已有的MariaDB的版本,而Comparison with MySQL则简单介绍了目前比较新的MariaDB与MySQL版本之间的区别。

System Variable Differences between MariaDB and MySQL中讲解了MariaDB与MySQL各版本之间的区别。里面赫然有一条System Variable Differences Between MariaDB 5.5 and MySQL 5.5,能感觉出MariaDB直到5.5版本均依照MySQL的版本

3 查看MariaDB版本

3.1 方法1

[root@shizhi002 ~]# mysql -V
mysql  Ver 15.1 Distrib 5.5.60-MariaDB, for Linux (x86_64) using readline 5.1

3.2 方法2

[root@shizhi002 ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 525
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.

3.3 方法3

MariaDB [(none)]> status
--------------
mysql  Ver 15.1 Distrib 5.5.60-MariaDB, for Linux (x86_64) using readline 5.1

Connection id:		525
Current database:	
Current user:		root@localhost
SSL:			Not in use
Current pager:		stdout
Using outfile:		''
Using delimiter:	;
Server:			MariaDB
Server version:		5.5.60-MariaDB MariaDB Server
Protocol version:	10
Connection:		Localhost via UNIX socket
Server characterset:	latin1
Db     characterset:	latin1
Client characterset:	utf8
Conn.  characterset:	utf8
UNIX socket:		/var/lib/mysql/mysql.sock
Uptime:			13 days 23 hours 16 min 22 sec

Threads: 1  Questions: 33739  Slow queries: 0  Opens: 142  Flush tables: 2  Open tables: 83  Queries per second avg: 0.027
--------------

参考

MariaDB.com

MariaDB.org

System Variable Differences between MariaDB and MySQL

MariaDB 版本

  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: MariaDBMySQL都是开源关系型数据库管理系统,但MariaDB具有比MySQL更多高级功能和更快的性能。MariaDB的主要优势是更新更快,支持更多的存储引擎,支持更多的特性,提供更好的安全性和可扩展性。 ### 回答2: MariaDBMySQL都是关系型数据库管理系统(RDBMS),它们具有很多共同点,但也有一些区别。 首先,MariaDB是由MySQL的原始开发者创办的,旨在成为MySQL的替代品。因此,MariaDBMySQL具有很高的兼容性。几乎所有的MySQL应用程序都可以无缝地迁移到MariaDB上。 其次,MariaDB在某些方面提供了更多的功能和性能优化。例如,MariaDB引入了一些新的存储引擎,如XtraDB(InnoDB的增强版)和Aria(MyISAM的替代品),这些引擎提供更好的性能和可靠性。此外,MariaDB还引入了一些新的特性,如动态列和在线ALTER TABLE语句。 此外,MariaDBMySQL在源代码的开发和管理上也有所不同。MySQL是由Oracle公司负责维护和开发,而MariaDB则是一个开源项目,由全球开发者社区共同参与开发。这使得MariaDB能够更加灵活和快速地响应用户需求,并且具有更快的发布更新周期。 另外,MariaDBMySQL也在许可证方面有所不同。MySQL使用的是GNU通用公共许可证(GPL),它需要在某些情况下遵守特定的许可条款。而MariaDB使用的是GNU较宽松公共许可证(LGPL),它相对更为灵活。 综上所述,尽管MariaDBMySQL在很多方面非常相似,但它们之间存在一些功能、性能、开发模式和许可证等方面的区别。用户可以根据自己的需求和偏好选择使用其中的一种。 ### 回答3: MariaDBMySQL是两个关系型数据库管理系统,二者确实存在一些区别。 首先,MariaDB是由MySQL的开发者创办的,旨在提供一个开源、高性能的替代选项。因此,从技术上讲,MariaDB可以被视为MySQL的一个分支。 其次,尽管MariaDB是基于MySQL的代码和架构构建的,但它在功能和性能方面进行了一些改进。MariaDB引入了一些新的功能,如存储引擎和查询优化器的改进,以提供更好的性能和稳定性。与MySQL相比,MariaDB在处理复杂查询、并发性能和存储引擎支持方面具有优势。 此外,MariaDB也致力于提供更好的兼容性。尽管MariaDBMySQL在很大程度上兼容,但MariaDB支持一些MySQL不支持的功能和语法。这样,用户可以轻松迁移他们的应用程序,同时享受到新的功能和改进。 最后,值得一提的是,MariaDB是开源的,这意味着任何人都可以访问和修改其源代码。这对于对数据库进行定制和优化的用户来说是一个重要的优势。 总的来说,MariaDBMySQL在许多方面是相似的,但MariaDB在某些功能、性能和兼容性方面提供了一些改进。这使得MariaDB成为许多开发者和组织的首选数据库管理系统。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值