You would have to type in whatever interactive commands are needed to connect you with the database in question in that session, which is distinct from the session started by PHP. That will help you figure out what might be wrong with your query statements.