Comments (9)
That's a tiup issue. Try:
tiup -- dumpling -h host
from dumpling.
/severity minor
from dumpling.
So this is the same problem as pingcap/tiup#1488 ?
from dumpling.
They are similar but are not totally the same.
from dumpling.
Looks like tiup -- dumpling
doesn't work anymore.
[dvaneeden@dve-carbon ~]$ tiup -v
1.5.6 tiup
Go Version: go1.16.7
Git Ref: v1.5.6
GitHash: 1d1478dbec0d06ef5e909d3323331914538d4cb0
[dvaneeden@dve-carbon ~]$ tiup dumpling -u foo
Starting component `dumpling`: /home/dvaneeden/.tiup/components/dumpling/v5.2.1/dumpling -u foo
Release version: v5.2.1
Git commit hash: 4e012e54ce89fab9551e7ff58ebcffe57590244a
Git branch: heads/refs/tags/v5.2.1
Build timestamp: 2021-09-08 02:31:43Z
Go version: go version go1.16.4 linux/amd64
[2021/09/30 09:54:13.876 +02:00] [INFO] [versions.go:55] ["Welcome to dumpling"] ["Release Version"=v5.2.1] ["Git Commit Hash"=4e012e54ce89fab9551e7ff58ebcffe57590244a] ["Git Branch"=heads/refs/tags/v5.2.1] ["Build timestamp"="2021-09-08 02:31:43"] ["Go Version"="go version go1.16.4 linux/amd64"]
create dumper failed: sql: SELECT version(): Error 1045: Access denied for user 'foo'@'127.0.0.1' (using password: NO)
Error: run `/home/dvaneeden/.tiup/components/dumpling/v5.2.1/dumpling` (wd:/home/dvaneeden/.tiup/data/SkTl80D) failed: exit status 1
[dvaneeden@dve-carbon ~]$ tiup dumpling -- -u foo
Starting component `dumpling`: /home/dvaneeden/.tiup/components/dumpling/v5.2.1/dumpling -- -u foo
Release version: v5.2.1
Git commit hash: 4e012e54ce89fab9551e7ff58ebcffe57590244a
Git branch: heads/refs/tags/v5.2.1
Build timestamp: 2021-09-08 02:31:43Z
Go version: go version go1.16.4 linux/amd64
meet some unparsed arguments, please check again: [-u foo]
Error: run `/home/dvaneeden/.tiup/components/dumpling/v5.2.1/dumpling` (wd:/home/dvaneeden/.tiup/data/SkTlB5U) failed: exit status 1
from dumpling.
Looks like pingcap/tiup#1549 might have caused tiup
to pass the --
to the component it is calling
from dumpling.
diff --git a/pkg/exec/run.go b/pkg/exec/run.go
index 0d19614..4450da8 100644
--- a/pkg/exec/run.go
+++ b/pkg/exec/run.go
@@ -261,6 +261,12 @@ func launchComponent(ctx context.Context, component string, version utils.Versio
instanceDir = env.LocalPath(localdata.DataParentDir, tag)
}
+ if len(args) > 0 {
+ if args[0] == "--" {
+ args = args[1:]
+ }
+ }
+
params := &PrepareCommandParams{
Ctx: ctx,
Component: component,
This patch for tiup seems to restore the way --
works
from dumpling.
That's a tiup issue. Try:
tiup -- dumpling -h host
thx is work for me
from dumpling.
Close this now because it's a tiup issue.
from dumpling.
Related Issues (20)
- unix_socket support HOT 3
- demo tracking issue
- Improve handling of `START TRANSACTION` with MySQL-like databases HOT 3
- dumpling doesn't get the primary key columns correctly
- Dump with `--sql` fails with i/o timeout after 15m HOT 5
- dump pending on `SHOW TABLE STATUS FROM all_generate_column` HOT 1
- where's the --sql description in help information? HOT 5
- dumpling v5.+ may dump partitioned tables incorrectly because the result of tablesample is inordered HOT 4
- 使用dumpling 备份100g数据,经常出现 invalid connection的问题 HOT 7
- Migrate test-infra to testify
- dump data may be trimmed trailing space HOT 2
- dumpling: help message for -r not accurate HOT 3
- Dumpling should report error if --consistency is lock and --snapshot parameter is provided HOT 3
- dumpling may dump extra data if `--where` is specified HOT 1
- how can i dump data between two snapshots? HOT 2
- dumpling does not create directories by default HOT 7
- dumpling database with -B flag failed HOT 1
- Dumpling cannot export tables on tidb-cloud better HOT 1
- Optimize the logic of exporting data from aurora using dumpling, so as not to affect the performance of aurora
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dumpling.