More precisely, and given that you accept the naming and security choices in the setup.sql script, do the following:
mysql -u root -p
The -p option will cause the mysql program to prompt you for the mysql root password, which you must have obtained previously, in (1).
mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 928 to server version: 5.0.27 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>
mysql> source setup.sql ... ... ... ... ... ... ... ... ... ... Query OK, 12 rows affected (0.00 sec) Records: 12 Duplicates: 0 Warnings: 0 Query OK, 4 rows affected (0.00 sec) Records: 4 Duplicates: 0 Warnings: 0 Query OK, 4 rows affected (0.00 sec) Records: 4 Duplicates: 0 Warnings: 0 Query OK, 0 rows affected (0.00 sec) mysql>
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | lost+found | | mysql | | testing | | trading | +--------------------+ 5 rows in set (0.00 sec) mysql>
mysql> use testing Database changed mysql> show tables; +-------------------+ | Tables_in_testing | +-------------------+ | AtomTag | | BarSize | | Bool | ... ... ... ... ... | Underlying | | Version | | Volatility | | WatchSets | +-------------------+ 50 rows in set (0.00 sec) mysql>
mysql> quit Bye sql$
At this point the shim databases have been created, tables for those databases created and populated with default values, and user accounts created for the four roles of shim program operation, downstream data collection, downstream orders, and offline maintenance and programming; the account names are listed in Table 3.1.
|
Please understand that although the testing database has default order information, so that the regression scripts can demonstrate simple reversing orders, the trading database has not yet been populated with the order lineitems referred to by downstream order commands, about which more in Chapter 4. Although databases have been set up at this point, you should not yet be trying to submit orders from downstream programs to the shim for transmission through the api to the IB tws.