PDA

View Full Version : SQL Database from a text file


Bruce
02-03-2008, 05:16 PM
How does one produce an SQL DB from a text file? Here's the file.

Dermot
02-03-2008, 05:23 PM
That's a MySQL dump file created with phpMyAdmin. You can recreated the db by importing this file using phpMyAdmin or any other MySQL management program.

RizlaUK
02-04-2008, 06:15 AM
yup, just paste it in to phpMyAdmin "Execute SQL" or import the file and away you go

AGRO
02-06-2008, 09:28 PM
Sorry, already answered.

cooollingesh
03-06-2008, 08:28 PM
How to generate text file from sql database

RizlaUK
03-06-2008, 10:12 PM
in phpmyadmin, select your database and click "EXPORT"

longedge
03-07-2008, 02:41 AM
How to generate text file from sql database

Is that sql or is it mysql?

Bruce
03-07-2008, 10:37 AM
SQL...I really didn't want to load that whole phpmyadmin onto a server just to make that DB. Is there another way? (easy/er)

RizlaUK
03-07-2008, 10:59 AM
Is there another way?

yeah......do it in php,

is that the database ^^ in your first post....i'll make a start for you

longedge
03-07-2008, 04:27 PM
SQL...I really didn't want to load that whole phpmyadmin onto a server just to make that DB. Is there another way? (easy/er)

Looks to me like your text file is a mysql dump. If you have access to the mysql database and a sql server then you'd probably be looking at creating a dts (data transformation services) package on the sql database. It's most definitely not for the faint-hearted. I scratch at the surface of sql server every day but only because I have to, I wouldn't fancy doing/trying it.

Stick with mysql and mysqladmin would be my advice fwiw.

I would have thought that your ISP could help you out with this. If it isn't already available, ask them if they will install it.

Take Rizla up on his offer:lol

RizlaUK
03-07-2008, 07:02 PM
Hey Bruce, run this php file in your browser to install the tables

just edit the connection stuff at the top

Bruce
03-09-2008, 11:29 AM
Thanks RizlaUK-
It wont open for me, thank you for trying.