Cloud DB Scanner usage examples
    • PDF

    Cloud DB Scanner usage examples

    • PDF

    Article Summary

    Available in VPC

    Scenario overview

    Describes the process of scanning the schema of the source data you want and creating a table by creating a scanner targeting Cloud DB for MySQL.

    Source data

    The source data stored in Cloud DB for MySQL consists of air pollution measurement data, including various measurement information such as date and time, monitoring station, ozone concentration, and sulfur dioxide concentration.

    Data examples

    datearea_codearea_namemeasure_center_codemeasure_center_namefine_dust_per_hourfine_dust_per_dayultrafine_dust_per_dayozone_ppmnitrogen_dioxide_concentration_ppmcarbon_monoxide_concentration_ppmsulfurous_acid_gas_concentration_ppm
    202210302300100downtown111123junggu6959490.0130.0640.80.004
    202210302300100downtown111121junggu-28259560.0080.0740.80.003
    202210302300100downtown111131yongsangu6858640.0280.0370.70.003

    Create and run scanner

    Create connection

    # Basic information
    Name: (atmosphere-mysql-connection)
    
    # Source data
    Data type: (Cloud DB for MySQL)
    DB service: (DB service name of the user's Cloud DB for MySQL)
    Database: (name of the database to be scanned in the DB service)
    
    # Create account
    User name: (DB account name to be used to access Cloud DB for MySQL)
    Password: (DB password to be used to access Cloud DB for MySQL)
    
    • Create Account>User Name/Password: Create a new DB account to access source data. The newly created account is granted read-only permission which can be limitedly accessed from Data Catalog only.
    Note

    If the user name entered is a name created on another connection or a user name that already exists, the user name already registered is used and the password entered is ignored. (The user name and password previously registered is not changed)

    Create scanner

    # Source data
    Data type: (Cloud DB for MySQL)
    Connection: (atmosphere-mysql-connection)
    Path: (not entered)
    
    # Execution option
    Cycle: (on demand)
    Pattern: (not used)
    
    • Path: When entering a value, it is automatically processed as 'corresponding value + %'. Among the tables in the database for scanning, tables with names starting with the value are scanned.
    • Pattern: When specific patterns are included/excluded, only tables with the names of the patterns can be scanned. If patterns are not used, all tables in the selected database path are scanned.

    If both path and pattern conditions are set, among the tables meeting the path and the pattern condition, tables that satisfy the pattern condition are scanned.

    # Output data
    Database: (default)
    Prefix: (not entered)
    When adding a schema: (update table definition)
    
    • prefix: A prefix is added to the output data table name to distinguish itself from output data of other scans.

    • When adding a schema

      • Update table definition: When scanning, every detail related to the table change is updated.
      • Add only new columns: Updates are performed when scanning only if columns are added to the table, and deleted columns are ignored.
      • Ignore: ignore all table changes when scanning.

    Run scanner

    • Start scanning by pressing the [Run] button on the scanner waiting to run.
    • The scanner in the Start running state changes to the Standby state as soon as the scan is completed.
    • You can check the results in the History tab and the schema in the Table menu.

    Schema run result

    Additional tableProperty informationSchema
    atmosphere-dataconnectionName,
    mysqlCollation,
    mysqlDataSize,
    mysqlIndexSize,
    mysqlIndexes,
    mysqlRows,
    mysqlTableSize,
    scannerId,
    scannerName, ...
    date (bigint ) date (bigint )
    area_code (double)
    area_name (string)
    measure_center_code (double)
    measure_center_name (string)
    fine_dust_per_hour (double)
    fine_dust_per_day (double)
    ultrafine_dust_per_day (double)
    ozone_ppm (double)
    nitrogen_dioxide_concentration_ppm (double)
    carbon_monoxide_concentration_ppm (double)
    sulfurous_acid_gas_concentration_ppm (double)

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.