Skip to contents

MozART 2.0 Utilities

Usage

mysql_connection(
  db_name,
  db_user,
  db_pass,
  db_host = "localhost",
  db_port = 3306
)

Arguments

db_name

Database name

db_user

Database user

db_pass

Database password

db_host

Database host

db_port

Database port

Value

A connection to the database

Examples

if (FALSE) { # \dontrun{

 df <- mysql_connection()} # }