ClearDB中如何更新MySQL引擎的版本? [英] How to update the version of the MySQL engine in ClearDB?

查看:69
本文介绍了ClearDB中如何更新MySQL引擎的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,heroku 仅适用于 postgreSQL 数据库.但是,有一个 ClearDB 插件允许您使用 MySQL 数据库.问题是这个插件使用了旧版本的 MySQL 5.5.62 引擎.使用 MySQL Workbench 连接服务器时,出现警告

By default, heroku only works with the postgreSQL database. However, there is a ClearDB plugin that allows you to use a MySQL database. The problem is that this plugin uses the old version of the MySQL 5.5.62 engine. When connecting to the server using MySQL Workbench, a warning appears

检测到不兼容/非标准的服务器版本或连接协议 (5.5.62).可以建立与该数据库的连接,但由于该数据库与受支持的 MYSQL 版本不完全兼容,因此某些 MYSQL Workbench 功能可能无法正常工作.MYSQL Workbench 是针对 MYSQL Server 5.6、5.7 和 8.0 版本开发和测试的

Incompatible/nonstandard server version or connection protocol detected (5.5.62). A connection to this database can be established but some MYSQL Workbench features may not work properly since the database is not fully compatible with the supported versions of MYSQL. MYSQL Workbench is developed and tested for MYSQL Server version 5.6, 5.7 and 8.0

我尝试创建一个新的数据库,使用命令明确指出引擎的版本:

I tried to create a new database, clearly indicating the version of the engine using the command:

heroku addons:create cleardb:ignite --version=5.7

然而,这并没有帮助,同样的警告仍然出现.ClearDB中如何更新MySQL引擎的版本?

However, this did not help, the same warning still appears. How to update the version of the MySQL engine in ClearDB?

推荐答案

更新.3 月 26 日,我尝试了这个:

An update. On March 26, I tried this:

$ heroku addons:create cleardb:ignite --name=my-db-name --version=5.7

正如 Heroku DOC 上所说:

As it says on Heroku DOC:

ClearDB 在我们新的 G5 基础架构上默认配置 MySQL 5.6,但我们支持 MySQL 5.5、5.6 和 5.7.如果您希望使用上述 MySQL 版本的特定版本,只需将版本参数指定给 heroku addons:create 命令

ClearDB provisions MySQL 5.6 by default on our new G5 infrastructure, but we support MySQL 5.5, 5.6, and 5.7. If you wish to use a specific version of the aforementioned MySQL versions, simply specify the version argument to the heroku addons:create command

但是,它不适用于他们的 ignite(共享)计划.SHOW VARIABLES LIKE %version%"; 输出:

However, it does not work for their ignite (shared) plan. The SHOW VARIABLES LIKE "%version%"; outputs:

innodb_version            5.5.62
protocol_version          10
slave_type_conversions    ""
version                   5.5.62-log
version_comment           MySQL Community Server (GPL)
version_compile_machine   x86_64
version_compile_os        Linux


替代解决方案:

我使用了另一个名为 JAWSDB 的插件.它的工作方式与 ClearDB 的工作方式相同,您可以以相同的方式安装它.正如他们在 DOC 中所说:


Alternative Solution:

I used another addon called JAWSDB. It works the same way that ClearDB works and you can install it the same way. As they say in their DOC:

JawsDB 用户可以通过指定 --version 标志在配置时选择他们的数据库版本.目前支持 5.7 和 8.0 版本.如果未提供版本标志,则将使用默认数据库版本.当前默认数据库版本为 5.7

JawsDB users can choose their database version at provision time by specifying a --version flag. Versions 5.7 and 8.0 are currently supported. If no version flag is supplied, the default database version will be used. The current default database version is 5.7

所以,这个命令工作得很好:

So, this command worked just fine:

$ heroku addons:create jawsdb:kitefin --name=my-db-name --version=5.7

SHOW VARIABLES LIKE %version%"; 输出:

innodb_version            5.7.23
protocol_version          10
slave_type_conversions    ""
tls_version               TLSv1,TLSv1.1,TLSv1.2
version                   5.7.23-log
version_comment           Source distribution
version_compile_machine   x86_64
version_compile_os        Linux

这两个插件几乎没有区别.您可以在 Plans & 下检查每个功能中获得的功能.ClearDBJawsDB.

There is almost no difference between these two addons. You can check the features you get in each under the Plans & Pricing section in ClearDB and JawsDB.

这篇关于ClearDB中如何更新MySQL引擎的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆