Hi,
I have a large 14mb database but i am having problem in trying to put it into phpmyadmin on my localhost.
I downloaded the database from the backup in cpanel, but i keep on getting 300 seconds timeout execution errors when i try to input via phpmyadmin.
I am using Xampp, how can I create the database,
I tried to use a script:
But the database doesn't get created.
location of this script: http://localhost/xampp/mysqlimport.php
locations of database: http://localhost/xampp/dbs/mydb.gz
hope someone can help.
I have a large 14mb database but i am having problem in trying to put it into phpmyadmin on my localhost.
I downloaded the database from the backup in cpanel, but i keep on getting 300 seconds timeout execution errors when i try to input via phpmyadmin.
I am using Xampp, how can I create the database,
I tried to use a script:
Code:
<?PHP
$TheFile = "/dbs/mydb.gz";
$User = "root"; // NOTE: Either use a MySQL user or your
$Password = ""; // There is no password
$DatabaseName = "mydb"; // NOTE: The database is prefixed with
your CPanel/Netadmin user
$Results = shell_exec( "mysql -u$User -p$Password -hlocalhost
$DatabaseName < $TheFile" );
echo "Results from MySQL import of $DatabaseName with User $User
with file $TheFile:\r\n $Results\r\n";
?>
location of this script: http://localhost/xampp/mysqlimport.php
locations of database: http://localhost/xampp/dbs/mydb.gz
hope someone can help.





