April 2018
Intermediate to advanced
280 pages
8h 37m
English
Connecting to the MySQL database instance can be done using the standard MySQL Python library. You may use the Python library specific to your database engine. For example, an Oracle database will have its own library to connect to the Oracle instance:
db = MySQLdb.connect(host="mydb.cctjftgqysky.us-west-2.rds.amazonaws.com", # the database endpoint user="dbadmin", # database username passwd="password", # database password db="packtpub") # name of the database