Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-21-2006, 08:20 PM   #1
OG LennyT
Wall Street Pimp
 
OG LennyT's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 14,345
getting a SQL database with only FTP access ***Challenge***

I'm with a shitty company on a dedicated server and I have all the files backed up no prob.

Problem is, I need the SQL database so I can switch to a new host asap!

I have NO control panel access as their softwares been down for a few weeks.

How can I get the SQL with only FTP to the server?
OG LennyT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 08:22 PM   #2
Spudstr
Confirmed User
 
Spudstr's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: In a Tater Patch
Posts: 2,321
get a script like phpmyadmin www.phpmyadmin.net set it up, export your database easiest way to do things without problems.
__________________
Managed Hosting - Colocation - Network Services
Yellow Fiber Networks
icq: 19876563
Spudstr is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 08:23 PM   #3
squishypimp
PostMaster General
 
Join Date: Aug 2006
Posts: 10,781
what shitty company are you with for your dedicated?
__________________
squishypimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 08:28 PM   #4
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Make a PHP script and execute that on the webserver. That's how I finally got my data out of WebAir's shitty shared system.

Code:
<?php
$cmd = 'mysqldump -u=myuser -p=mypass dbname > dump.sql';

$n = (function_exists(passthru)) ?  passthru("$cmd") : exec("$cmd");
return $n;
?>
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 08:30 PM   #5
OG LennyT
Wall Street Pimp
 
OG LennyT's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 14,345
Thanks guys, I appreciate the efforts....gonna try the phpmyadmin first
OG LennyT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 08:44 PM   #6
Sami
Confirmed User
 
Join Date: Mar 2004
Posts: 2,047
Yeap.
You can upload phpmyadmin, create a sql dump ... it will allow you to download the .sql dump.

Then upload that to your new server and import it to your mysql database on the new server and you are set
__________________

ServerProvider.com


ICQ#: 311-848-143
Sami is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 08:49 PM   #7
fetishblog
Confirmed User
 
Join Date: Sep 2005
Location: Your mom is my favorite pornstar!#%
Posts: 5,995
Holy shit, you have a dedicated server with no phpmyadmin installed? No SSH access? Dude, you need to move to a new host, NOW!
__________________

Fling.com doesn't steal your traffic and sales unlike some other dating companies. I promote them, and so should you!
fetishblog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 09:31 PM   #8
rvn
Confirmed User
 
Join Date: Sep 2006
Location: Ukraine/USA
Posts: 176
Use Sypex Dumper. It is a little open source PHP script to back up and restore MySQL databases of any size and content (including BLOB fields etc). Extremely easy to use - backup and restore in few clicks. Must have!

bugrov.net/dumper/

There you can find English version of the script (originally it had only Russian version).

Last edited by rvn; 09-21-2006 at 09:33 PM..
rvn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 10:12 PM   #9
kacy
Confirmed User
 
kacy's Avatar
 
Join Date: Oct 2002
Location: So Cal
Posts: 877
Sorry to hear your troubles, that sucks
Same recommendation here, phpmyadmin.
__________________
~Kacy
kacy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 10:24 PM   #10
fatdicksimon
Confirmed User
 
Join Date: Feb 2006
Posts: 226
if you have root access, you can navigate to the mysql data directory and copy the actual data files. the data directory depends on your linux distribution and mysql config, but it is usually /var/lib/mysql.

when you navigate to that directory, and look at the directory listing, you will notice that all of the directories have the same names as your mysql databases. within these directories there are .frm, .MYD, and .MYI files. these are the actual mysql data files, and these three files together actually make up the content of each mysql table.

download the complete folders for all of the databases that you are trying to restore on the new server.

now, on your new server, manually create the databases from the command line or browser interface. next, navigate to the mysql data directory (like i said it will probably be /var/lib/mysql/) and you'll notice that folders have been created with the database names. upload the .frm, .MYI, and .MYD files for each respective database. now the important part: make sure that these files are owned by the mysql user or else they won't be read. you can do this by issuing the following command within the directory:

chown mysql:mysql *

after you do that you should be set with your databases completely restored.

hope that helps. i had to do it a while ago and it was relatively painless.
__________________
icq: 199791893
holler at me

Last edited by fatdicksimon; 09-21-2006 at 10:26 PM.. Reason: typo
fatdicksimon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 11:03 PM   #11
adultguus
Confirmed User
 
Industry Role:
Join Date: Jul 2004
Location: The Netherlands
Posts: 815
[QUOTE=fatdicksimon]if you have root access, you can navigate to the mysql data directory and copy the actual data files...QUOTE]
I hope that root access is disabled over FTP, because if not, these guys really don't have a clue about what they're doing.

At my servers I don't even have direct root access over SSH.
adultguus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 11:06 PM   #12
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
most straight forward way is to just setup phpmyadmin, takes whole 3 mins...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2006, 11:08 PM   #13
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
hwo did it go dvd316??
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.