Skip to content

Commit 2420bc1

Browse files
committed
add mysql examples into commadline help
1 parent d0572cd commit 2420bc1

8 files changed

+26
-2
lines changed

Sources/SqlDatabase/Configuration/CommandLine.create.net452.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ example: create new "NewDatabase" on MSSQL "server" based on scripts from "C:\Ne
3535
example: create new "NewDatabase" on PostgreSQL "server" based on scripts from "C:\NewDatabase" with "Variable1=value1" and "Variable2=value2"
3636
> SqlDatabase create "-database=Host=localhost;Username=postgres;Database=NewDatabase" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2
3737

38+
example: create new "NewDatabase" on MySQL "server" based on scripts from "C:\NewDatabase" with "Variable1=value1" and "Variable2=value2"
39+
> SqlDatabase create "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2
40+
3841
example: use previous example with -whatIf options to show steps without execution
3942
> SqlDatabase create "-database=Data Source=server;Initial Catalog=NewDatabase;Integrated Security=True" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2 -whatIf

Sources/SqlDatabase/Configuration/CommandLine.create.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ example: create new "NewDatabase" on MSSQL "server" based on scripts from "C:\Ne
3838
example: create new "NewDatabase" on PostgreSQL "server" based on scripts from "C:\NewDatabase" with "Variable1=value1" and "Variable2=value2"
3939
> SqlDatabase create "-database=Host=localhost;Username=postgres;Database=NewDatabase" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2
4040

41+
example: create new "NewDatabase" on MySQL "server" based on scripts from "C:\NewDatabase" with "Variable1=value1" and "Variable2=value2"
42+
> SqlDatabase create "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2
43+
4144
example: use previous example with -whatIf options to show steps without execution
4245
> SqlDatabase create "-database=Data Source=server;Initial Catalog=NewDatabase;Integrated Security=True" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2 -whatIf

Sources/SqlDatabase/Configuration/CommandLine.execute.net452.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@ example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on MSSQL "
4242
example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on PostgreSQL "server" with "Variable1=value1" and "Variable2=value2"
4343
> SqlDatabase execute "-database=Host=localhost;Username=postgres;Database=MyDatabase" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2
4444

45+
example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on MySQL "server" with "Variable1=value1" and "Variable2=value2"
46+
> SqlDatabase execute "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2
47+
4548
example: use previous example with -whatIf options to show steps without execution
4649
> SqlDatabase execute "-database=Data Source=server;Initial Catalog=MyDatabase;Integrated Security=True" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2 -whatIf

Sources/SqlDatabase/Configuration/CommandLine.execute.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@ example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on MSSQL "
4545
example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on PostgreSQL "server" with "Variable1=value1" and "Variable2=value2"
4646
> SqlDatabase execute "-database=Host=localhost;Username=postgres;Database=MyDatabase" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2
4747

48+
example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on MySQL "server" with "Variable1=value1" and "Variable2=value2"
49+
> SqlDatabase execute "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2
50+
4851
example: use previous example with -whatIf options to show steps without execution
4952
> SqlDatabase execute "-database=Data Source=server;Initial Catalog=MyDatabase;Integrated Security=True" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2 -whatIf

Sources/SqlDatabase/Configuration/CommandLine.export.net452.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,7 @@ example: export data from sys.tables view into "c:\tables.sql" from "master" dat
4040
> SqlDatabase export "-database=Data Source=server;Initial Catalog=master;Integrated Security=True" "-fromSql=SELECT * FROM sys.tables" -toFile=c:\tables.sql
4141

4242
example: export data from information_schema.tables view into "c:\tables.sql" from "postgres" database on PostgreSQL "server"
43-
> SqlDatabase export "-database=Host=localhost;Username=postgres;Database=postgres" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql
43+
> SqlDatabase export "-database=Host=localhost;Username=postgres;Database=postgres" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql
44+
45+
example: export data from information_schema.tables view into "c:\tables.sql" from "sys" database on MySQL "server"
46+
> SqlDatabase export "-database=Server=localhost;Database=sys;User ID=root;Password=qwerty;" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql

Sources/SqlDatabase/Configuration/CommandLine.export.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,7 @@ example: export data from sys.tables view into "c:\tables.sql" from "master" dat
4040
> SqlDatabase export "-database=Data Source=server;Initial Catalog=master;Integrated Security=True" "-fromSql=SELECT * FROM sys.tables" -toFile=c:\tables.sql
4141

4242
example: export data from information_schema.tables view into "c:\tables.sql" from "postgres" database on PostgreSQL "server"
43-
> SqlDatabase export "-database=Host=localhost;Username=postgres;Database=postgres" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql
43+
> SqlDatabase export "-database=Host=localhost;Username=postgres;Database=postgres" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql
44+
45+
example: export data from information_schema.tables view into "c:\tables.sql" from "sys" database on MySQL "server"
46+
> SqlDatabase export "-database=Server=localhost;Database=sys;User ID=root;Password=qwerty;" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql

Sources/SqlDatabase/Configuration/CommandLine.upgrade.net452.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ example: upgrade "MyDatabase" on MSSQL "server", migration steps from "C:\Migrat
3636
example: upgrade "MyDatabase" on PostgreSQL "server", migration steps from "C:\MigrationSteps" with "Variable1=value1" and "Variable2=value2"
3737
> SqlDatabase upgrade "-database=Host=localhost;Username=postgres;Database=MyDatabase" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2
3838

39+
example: upgrade "MyDatabase" on MySQL "server", migration steps from "C:\MigrationSteps" with "Variable1=value1" and "Variable2=value2"
40+
> SqlDatabase upgrade "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2
41+
3942
example: use previous example with -whatIf options to show steps without execution
4043
> SqlDatabase upgrade "-database=Data Source=server;Initial Catalog=MyDatabase;Integrated Security=True" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2 -whatIf

Sources/SqlDatabase/Configuration/CommandLine.upgrade.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ example: upgrade "MyDatabase" on MSSQL "server", migration steps from "C:\Migrat
3939
example: upgrade "MyDatabase" on PostgreSQL "server", migration steps from "C:\MigrationSteps" with "Variable1=value1" and "Variable2=value2"
4040
> SqlDatabase upgrade "-database=Host=localhost;Username=postgres;Database=MyDatabase" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2
4141

42+
example: upgrade "MyDatabase" on MySQL "server", migration steps from "C:\MigrationSteps" with "Variable1=value1" and "Variable2=value2"
43+
> SqlDatabase upgrade "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2
44+
4245
example: use previous example with -whatIf options to show steps without execution
4346
> SqlDatabase upgrade "-database=Data Source=server;Initial Catalog=MyDatabase;Integrated Security=True" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2 -whatIf
4447

0 commit comments

Comments
 (0)