Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help Needed wrt to Mysql #12

Closed
zpratikpathak opened this issue Apr 30, 2024 · 1 comment
Closed

Help Needed wrt to Mysql #12

zpratikpathak opened this issue Apr 30, 2024 · 1 comment

Comments

@zpratikpathak
Copy link

would you please tell me sample env with mySQL database?

I'm using DATABASE_URL="mysql://username:password@host:port/database_name"
but it's giving error

[critical] Error thrown while running command "doctrine:migrations:migrate". Message: "Malformed parameter "url"."

thankyou

@sdkfuyr
Copy link
Collaborator

sdkfuyr commented Apr 30, 2024

Hello!

It is hard to tell without seeing the full mysql connection string.
I can guess there is a symbol like "#" in the password that brakes URL:

For example: # sign is not recognized by PHP's parse_url() function as valid, this issue is not related to Symfony, but to Doctrine DBAL

@sdkfuyr sdkfuyr closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants