NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Need MySQL help

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-04-2008, 08:57 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Jun 2008
Posts: 33
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, 09:13 PM   #2 (permalink)
Senior Member
 
Constantin's Avatar
Join Date: Jan 2006
Posts: 1,130
Constantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud of
 



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, 10:02 PM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Jun 2008
Posts: 33
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, 04:22 AM   #4 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
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, 09:32 AM   #5 (permalink)
NamePros Member
Join Date: Sep 2006
Posts: 99
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 offline  
Old 07-05-2008, 10:33 AM THREAD STARTER               #6 (permalink)
NamePros Member
Join Date: Jun 2008
Posts: 33
name-cloud is an unknown quantity at this point
 



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.

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."
????: 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.
name-cloud is offline  
Old 07-05-2008, 11:38 AM   #7 (permalink)
Senior Member
 
Chicken's Avatar
Join Date: Oct 2005
Posts: 1,089
Chicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud of
 


Save The Children Save The Children Save The Children Save The Children
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.
????: NamePros.com http://www.namepros.com/showthread.php?t=489386



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.
__________________
Quit developing - Jan 2012
Chicken is offline  
Old 07-06-2008, 08:59 AM   #8 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
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 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, 11:47 AM   #9 (permalink)
NamePros Member
Join Date: Jun 2008
Posts: 98
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, 03:07 PM   #10 (permalink)
NamePros Member
 
rafaelrls's Avatar
Join Date: Jan 2008
Location: me = new (live(in.paradise())
Posts: 174
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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 12:58 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger