Hey all -
I've changed 0.5 so that it can use any database, rather than one named "phpmyide." The config file looks like this now:
<?php
$siteHost = '42.phpmyide';
$siteURL = '/';
$sitePort = 80;
$ajaxLog = false;
$pmiDatabase = 'phptest';
$pmiPrefix = 'pmi_';
$connections = array();
$connections[0]['name'] = 'Local (42)';
$connections[0]['host'] = '127.0.0.1';
$connections[0]['user'] = 'username';
$connections[0]['password'] = 'password';
$connections[0]['phpmyadmin'] = 'http://42.phpmyadmin';
// ==================================== //
$GLOBALS['pmiDBPrefix'] = $pmiDBPrefix = "$pmiDatabase.$pmiPrefix";
?>
Everything is the same, except that there's 2 new variables: pmiDatabase and pmiPrefix. These two variables define how all queries go to the phpMyIDE tables. Given the example of my code above, I'd be looking for the long_responses table at phptest.pmi_long_responses.
I've also built a little script called buildsql.php, which can be called from the root directory of the phpMyIDE install. First, set the config file up the way you want it to look (ie., your database name and a "table prefix" for my tables, then call
http://yourdomain.com/phpmyidedir/buildsql.php from your browser. you'll get a few messages and it'll be all set.
I'm leaving this message here, because I'd like a few of you to try it before I actually post an official update at the website or Source Forge - so download the new version
THESE ARE NO LONGER AVAILABLE - see later in the thread for phpMyIDE-0.5c
as a tar.gz here: www. phpmyide.com/images/phpMyIDE-0.5b.tar.gz
or as a zip here: www. phpmyide.com/images/phpMyIDE-0.5b.zip
For those that are feeling adventurous, click on both of the "printer" icons in the DB explorer. You'll need a PDF viewer available to your browser.
Good luck - please let me know how it does. Thanks!
/perk