Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.