/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // diese php-Datei ins Dokument-Root hochladen, dort muss auch die Dump-Datei liegen // Daten eintragen $host= 'localhost'; $user= 'dboxxxxx'; $pass= 'xxxxxxxx'; $db= 'dbxxxxxx'; // GZip entpacken und in die Datenbank einlesen 'gunzip -c %s/dumpDB.sql.gz | mysql -h %s -u %s -p%s -S /tmp/mysql5.sock %s', $host, $user, $pass, $db )); echo '+DONE'; ?>
Comments
