grr/server/grr_response_server/databases/mysql.py
def CreateDatabase(host, port, user, passwd, db, **kwargs):
  """Connect to the given MySQL host and create a utf8mb4_unicode_ci database.

  Args:
    host: The hostname to connect to.
    port: The port to connect to.
    user: The username to connect as.
    passwd: The password to connect with.
    db: The database name to create.
    **kwargs: Further MySQL connection arguments.
  """
  con = MySQLdb.Connect(
      host=host, port=port, user=user, passwd=passwd, **kwargs)
  cursor = con.cursor()
  cursor.execute(CREATE_DATABASE_QUERY.format(db))
  cursor.close()
  con.close()
Connect to the given MySQL host and create a utf8mb4_unicode_ci database.

  Args:
    host: The hostname to connect to.
    port: The port to connect to.
    user: The username to connect as.
    passwd: The password to connect with.
    db: The database name to create.
    **kwargs: Further MySQL connection arguments.
  
Connect to the given MySQL host and create a utf8mb4_unicode_ci database.
Connect to the given MySQL host and create a utf8mb4_unicode_ci database .
def CreateDatabase(host, port, user, passwd, db, **kwargs):
  con = MySQLdb.Connect(
      host=host, port=port, user=user, passwd=passwd, **kwargs)
  cursor = con.cursor()
  cursor.execute(CREATE_DATABASE_QUERY.format(db))
  cursor.close()
  con.close()
def CreateDatabase ( host , port , user , passwd , db , ** kwargs ) : con = MySQLdb . Connect ( host = host , port = port , user = user , passwd = passwd , ** kwargs ) cursor = con . cursor ( ) cursor . execute ( CREATE_DATABASE_QUERY . format ( db ) ) cursor . close ( ) con . close ( )
Connect to the given MySQL host and create a utf8mb4_unicode_ci database.
Connect to the given MySQL host and create a utf8mb4_unicode_ci database .
"""Connect to the given MySQL host and create a utf8mb4_unicode_ci database.

  Args:
    host: The hostname to connect to.
    port: The port to connect to.
    user: The username to connect as.
    passwd: The password to connect with.
    db: The database name to create.
    **kwargs: Further MySQL connection arguments.
  """
host
The hostname to connect to.
The hostname to connect to .
port
The port to connect to.
The port to connect to .
user
The username to connect as.
The username to connect as .
passwd
The password to connect with.
The password to connect with .
db
The database name to create.
The database name to create .
**kwargs
Further MySQL connection arguments.
Further MySQL connection arguments .