Skip to Content
Hybrid Cloud for Developers
book

Hybrid Cloud for Developers

by Manoj Hirway
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
8h 37m
English
Packt Publishing
Content preview from Hybrid Cloud for Developers

Connecting to the database instance

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
Database vendor specific Python examples are beyond the scope of this book. Readers are requested to refer to the vendor-specific documentation for interacting with the databases.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hybrid Cloud for Architects

Hybrid Cloud for Architects

Alok Shrivastwa
OpenStack: Building a Cloud Environment

OpenStack: Building a Cloud Environment

Alok Shrivastwa, Sunil Sarat, Kevin Jackson, Cody Bunch, Egle Sigler, Tony Campbell

Publisher Resources

ISBN: 9781788830874Supplemental Content