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:
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.