简体   繁体   中英

symfony 2 : can't execute data fixture doctrine:fixtures:load

I have project developed with Symfony2.8. It works locally. I am trying to execute doctrine:fixtures:load but I get this error :

在此处输入图片说明

The problem is that your server (wampserver) is not working properly. Indeed the application (Symfony app) is not able to communicate to it via doctrine that is why it display: connection could not be established with localhost... So you simple have to check what is wrong with your localhost server. I suggest:

  • Restart wamp
  • Restart your PC (if restarting wamp does not work)
  • Reinstall wamp (if restarting your PC does not work)
  • Search on web ...(if any of above does not work...)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM