Is there a search function where I can use mysql_query() on MYSQL_RES *result?

Basically I just want to load every data from the remote mysql database to my machine and work on it locally without having mysql installed.