Website database question  | | |
May 20th, 2004, 09:14 PM
|
#1 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Gold Coast,Australia
Posts: 2,475
| 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. |
| |
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.
|
| |
May 20th, 2004, 09:27 PM
|
#3 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Gold Coast,Australia
Posts: 2,475
|
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? |
| |
May 20th, 2004, 09:36 PM
|
#4 (permalink)
| | Ultimate Member
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. |
| |
May 20th, 2004, 09:39 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Gold Coast,Australia
Posts: 2,475
|
Ok so how the heck do I dump the database, im still very new to this whole web design/administration thing. |
| |
May 20th, 2004, 09:47 PM
|
#6 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,397
| |
| |
May 20th, 2004, 10:06 PM
|
#7 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Gold Coast,Australia
Posts: 2,475
|
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. |
| |
May 23rd, 2004, 07:59 PM
|
#8 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
|
Last edited by crouse : May 23rd, 2004 at 11:49 PM.
|
| |
May 23rd, 2004, 09:09 PM
|
#9 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Gold Coast,Australia
Posts: 2,475
|
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? |
| |
May 23rd, 2004, 09:33 PM
|
#10 (permalink)
| | Ultimate Member
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. |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |