Learn R Programming

RMySQL (version 0.2-3)

getDatabases: Get a list of Existing Databases

Description

This returns a list of existing databases accessible with a database manager or a database connection.

Usage

getDatabases(object, ...)

Arguments

object
an object of class MySQLManager or MySQLConnection

Value

  • A list with a single component giving the database names.

References

http://www.mysql.com/

See Also

MySQLManager, dbConnect

Examples

Run this code
m <- MySQL()
getDatabases(m)
con <- dbConnect(m, user = "nobody", dbname = "test")
getDatabases(con)
close(con)

Run the code above in your browser using DataLab