A quick and dirty SQL web console for PHP5+.
Please don't use this in production!
Use this as a quick drop-in to access your web site's database when you can't use SSH (e.g. when you're in a corporate network that blocks SSH. Yes, I know, that's totally braindead and every IT staff doing so should be forced to work in their birthday suit until they can tell why privacy is a good idea).
Replace the question marks in the defines at the top of the file:
define( 'PDO_DSN', '?:host=?;dbname=?' );
define( 'PDO_USER', '?' );
define( 'PDO_PASS', '?' );
define( 'PASSWORD', '?' );
Then drop the file in your web root.
Please use a secure connection (HTTPS). Otherwise the password will be transmitted in plain text.
If you need help specifying your database source (DSN), have a look at the PDO documentation.