You are Here: Articlelogy.com » Internet » Web-development » Php » 4 Ways To Import Extra Large Files In Mysql

4 Ways To Import Extra Large Files In Mysql


Go to: Article Next Article


Mysql is the number one open-source database management system, which give the programmer or developer a lot of flexibility in managing huge and complex tables of data. This is very enticing to the developer who would like to spit out data on the fly using PHP - open-source, server-side programming language . However, many hosting companies like Godaddy limit the amount mysql will load or import to roughly 2M.

This poses a challenge to developers who have huge data files (some in the Gigabytes of data) to import. So here are 4 ways you can import large data into mysql:

1. If your data is around 20M you can run an sql query directly in phpMyAdmin. First create your database, then open you data file in notepad or any text editor. Copy your sql data, click on the sql menu in phpMyAdmin and paste your data and click go.

2. If the file is a little bigger you can log into shell and edit your php.ini files by typing in the following code: nano forward-slash etc forward-slash php.ini. Once there locate the "max allowed packet" amount and change it from 2M to something like 30M. This will allow you to import about 30M of data via regular import.

3. In the event the files is 50M or more, I would recommend using the mysql dump script called BigDump created by Alexey Ozerov. It is a simple script that connect to your server and dump the data line by line. However, if you have a really complicated database it may not upload your file and fail.

4. The best way to import large mysql data to phpMyAdmin is to use the SOURCE command. Using source command to import mysql file is easy, yet very few developers use it. To use it, add you file to your bin or cgi-bin directory, then log into shell and type in the following: USE DATABASENAME; then type SOURCE forward-slash bin forward-slash filename. It will immediately start entering you file into the database line by line.

However, this method is not for those inexperience with shell and a back-end environment. It is not for the newly aspiring amateurs that may end up making mistakes and damage important data.
Article Source: Articlelogy.com
Insurance Comparison Quotes - Selected Insurance Carriers eager to quote you a price, fast!-


Word Count: 392




Reduce Your Debts Without Bankruptcy. See How Much You Can Save. Free Debt Analysis



Read Article ~ Read Next Article
 


Selected Articles

1: Way to Find the Best SEO Company
2: A SEO Company Maximizes your Online Sales
3: Your Smart Handset requires Smart App Developers
4: Way to Get your Unique iPhone Apps Developed
5: Why Do I Need to Attend a Fitness Resort?
6: Contact Lenses Online: Convenient, Less Time Absorbing, Order On The Spot
7: Want Assist With Internet Marketing? Try These Suggestions
8: The Foam Filled Chairs Are Perfect Items of Furnishings
9: People clinging to their content sending dcma requests
10: The Enormous Bean Bag is low priced along with a top quality item of furniture
11: Tips on how to Handle Cholesterol Levels to be Healthful
12: A good solid Global One Ultimate Power Profits Paradigm Shift Platinum Superbly Inspection
13: Car Maintenance: Much better Than Auto Repair St. Louis Case
14: Choosing B&b Hartbeespoort Dam
15: Melaleuca- An Impartial Review- So is this a Melaleuca Scam or can you honestly generate income with this business?
16: Los Ciclos Grado Medio en Catalunya interesan a los estudiantes
17: Tips To Start Successfully Marketing On the web Today
18: Prescription Assistance Programs, Goal and Rewards
19: Way to Find an Efficient SEO Service Provider
20: Joomla Development for your Website
21: Website Design Graphics for Niche Businesses
22: Recycling Help in Keeping our Environment Thoroughly clean
23: Nashville Recycling Info for the Folks of Nashville
24: Personal computer Restoration - Suggestions for Locating a Dependable provider at Waukesha
25: Would like To order Tunes On-line?
26: Viviane Skincare- A Completely Independent Assessment By an Expert
27: Dallas Texas HCG Diet plan Protocol
28: HCG Diet Protocol, it genuinely Succeeds
29: The Functions for Charter Jets
30: Try Out the Well known Athlete's Alfredo with Homemade Alfredo Sauce recipe
31: The Broccoli Cheddar Spinach Soup Recipe Is easy To Actualize
32: Technology Consulting Overview
33: Join the opportunity Get Pre-launch Immediately And Tie down Your Place
34: Beneficial Suggestions For Achieving Article Marketing Results
35: Why should you opt for promotional pens?
36: Types of stress relievers to keep you hale and healthy
37: Mistakes to avoid while choosing novelty pens


Read Article ~ Read Next Article

You are Here: Articlelogy.com » Internet » Web-development » Php » 4 Ways To Import Extra Large Files In Mysql