Want to write a program to connect to mysql server and be able to switch to a particular database to perform sql statements. Right now, I am issuing a "USE database" statement, but older versions do not seem to implement USE statement - they only support the "connect database" statement. I thoroughly checked the changelogs at the mysql site, but it is not documented. They have an adequate, but not completely documentation unfortunately.