[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 07-04-2008, 07:57 PM   #1 (permalink)
NamePros Member
 
Join Date: Jun 2008
Posts: 33
0.00 NP$ (Donate)

name-cloud is an unknown quantity at this point


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.
name-cloud is offline  
Old 07-04-2008, 08:13 PM   #2 (permalink)
Senior Member
 
Constantin's Avatar
 
Join Date: Jan 2006
Posts: 1,081
269.00 NP$ (Donate)

Constantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to behold


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.
Constantin is offline  
Old 07-04-2008, 09:02 PM   #3 (permalink)
NamePros Member
 
Join Date: Jun 2008
Posts: 33
0.00 NP$ (Donate)

name-cloud is an unknown quantity at this point


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.
name-cloud is offline  
Old 07-05-2008, 03:22 AM   #4 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
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
Peter is offline  
Old 07-05-2008, 08:32 AM   #5 (permalink)
NamePros Member
 
Join Date: Sep 2006
Posts: 87
100.00 NP$ (Donate)

Bruce_KD will become famous soon enoughBruce_KD will become famous soon enough


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
Bruce_KD is online now  
Old 07-05-2008, 09:33 AM   #6 (permalink)
NamePros Member
 
Join Date: Jun 2008
Posts: 33
0.00 NP$ (Donate)

name-cloud is an unknown quantity at this point


Quote:
Originally Posted by peter@flexiwebhost
name-cloud to upload a file that large you would be much better off importing while in SSH. Do you have SSH access?
I am not sure... I'm fairly new to this side of web development, so I'm not sure what "SSH" is.

Quote:
Originally Posted by Bruce_KD
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
I have 2.11.0, and it does have a section that says

"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.
name-cloud is offline  
Old 07-05-2008, 10:38 AM   #7 (permalink)
I came first!
 
Chicken's Avatar
 
Join Date: Oct 2005
Location: Canada
Posts: 934
148.00 NP$ (Donate)

Chicken is a name known to allChicken is a name known to allChicken is a name known to allChicken is a name known to allChicken is a name known to allChicken is a name known to all

Save The Children Save The Children Save The Children Save The Children
Quote:
Originally Posted by name-cloud
I am not sure... I'm fairly new to this side of web development, so I'm not sure what "SSH" is.



I have 2.11.0, and it does have a section that says

"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!
You could try using BigDump
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.
Chicken is offline  
Old 07-06-2008, 07:59 AM   #8 (permalink)
Senior Member
 
nasaboy007's Avatar
 
Join Date: Jul 2005
Location: NJ
Posts: 1,112
1,454.30 NP$ (Donate)

nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of


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.
nasaboy007 is offline  
Old 07-07-2008, 10:47 AM   #9 (permalink)
NamePros Member
 
Join Date: Jun 2008
Posts: 94
14.35 NP$ (Donate)

gezzle is an unknown quantity at this point


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..
gezzle is offline  
Old 07-07-2008, 02:07 PM   #10 (permalink)
NamePros Member
 
rafaelrls's Avatar
 
Join Date: Jan 2008
Location: me = new (live(in.paradise())
Posts: 155
0.00 NP$ (Donate)

rafaelrls is an unknown quantity at this point


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.
rafaelrls is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 06:00 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85