| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jun 2008
Posts: 33
![]() | Need MySQL help Hey everyone, Today I started to develop a website using a pre-existing database (with the extension .sql). I am trying to figure out how to use this database on my website. I have MySQL on my server, but I don't know if that's what I need. Any help would be appreciated!
__________________ business: name-cloud.com blog: patdryburgh.net I strongly recommend MediaTemple.net for web hosting. |
| |
| | #2 (permalink) |
| Senior Member Join Date: Jan 2006
Posts: 1,130
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Do you have access to phpMyAdmin through your hosting interface control (Cpanel, Plesk or whatever). If not, you can install it from www.phpmyadmin.net Then you can use phpMyAdmin to import the sql file into your database.
__________________ |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Jun 2008
Posts: 33
![]() | I do have phpmyadmin, and have attempted to import the file. However, it seems there is a 10000 KB limit, and the database is about 500MB Any ideas how to fix that?
__________________ business: name-cloud.com blog: patdryburgh.net I strongly recommend MediaTemple.net for web hosting. |
| |
| | #4 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | name-cloud to upload a file that large you would be much better off importing while in SSH. Do you have SSH access?
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | #5 (permalink) |
| NamePros Member Join Date: Sep 2006
Posts: 99
![]() ![]() | The version of phpMyAdmin that I'm currently using (2.11.6) has an option to kill the upload right before it times out. It also gives you the number of queries to skip. I have never used this, but I'm assuming you could upload the file with this option ("Partial Import"). When it reaches the limit, it would tell you it executed XXX queries. Do another partial import, this time starting by skipping the XXX queries. Obviously, repeat until the file has been completely uploaded. Bruce |
| |
| | THREAD STARTER #6 (permalink) | ||||||||
| NamePros Member Join Date: Jun 2008
Posts: 33
![]() |
"Partial import Allow interrupt of import in case script detects it is close to time limit. This might be good way to import large files, however it can break transactions." ????: NamePros.com http://www.namepros.com/programming/489386-need-mysql-help.html Is this where I do that? I don't, however, see a place to kill the import when it's going... Thanks everyone!
__________________ business: name-cloud.com blog: patdryburgh.net I strongly recommend MediaTemple.net for web hosting. | ||||||||
| |
| | #7 (permalink) | ||||
| Senior Member Join Date: Oct 2005
Posts: 1,089
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
http://www.ozerov.de/bigdump.php You just edit the file with your database details and then upload the database file to your host. Then navigate to the script and hit import beside the database file.
__________________ Quit developing - Jan 2012 | ||||
| |
| | #8 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | try reading through http://rikahsdesign.blogspot.com/200...-files-to.html i've used mysql tools to upload a rather large sql file and it worked pretty well. i also tried bigdump and that seemed to work.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #9 (permalink) |
| NamePros Member Join Date: Jun 2008
Posts: 98
![]() | you can try MySQL administrator : http://www.mysql.com/products/tools/administrator/ If you have a Linux server high probability you can SSH using Putty. If you manage SSH to your server issue this command : mysql -u username -p yourdatabase < yourfile.sql It will prompt your password and then import the sql in the youdatabase database.. |
| |
| | #10 (permalink) |
| NamePros Member Join Date: Jan 2008 Location: me = new (live(in.paradise())
Posts: 174
![]() | man, you can upload the .sql file to your server and run the import command from phpmyadmin from there, so there will not be an error about timeout of the upload from phpmyadmin, because the file will be local to your server. |
| |