Bigjoos |
31st October 2013 14:50 |
U-232 V3 is a 5 minute to install and run source code, if not then you have missing dependences or your server is mis configured to take that source. Now the only possible way it can't select the database is possibly your installing on a windows server and you have not edited install/functions/database.php
PHP Code:
function db_insert() { global $root, $INSTALLER09; $out = '<fieldset><legend>Database</legend>'; require_once ($root.'include/config.php'); $q = sprintf('/usr/bin/mysql -h %s -u %s -p%s %s < %sinstall/extra/install.sql', $INSTALLER09['mysql_host'], $INSTALLER09['mysql_user'], $INSTALLER09['mysql_pass'], $INSTALLER09['mysql_db'], $root); //== Linux //$q = sprintf('c:\AppServ\MySQL\bin\mysql -h %s -u %s -p%s %s < %sinstall/extra/install.sql',$INSTALLER09['mysql_host'],$INSTALLER09['mysql_user'],$INSTALLER09['mysql_pass'],$INSTALLER09['mysql_db'],$root); //== Win - remember to set your path up correctly - atm its set for appserv exec($q, $o); if (!count($o)) { $out.= '<div class="readable">Database was imported</div><div class="info" style="text-align:center"><input type="button" value="Finish" onclick="window.location.href=\'?step=3\'"/></div>'; file_put_contents('step2.lock', 1); } else $out.= '<div class="notreadable">There was an error while importing the database<br/>'.$o.'</div>'; $out.= '</fieldset>'; print ($out); }
Its clearly commented for that, it could be exec function is disabled on the server, looking at error logs helps in these matters, knowing your hardware well helps a lot as well, just slow down and look at what your trying to do first, list here what errors you get and you'll get answers, but I can assure you its not the code, its the server that has the problem.
|