| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | 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 | 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. |
| |
| | #3 (permalink) |
| NamePros Member | 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) |
| Senior Member | 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 | 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 |
| |
| | #6 (permalink) | ||
| NamePros Member | Quote:
Quote:
"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." 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) | |
| I came first! | Quote:
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.
__________________ █ AC/DC Talk - Talk about one of the greatest bands today. █ ChickenSMS - Let your visitors send free text messages. █ Blow Up Your Video - Read all about AC/DC and its members. █ No Cry Server - For gaming server admins. | |
| |
| | #8 (permalink) |
| Senior Member | 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 | 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.. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |