Gambas Documentation - /comp/gb.mysql/_mysql/databases

/comp/gb.mysql/_mysql/databases

# _MySQL.Databases (gb.mysql)

Property Read Databases As String[]

Returns a read only array containing the Databases that the current user can access.

### Examples

    Dim hCon As New Connection

    With hCon
      .Type = "mysql"
      .Port = "3306"
      .Host = "localhost"
      .User = "root"
      .Password = "mypass"
      .Name = "Gambas"
      .Open()
    End With

    Print hCon.MySQL.Databases[0]

See this example.