Making a connection to the mysql database

I wish to make a connection to mysql (in particular the rt database)
I was just wondering how rt1.0.7 is already making this connection and
where?