Build Installer Process: Difference between revisions

From Vision
No edit summary
No edit summary
Line 3: Line 3:


''Dump all the metadata:''
''Dump all the metadata:''
  >mysqldump.exe --no-create-info=TRUE --order-by-primary=FALSE --force=FALSE --no-data=FALSE --tz-utc=TRUE --flush-privileges=FALSE --compress=FALSE --replace=FALSE --insert-ignore=FALSE --extended-insert=FALSE --quote-names=TRUE --hex-blob=FALSE --complete-insert=TRUE --add-locks=TRUE --disable-keys=TRUE --delayed-insert=FALSE --create-options=TRUE --delete-master-logs=FALSE --comments=TRUE --default-character-set=utf8 --max_allowed_packet=1G --flush-logs=FALSE --dump-date=TRUE --lock-tables=TRUE --allow-keywords=FALSE --events=FALSE --host={host} --port=5306 --user=root --password={pwd} --result-file=CreateDB-Data.sql "productivity1"  "rules_category" "rules_master" "screens" "system_extract_points" "system_extracts" "system styles"
<pre>
 
  >mysqldump.exe --no-create-info=TRUE --order-by-primary=FALSE --force=FALSE  
  --no-data=FALSE --tz-utc=TRUE --flush-privileges=FALSE --compress=FALSE  
  --replace=FALSE --insert-ignore=FALSE --extended-insert=FALSE --quote-names=TRUE  
  --hex-blob=FALSE --complete-insert=TRUE --add-locks=TRUE --disable-keys=TRUE  
  --delayed-insert=FALSE --create-options=TRUE --delete-master-logs=FALSE --comments=TRUE  
  --default-character-set=utf8 --max_allowed_packet=1G --flush-logs=FALSE --dump-date=TRUE  
  --lock-tables=TRUE --allow-keywords=FALSE --events=FALSE --host={host} --port=5306  
  --user=root --password={pwd}  
  --result-file=CreateDB-Data.sql  
  "productivity1"  "rules_category" "rules_master" "screens" "system_extract_points"  
  "system_extracts" "system styles"
</pre>
'''Note:''' To dump all the data from a remote server (perhaps for support), remove everything after "productivity1"
'''Note:''' To dump all the data from a remote server (perhaps for support), remove everything after "productivity1"


''Dump the structure:''
''Dump the structure:''
  >mysqldump.exe --no-create-info=FALSE --order-by-primary=FALSE --force=FALSE --no-data=TRUE --tz-utc=TRUE --flush-privileges=FALSE --compress=FALSE --replace=FALSE --host=localhost --insert-ignore=FALSE --quote-names=TRUE --hex-blob=FALSE --complete-insert=TRUE --add-locks=TRUE --disable-keys=TRUE --delayed-insert=FALSE --create-options=TRUE --skip-extended-insert=TRUE --delete-master-logs=FALSE --comments=TRUE --default-character-set=utf8 --max_allowed_packet=1G --flush-logs=FALSE --dump-date=TRUE --lock-tables=TRUE --allow-keywords=FALSE --events=FALSE --routines --result-file=CreateDB-Struct.sql --host={host} --port=5306 --user=root --password={pwd} "productivity1"
<pre>
  >mysqldump.exe --no-create-info=FALSE --order-by-primary=FALSE --force=FALSE  
  --no-data=TRUE --tz-utc=TRUE --flush-privileges=FALSE --compress=FALSE  
  --replace=FALSE --host=localhost --insert-ignore=FALSE --quote-names=TRUE  
  --hex-blob=FALSE --complete-insert=TRUE --add-locks=TRUE --disable-keys=TRUE  
  --delayed-insert=FALSE --create-options=TRUE --skip-extended-insert=TRUE  
  --delete-master-logs=FALSE --comments=TRUE --default-character-set=utf8  
  --max_allowed_packet=1G --flush-logs=FALSE --dump-date=TRUE --lock-tables=TRUE  
  --allow-keywords=FALSE --events=FALSE --routines  
  --result-file=CreateDB-Struct.sql  
  --host={host} --port=5306 --user=root --password={pwd}  
  "productivity1"
</pre>
In these commands, replace '''{host}''' and '''{pwd}''' with your Vision Host IP address and root password.
In these commands, replace '''{host}''' and '''{pwd}''' with your Vision Host IP address and root password.


'''Note:''' To load either file, you can use the following:
'''Note:''' To load either file, you can use the following:
  >mysql.exe --host={host} --port=5306 --user=root --password={pwd} --default-character-set=utf8 --comments <{SQL file}
<pre>
  >mysql.exe --host={host} --port=5306 --user=root --password={pwd}  
  --default-character-set=utf8 --comments <{SQL file}
</pre>


Take these produced files along with all the latest screens and place then into a clean directory.
Take these produced files along with all the latest screens and place then into a clean directory.

Revision as of 15:07, 9 May 2011

First, create the database structure and metadata SQL files. This can be done manually using MySQL Administrator or through the command line as follows:

Dump all the metadata:

 >mysqldump.exe --no-create-info=TRUE --order-by-primary=FALSE --force=FALSE 
  --no-data=FALSE --tz-utc=TRUE --flush-privileges=FALSE --compress=FALSE 
  --replace=FALSE --insert-ignore=FALSE --extended-insert=FALSE --quote-names=TRUE 
  --hex-blob=FALSE --complete-insert=TRUE --add-locks=TRUE --disable-keys=TRUE 
  --delayed-insert=FALSE --create-options=TRUE --delete-master-logs=FALSE --comments=TRUE 
  --default-character-set=utf8 --max_allowed_packet=1G --flush-logs=FALSE --dump-date=TRUE 
  --lock-tables=TRUE --allow-keywords=FALSE --events=FALSE --host={host} --port=5306 
  --user=root --password={pwd} 
  --result-file=CreateDB-Data.sql 
  "productivity1"  "rules_category" "rules_master" "screens" "system_extract_points" 
  "system_extracts" "system styles"

Note: To dump all the data from a remote server (perhaps for support), remove everything after "productivity1"

Dump the structure:

 >mysqldump.exe --no-create-info=FALSE --order-by-primary=FALSE --force=FALSE 
  --no-data=TRUE --tz-utc=TRUE --flush-privileges=FALSE --compress=FALSE 
  --replace=FALSE --host=localhost --insert-ignore=FALSE --quote-names=TRUE 
  --hex-blob=FALSE --complete-insert=TRUE --add-locks=TRUE --disable-keys=TRUE 
  --delayed-insert=FALSE --create-options=TRUE --skip-extended-insert=TRUE 
  --delete-master-logs=FALSE --comments=TRUE --default-character-set=utf8 
  --max_allowed_packet=1G --flush-logs=FALSE --dump-date=TRUE --lock-tables=TRUE 
  --allow-keywords=FALSE --events=FALSE --routines 
  --result-file=CreateDB-Struct.sql 
  --host={host} --port=5306 --user=root --password={pwd} 
  "productivity1"

In these commands, replace {host} and {pwd} with your Vision Host IP address and root password.

Note: To load either file, you can use the following:

 >mysql.exe --host={host} --port=5306 --user=root --password={pwd} 
  --default-character-set=utf8 --comments <{SQL file}

Take these produced files along with all the latest screens and place then into a clean directory. Use the existing Inno Setup installer file to build the installer.