使用 Zend Framework 切换到 MariaDB
我一直在开发一个网站
MySQL client version: 5.1.41
Server version: 5.1.41
并且我一直在考虑部署到生产服务器上可能是迁移到 maria db (Ubuntu Lucid Lynx) 的最佳时机
我需要在应用程序配置中更改哪些设置
resources.multidb.front_db.adapter = "pdo_mysql"
resources.multidb.front_db.charset = "utf8"
resources.multidb.front_db.host = localhost
resources.multidb.front_db.username = root
resources.multidb.front_db.password = ****
resources.multidb.front_db.dbname = ****
resources.multidb.front_db.default = true
我只需要用 pdo_mariadb 替换 pdo_mysql? (有这样的适配器吗?)
我可以在mysql中创建我的数据库(主要是innoDB,一些MyISAM和一些视图)的转储并导入然后将其导入mariadb吗?
还有什么我应该注意的吗?
I've been developing a site on
MySQL client version: 5.1.41
Server version: 5.1.41
And I've been considering the deployment onto the production server could be the best time to migrate to maria db (Ubuntu Lucid Lynx)
What settings do I need to change in my application config
resources.multidb.front_db.adapter = "pdo_mysql"
resources.multidb.front_db.charset = "utf8"
resources.multidb.front_db.host = localhost
resources.multidb.front_db.username = root
resources.multidb.front_db.password = ****
resources.multidb.front_db.dbname = ****
resources.multidb.front_db.default = true
Would I just need to replace pdo_mysql with pdo_mariadb? (is there such an adapter?)
Can I create the dump of my database(mainly innoDB,a few MyISAM and a some views) in mysql and import then import it into mariadb?
Anything else I should lookout for?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MariaDB 是 MySQL 的二进制替代品 (来源< /a>)
mariadb 没有 pdo 适配器,您使用 pdo_mysql,据 PHP 所知,就是这样。
就数据转换而言,我可能只使用 mysqldump (或 phpMyAdmin)来移动数据,并手动将您想要手动转换的表转换为 mariadb 的备用存储引擎。
祝你好运!我还没有机会在生产中使用 mariadb,但我非常渴望有一个借口。
MariaDB is a binary drop in replacement for MySQL (source)
There is no pdo adapter for mariadb, you use pdo_mysql and as far as PHP knows, that's what it is.
As far as data conversion goes, I would probably just use mysqldump (or phpMyAdmin) to move the data, and manually convert which ever tables you want to convert by hand to mariadb's alternate storage engine(s).
Good luck! I haven't had the opportunity to use mariadb in production, but I'm dying for an excuse to.