<reponame>mueller/mysql-shell<gh_stars>100-1000
# Passing the parameters in the { param: value } format
dictSession = mysqlx.get_session( {
        'host': 'localhost', 'port': 33060,
        'user': 'mike', 'password': '<PASSWORD>' } )

db1 = dictSession.get_schema('test')

# Passing the parameters in the URL format
uriSession = mysqlx.get_session('mike:paSSw0rd@localhost:33060')

db2 = uriSession.get_schema('test')

# Passing the parameters in the { param: value } format
dictSession = mysqlx.get_session( {
        'host': 'localhost', 'port': 33060,
        'user': 'mike', 'password': '<PASSWORD>' } )

db1 = dictSession.get_schema('test')

# Passing the parameters in the URL format
uriSession = mysqlx.get_session('mike:paSSw0rd@localhost:33060')

db2 = uriSession.get_schema('test')
# Passing the parameters in the { param: value } format # Passing the parameters in the URL format