Jump to content

how to "unselect" a database


jcanker

Recommended Posts

Maybe this is really a php question, but since it's driving mySql, I'm asking here.

 

I've created a command-line web interface to one of my MySql servers for my students to use instead of trying jump through all the hoops of getting the school's IT staff to install the client on all the lab pcs. 

 

I need a way to "deselect" the database that the student created.  I've tried destroying the php session cookie that stores the db as a variable, but even after that happens I can still do a "show tables" command in the CLI and it shows the tables from the database the student was last using.  That destruction process also includes mysql_close(), but the db is still selected. 

 

How can I clear that out so it's like they're freshly connecting to the MySQL client?

Link to comment
https://forums.phpfreaks.com/topic/235047-how-to-unselect-a-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.