如何将 symfony 3 与 mariadb 和教义一起使用? [英] How can i use symfony 3 with mariadb and doctrine?

查看:22
本文介绍了如何将 symfony 3 与 mariadb 和教义一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 mariadb 中使用 symfony 3?

How can i use symfony 3 with mariadb?

但我也想使用学说,但我没有看到任何有用的信息http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#sqlanywhere

But i want to use doctrine also but i did not see any useful information on http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#sqlanywhere

所以请指导或提供正确的文章链接谢谢.

So please guide or provide proper article link thanks.

推荐答案

如果你让教义:schema:update 一次又一次地显示相同的迁移,请考虑将其添加到您的配置中:

If you get doctrine:schema:update to show the same migrations again and again, consider adding this to your config:

doctrine:
    dbal:
        server_version: 'mariadb-X.X.X'

将 X.X.X 替换为安装在执行机器上的真实版本的 mariadb.

Replacing X.X.X with the real version of mariadb installed on the executing machine.

这篇关于如何将 symfony 3 与 mariadb 和教义一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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