PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, November 13, 2022

[FIXED] How to connect to (Plesk Obsidian) database

 November 13, 2022     database, plesk, symfony     No comments   

Issue

I'm trying to connect to my Abonnement Database 'mydatabase' under the localhost.

telnet localhost 3306 is working and connects successfully.

symfony tells me the following error: 'An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution'

if I try to connect without a password it finds the server gives me the correct error message. What is the correct way to connect to Database in Plesk?

Symfony .env

DATABASE_URL=mysql://dbuser:dbpass@localhost:3306/mydatabase

Solution

Ok, after searching many hours i find the solution:

My Database password had incorrect Characters, in my case $ and ?. I think '?' is not allowed in my case. After change the password all is going fine.

Thx for reading and i hope someone need this info as helpful.



Answered By - Daniel Richter
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing