mirror of
https://github.com/DBDiff/DBDiff.git
synced 2026-04-25 05:15:49 +03:00
[GH-ISSUE #65] A server is required #44
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#44
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 @SteamWind on GitHub (Dec 4, 2017).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/65
Hello, here is my config file:
And here is the cmd I'm trying to run
./dbdiff server1.database:server2.database-prod output=./sql/simple-schema.sqlWhen my config file contain tabulations, it doesn't work (yaml can't contain tabulations). When I remove them, I'm getting the error
A server is required.There is no password for now on the database, does I need to set one to use DBDiff?
Thank you for your reply.
@emente commented on GitHub (Dec 19, 2017):
Last three error messages:
✖ Unkown kind of resources
✖ A server is required
✖ Missing input
These error messages don't point to the problem. They tell you nothing. They are as helpful as "something went wrong".
@aschkenasy commented on GitHub (Dec 25, 2017):
@SteamWind are you sure your config file is named .dbdiff (including period?)
@SteamWind commented on GitHub (Dec 27, 2017):
Yes, sure.
@ghost commented on GitHub (Mar 12, 2018):
@aschkenasy
Ditto here. This command throws the same error: ./dbdiff server1.epos:server2.epos
Here's my .dbdiff (anonymized)
server1:
user: username1
password: password1
port: 3306
host: sql.myserver.com
server2:
user: username2
password: password2
port: 3306
host: 10.50.50.22
template: templates/simple-db-migrate.tmpl
type: schema
include: all
nocomments: true
@alexisbrabo commented on GitHub (Mar 20, 2018):
I have this issue too.
@ghost commented on GitHub (Apr 30, 2018):
It worked for me by using spaces instead of tabs for the intendation in the .dbdiff file.
@burhandodhy commented on GitHub (Apr 30, 2018):
same issue 🤯
@caleb-gosnell commented on GitHub (May 22, 2019):
I was receiving the error "A server is required."
My problem was in .dbdiff I changed "server1" and "server2" to be my actual server names.
After I changed them back, it worked fine.
@goodd21 commented on GitHub (Jul 18, 2019):
have anyone fixed the problem? I tried different intendation and my server names are default ones (server1 and server2) and I still see this error