![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Wall Street Pimp
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?
__________________
Tradeking - my online broker | 4.95 a trade | make real $$ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
PostMaster General
Join Date: Aug 2006
Posts: 10,781
|
what shitty company are you with for your dedicated?
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Now choke yourself!
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; ?>
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Wall Street Pimp
Industry Role:
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 14,345
|
Thanks guys, I appreciate the efforts....gonna try the phpmyadmin first
__________________
Tradeking - my online broker | 4.95 a trade | make real $$ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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). |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Oct 2002
Location: So Cal
Posts: 877
|
Sorry to hear your troubles, that sucks
![]() Same recommendation here, phpmyadmin.
__________________
~Kacy ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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.
__________________
Want to have your own review site in 2 minutes? Visit us now! For the surfers: Porn Reviews |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
<&(©¿©)&>
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |