Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
require('./connect.db.inc.php');
+$globals->dbuser = 'admin';
+$globals->dbpwd = 'lknjiuhb';
+$globals->debug = 1;
+
function copyTable($source, $target, $convertToInnoDB = true)
{
XDB::execute('CREATE TABLE ' . $target . '
set -e
-#if [ "$UID" != 0 ]; then
-# echo "has to be run as root"
-# exit 1
-#fi
+if [ "$UID" != 0 ]; then
+ echo "has to be run as root"
+ exit 1
+fi
if [[ -n "${DBPREFIX}" ]]; then
echo "Using non-default database ${DBPREFIX}x4dat."