GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   MySQL help needed (https://gfy.com/showthread.php?t=136122)

3Xguru 05-22-2003 08:54 AM

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.

Zorgman 05-22-2003 09:26 AM

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. :glugglug

grumpy 05-22-2003 09:29 AM

50Mb shouldnt be any problem. Zorgman is right

3Xguru 05-22-2003 09:53 AM

Quote:

Originally posted by Zorgman
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. :glugglug

Thanks for the feedback but I'm still in the dark.

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

HoiDaKalen 05-22-2003 10:14 AM

umm, your database is stored in files. i forgot which dir, but they are there somewhere. just look around in mysql dir.

Zorgman 05-22-2003 10:18 AM

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. :thumbsup

3Xguru 05-22-2003 10:37 AM

Quote:

Originally posted by Zorgman
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. :thumbsup

I know what an SQL file is. I have also tried to dump the database using PHPMyadmin but it doesn't seem to work. I'll try to download the latest version of PHPMyAdmin and see if it works better(or if it works at all)

Thanks for the help again!:thumbsup

hibbidiji 05-22-2003 10:42 AM

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


All times are GMT -7. The time now is 04:49 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123