mirror of
https://github.com/DBDiff/DBDiff.git
synced 2026-04-25 05:15:49 +03:00
[GH-ISSUE #68] Can't connect to target database #47
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DBDiff#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @makopov on GitHub (Dec 29, 2017).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/68
Here is the command I run that generates the above error message:
./dbdiff server1.dev:server2.prodMy .dbcon is setup as such:
This is a test vm and mysql actually has no password set on it so the field is left empty, I'm assuming this isn't the problem?
Its also unclear which of the two databases is the source and which is the target.
Any help would be great.
@mowreyw commented on GitHub (Jan 12, 2018):
I'm also having difficulty connecting to my database using the same parameters which work on the command line. Initially I had some issues with the YAML formatting (which have been resolved), but now I just receive the error message:
✖ Can't connect to target databaseI see the same issue when entering the connection parameters at the command line using the flags
--server1and--server2. However, I these parameters work fine when connecting using the mysql command line tool.@amansoni commented on GitHub (May 22, 2018):
Had the same issue which was resolved by installing the php-mysql libraries. On Ubuntu
sudo apt install php-mysqlwhich resolved to php-mysql7.1@nkagarw commented on GitHub (May 17, 2019):
I'm facing the same issue with php 7.3.5 on Windows 10. How do I install php-mysql dependencies on windows ?
@rajneesh594 commented on GitHub (May 28, 2020):
have u solved it ??
@trajano commented on GitHub (Sep 14, 2020):
I'm having trouble with this as well on Windows. I created a Dockerfile like this
@shaoxp commented on GitHub (Feb 3, 2021):
i resolved this issue by enable mysql extentions in php.ini