home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Website database question

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2298
Discussions: 200,970, Posts: 2,379,741, Members: 246,335
Old May 20th, 2004, 09:14 PM   Digg it!   #1 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Arrow
Website database question

Hi all,

I have this website with a database that I need to copy to a subdomain of another site.

How do I make a copy of the database? I cant find anything that looks like a database in the FTP folders.

Both domains have the Plesk 7 domain administrator on them if anyone knows how to use this to export the database.

Thanks.
[Neo770] is offline   Reply With Quote
Old May 20th, 2004, 09:19 PM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,397
you haven't mentioned what kind of database it is?

MySQL?
SQL Server?
Access?
PostGreSQL?
Flat Files?
XML?

If you look at the underlying code, whether it be PHP/ASP you should be able to see the call for a DB, it may not simply be a file.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is offline   Reply With Quote
Old May 20th, 2004, 09:27 PM     #3 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Oh ok I didnt know there was a difference.

Its a MySQL database, the server is running Redhat 9.

The site is coded with PHP.


This is the main connection code I think. I didnt make this site, and im still a PHP newbi.


function db_connect()
{
$db=mysql_connect("localhost","mitch","******");
mysql_select_db("classiccars",$db);
return $db;
}


I edited out what I guess is the password.

Does this help?
[Neo770] is offline   Reply With Quote
Old May 20th, 2004, 09:36 PM     #4 (permalink)
Ultimate Member
 
willy_ph's Avatar
 
Join Date: Oct 2001
Location: Trent University
Posts: 2,414
I think you'll have to dump the mysql database, then use the dumped file to recreate the contents and structure of the database. With respect to you website management suite, I don't think it'll allow you to do it. But then again, I have no experience with that.
willy_ph is offline   Reply With Quote
Old May 20th, 2004, 09:39 PM     #5 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Ok so how the heck do I dump the database, im still very new to this whole web design/administration thing.
[Neo770] is offline   Reply With Quote
Old May 20th, 2004, 09:47 PM     #6 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,397
This should help
http://dev.mysql.com/doc/mysql/en/mysqldump.html

Ya know when we had more than one forum for ALL development, there were a few threads regarding this topic... no idea what happened to them now
vass0922 is offline   Reply With Quote
Old May 20th, 2004, 10:06 PM     #7 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Thanks vass,

One problem, it looks like I need access to the server either physicaly or through an SSH session or something. Is that right? Or can it be done in like a CGI script?

Maybe this is something I need to ask the aussiehosts admin to do? The subdomain I want to copy to is also an aussiehost server.
[Neo770] is offline   Reply With Quote
Old May 23rd, 2004, 07:59 PM     #8 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
Using Plesk 7
Services>Databases>(name of databse)>DB WebAdmin>

http://download1.sw-soft.com/Plesk/P...l/ch03s70.html

------------
or install phpmyadmin for manipulating mysql databases....
http://www.phpmyadmin.net/home_page/
__________________
USA Linux Users Group
OpenSUSE.us

Last edited by crouse : May 23rd, 2004 at 11:49 PM.
crouse is offline   Reply With Quote
Old May 23rd, 2004, 09:09 PM     #9 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Thanks crouse, unfortunatly backup services are not avialable on this server, there not installed.

So does anyone know how I can get a copy of the database?
[Neo770] is offline   Reply With Quote
Old May 23rd, 2004, 09:33 PM     #10 (permalink)
Ultimate Member
 
willy_ph's Avatar
 
Join Date: Oct 2001
Location: Trent University
Posts: 2,414
You could try contacting your hosting provider and ask them what they can do to help you out.
willy_ph is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Really I can't connect to some web sites MindlessAwp Networking and Internet 20 March 30th, 2004 11:12 AM
website?!?!?!? thePh@r@oh General Tech Discussion 10 December 10th, 2003 08:14 PM
Bulletproof FTP Server neillsmob Networking and Internet 15 August 5th, 2003 06:11 PM
mdb driven website kanoz Webmastering and Programming 2 June 23rd, 2003 10:02 PM
Design & Database UnmodNick Webmastering and Programming 6 April 14th, 2003 02:27 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3045)
Breaking: San Diego ACORN Document .. (10)
Delete an OS (15)
The disrespect of Obama by Russian .. (47)
Nvidia GTX 260 problem (7)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
windows vista security holes (17)
Internet Lost (5)
windows 7 problem (7)
Is the PSU I received dead? (13)
Point and Shoot Camera Suggestions. (6)
Recent Discussions
Can't open Word (12)
Nvidia GTX 260 problem (7)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (37)
Delete an OS (15)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)
windows vista security holes (17)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)


All times are GMT -4. The time now is 08:17 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28