Re: mysql dump --> via php
| From: | Jason Wong | Date: | Mon, 10 Jun 2002 10:27:06 +0000 |
| Subject: | Re: mysql dump --> via php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101378@lists.php.net to get a copy of this message | ||
On Monday 10 June 2002 16:34, Wilbert Enserink wrote:
> Hi all,
>
>
> I have a .txt file containing a mysql dump. Normally when I would restore
> this dump I would go to the mysql 'prompt' and type something like: mysql <
> dimpfile.txt. I would use SSH or telnet for this.
>
>
> Now I have this new problem: I cannot reach the sql pompt via SSH/telnet.
> Is there any other way to create all the tables and records from the
> dumpfile.txt into the database on the database server??
>
> Maybe it is possible to copy paste the sql statements into a php file which
> can do this? I can then upload this php file to the webserver and perform
> the job. Maybe anybody can advise me on the php code part of this solution.
The easiest solution is to install phpMyAdmin.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Doing gets it done.
*/