2015-04-17 86 views

回答

1

您鏈接的文件說:

--server1=<source> 

Connection information for the first server in the format: <user>[:<passwd>]@<host>[:<port>][:<socket>] or <login-path>[:<port>][:<socket>]. 

--server2=<source> 

Connection information for the second server in the format: <user>[:<passwd>]@<host>[:<port>][:<socket>] or <login-path>[:<port>][:<socket>]. 

所以你可以嘗試 mysqldiff --server1 =根:[YOURPASSWORDHERE] @localhost --server2 =根:[YOURPASSWORDHERE] @localhost --difftype = SQL old_db:db_brand_new

+0

yes that worked !, thanks –

+1

這將密碼存儲在shell命令歷史記錄中。這不好。 –

相關問題