![]() |
![]() |
![]() |
||||
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 |
Confirmed User
Join Date: Sep 2001
Location: Iasi
Posts: 1,281
|
MySQL help needed
I have a large databse on my computer and I need to transfer all the data from my computer to my webserver.
Does anyone know how to transfer such a large database between 2 MySQL databases? I have tried to export the database from the PHPMyAdmin pannel(with the feature that exports the database in a text file with all the inserts), but it doesn't work since the database is too big(over 50k records - about 50Mb). Any ideas? Is there a specialized software for something like this? Any feedback appreciated.
__________________
-=Free Webmaster Tools=- |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Aug 2002
Location: Sydney, Australia
Posts: 6,103
|
Upload the 50MB file to your webserver and use ssh or telnet to insert it into the mysql database.
mysql -u username -p databasenamee < filename.sql Also for reference - backing up mysqldump -u username -p databasename > dumpfile.sql It's been a while since I used this way, I hope it hasn't changed at all. ![]()
__________________
--- |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
50Mb shouldnt be any problem. Zorgman is right
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Sep 2001
Location: Iasi
Posts: 1,281
|
Quote:
I do not have the sql file on my local computer. The only file on the MySQL database I have found is a .myd file that's 52Mb How do I create the sql file with the database inserts to upload to the server. The export feature on PHPMyAdmin does not seem to work with so many records. Also I have no idea about where to upload the SQL file
__________________
-=Free Webmaster Tools=- |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Registered User
Join Date: Apr 2002
Posts: 51
|
umm, your database is stored in files. i forgot which dir, but they are there somewhere. just look around in mysql dir.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Aug 2002
Location: Sydney, Australia
Posts: 6,103
|
In phpmyadmin you can dump the entire database to a file or if you have the latest version it can even zip that file.
An .sql file is basicly just a text file. It's named .sql to tell your its a database backup or related file rather then a .txt file. If you have telnet or ssh use the above commands to dump your database OR you could hire someone to do it for you. There are many guys here that could help you out. ![]()
__________________
--- |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Sep 2001
Location: Iasi
Posts: 1,281
|
Quote:
Thanks for the help again! ![]()
__________________
-=Free Webmaster Tools=- |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Sep 2002
Location: Las Vegas
Posts: 208
|
and dont forget what zorgman said... if you cant get phpmyadmin to do it (probably because of a time limit or file size problem in your PHP installation, you can always ssh in to the server and run
mysqldump -u username -p databasename > dumpfile.sql it will ask you for a password then create dumpfile.sql... then you ftp in and download it... (it helps to put the path to your web folder or a folder you can easily ftp to in front of dumpfile.sql) then you follow zorgmans other suggestion and it will go in slick. d
__________________
--------------- |
![]() |
![]() ![]() ![]() ![]() ![]() |