1. <legend id='PXMk9'><style id='PXMk9'><dir id='PXMk9'><q id='PXMk9'></q></dir></style></legend>
      • <bdo id='PXMk9'></bdo><ul id='PXMk9'></ul>

      <small id='PXMk9'></small><noframes id='PXMk9'>

        <i id='PXMk9'><tr id='PXMk9'><dt id='PXMk9'><q id='PXMk9'><span id='PXMk9'><b id='PXMk9'><form id='PXMk9'><ins id='PXMk9'></ins><ul id='PXMk9'></ul><sub id='PXMk9'></sub></form><legend id='PXMk9'></legend><bdo id='PXMk9'><pre id='PXMk9'><center id='PXMk9'></center></pre></bdo></b><th id='PXMk9'></th></span></q></dt></tr></i><div id='PXMk9'><tfoot id='PXMk9'></tfoot><dl id='PXMk9'><fieldset id='PXMk9'></fieldset></dl></div>

        <tfoot id='PXMk9'></tfoot>
      1. 如何让数据库在 Symfony 上运行

        How can I get a database running on Symfony(如何让数据库在 Symfony 上运行)
        • <legend id='L3YYw'><style id='L3YYw'><dir id='L3YYw'><q id='L3YYw'></q></dir></style></legend>
          <tfoot id='L3YYw'></tfoot>

          1. <small id='L3YYw'></small><noframes id='L3YYw'>

            • <bdo id='L3YYw'></bdo><ul id='L3YYw'></ul>

                    <tbody id='L3YYw'></tbody>

                  <i id='L3YYw'><tr id='L3YYw'><dt id='L3YYw'><q id='L3YYw'><span id='L3YYw'><b id='L3YYw'><form id='L3YYw'><ins id='L3YYw'></ins><ul id='L3YYw'></ul><sub id='L3YYw'></sub></form><legend id='L3YYw'></legend><bdo id='L3YYw'><pre id='L3YYw'><center id='L3YYw'></center></pre></bdo></b><th id='L3YYw'></th></span></q></dt></tr></i><div id='L3YYw'><tfoot id='L3YYw'></tfoot><dl id='L3YYw'><fieldset id='L3YYw'></fieldset></dl></div>
                  本文介绍了如何让数据库在 Symfony 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  目标:

                  我正在尝试使用 Symfony 中的学说简单地创建一个数据库.我的项目安装在 xampp>htdocs

                  我已经尝试过:

                  我的 apache 服务器正在运行,可以在本地查看我的网站没问题.
                  当我按照

                  解决方案

                  解决方案:

                  Windows 10 在 Xampp 文件夹中有两个文件,文件名为.ini".扩展,也不是你需要的.取消注释其中的内容对我没有任何帮助.它不会添加模块.

                  在 Windows 10 上,您需要查看C:Xamppphp"对于名为配置"的文件.它与 ini 文件完全一样,但没有扩展名.编辑该文件将启用模块.

                  感谢大家为回答我的问题付出的所有努力.你基本上都是对的.似乎只是缺少 Windows 10 的命名约定.

                  OBJECTIVE:

                  I am trying to simply create a database using doctrine in Symfony. I have my project installed in xampp>htdocs

                  I HAVE TRIED:

                  I have the apache server running and can view my site locally no problem.
                  When I follow the instructions in the documentation, I am able to successfully run these two commands:

                  composer require symfony/orm-pack
                  composer require --dev symfony/maker-bundle  
                  

                  I then go to my .env file and change this line:

                  DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
                  

                  to be this line:

                  DATABASE_URL=mysql://root:pass@127.0.0.1:3306/symphart
                  

                  -I have configured the root user to use the password "pass" and haved logged in to phpmyadmin -successfully.

                  -php.ini-production and php.ini-development both have pdo_mysql enabled

                  THE PROBLEM:

                  When I run the command:

                  php bin/console doctrine:database:create
                  

                  I get the error:

                  C:xampphtdocssymphart>php bin/console doctrine:database:create
                  [error] Error thrown while running command "doctrine:database:create". Message: "An exception occurred in driver: could not find driver"
                  
                  
                  In AbstractMySQLDriver.php line 128:
                  
                    An exception occurred in driver: could not find driver
                  
                  
                  In Exception.php line 18:
                  
                    could not find driver
                  
                  
                  In PDOConnection.php line 37:
                  
                    could not find driver
                  

                  Here is a screenshot of the error message:

                  解决方案

                  SOLUTION:

                  Windows 10 has two files in the Xampp folder with the ".ini" extension, and neither are what you need. Uncommenting stuff in them did nothing for me. It wouldn't add modules.

                  On windows 10 you need to look in "C:Xamppphp" for a file called "configuration". It's exactly like an ini file but has no extension. Editing THAT file will enable modules.

                  Thanks for all the effort everyone put into answering my question. You were all essentially right. Just missing the naming convention for Windows 10 it seems.

                  这篇关于如何让数据库在 Symfony 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                1. <small id='xaFcF'></small><noframes id='xaFcF'>

                  <i id='xaFcF'><tr id='xaFcF'><dt id='xaFcF'><q id='xaFcF'><span id='xaFcF'><b id='xaFcF'><form id='xaFcF'><ins id='xaFcF'></ins><ul id='xaFcF'></ul><sub id='xaFcF'></sub></form><legend id='xaFcF'></legend><bdo id='xaFcF'><pre id='xaFcF'><center id='xaFcF'></center></pre></bdo></b><th id='xaFcF'></th></span></q></dt></tr></i><div id='xaFcF'><tfoot id='xaFcF'></tfoot><dl id='xaFcF'><fieldset id='xaFcF'></fieldset></dl></div>
                  • <bdo id='xaFcF'></bdo><ul id='xaFcF'></ul>
                    <legend id='xaFcF'><style id='xaFcF'><dir id='xaFcF'><q id='xaFcF'></q></dir></style></legend><tfoot id='xaFcF'></tfoot>

                          <tbody id='xaFcF'></tbody>