Skip to content

Commit 9d93ac8

Browse files
committed
Code check
1 parent 1a91213 commit 9d93ac8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ $ sudo myodbc-installer -a -d -n "MySQL ODBC 8.0" -t "Driver=/usr/local/lib/libm
231231

232232
VI. **Training SmartIX**
233233

234-
26. Download SmartIX source code (**Put link to the repository after it is forked!!!**).
234+
26. Download SmartIX source code (or clone the repository).
235235

236-
27. Configure the database connection string in the database.py class init method by putting your user, password, and database name to the connection string variable.
236+
27. Configure the database connection string in the database.py class init method: put your user, password, and database name to the connection string variable.
237237

238-
28. The same has to be done in the TPCH.py class by putting your database connection info to the DB_CONFIG constant, as well as setting the REFRESH_FILES_PATH constant to the path you generated the refresh files back in Step 13.
238+
28. The same has to be done in the TPCH.py class: put your database connection info to the DB_CONFIG constant, as well as setting the REFRESH_FILES_PATH constant to the path you generated the refresh files back in Step 13.
239239

240240
29. Then you can finally start training the agent by running:
241241

TPCH.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class TPCH:
2121
'''
2222
Database connection and refresh files
2323
'''
24-
DB_CONFIG = {'user': 'root', 'password': 'root', 'host': '127.0.0.1', 'database': 'tpch'}
25-
REFRESH_FILES_PATH = '/home/gabriel/sap/tpch-tools/dbgen/%d' % SCALE_FACTOR
24+
DB_CONFIG = {'user': 'dbuser', 'password': 'dbpass', 'host': '127.0.0.1', 'database': 'tpch'}
25+
REFRESH_FILES_PATH = '~/path/to/dbgen/%d' % SCALE_FACTOR
2626

2727

2828
'''

database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Database:
2121

2222
def __init__(self):
2323
# Database connection
24-
self.connection_string = 'DRIVER={MySQL ODBC 8.0};SERVER=127.0.0.1;DATABASE=tpch;UID=root;PWD=root'
24+
self.connection_string = 'DRIVER={MySQL ODBC 8.0};SERVER=127.0.0.1;DATABASE=tpch;UID=dbuser;PWD=dbpass'
2525

2626

2727
"""

0 commit comments

Comments
 (0)