SlideShare a Scribd company logo
EXPORTING AND IMPORTING DATA IN MYSQL
OVERVIEWDifferent ways if exporting and importing Exporting database in mysqlImporting database in mysql
Different ways of exporting and importing dataImport and export data graphically via phpMyAdminUse an SSH tunel for mysql and use a third party toolUse mysql command line
Import and export data graphically via phpMyAdminSteps to export a database 1.Login to phpMyAdmin 2.Select the database 3.Select the export tab 4.Click select all so that tables in your database are selected
5.Under export tab, select sql6.Select the structure7.Select data8.Select save file as and choose preferred compression format9.Click on GOMysql data will be downloaded to your default browser’s destination.
 Steps to import a database from phpMyAdminbefore the data can be imported, the database must be created and user privileges must be assigned to it.Login to your cpanel with your username and passwordClick on mysql databases
create your new database by entering the nameClick on “add database” Enter the username and password Click on “add user” Add  new user to the database by selecting user and databaseClick on “add user to database”Click on “phpMyAdmin”
1.Login to phpMyAdmin2.Select on import menu3.Locate sql file on your computer4.Click on GOThis method has limitations especially when we have to download very large files, this method doesn’t work well.
EXPORTING DATABASE THROUGH COMMAND LINEUse mysqldump which is a tool to export and import databaseIt is used to backup the database or move the databases from one server to the other server.To export your data as a backup use# mysqldump -u username -ppassword  database_name>FILE1.sql
Replace the username, password and database name with your username, password and database details.FILE1 will contain the backup file, download the file to your computer.
IMPORTING DATABASE THROUGH COMMAND LINEWe can restore the data from backup fileOrImport it from another MYSQL server.
Upload the file FILE1.sql to the server and run the command#mysql -u username -ppassword  database_name<FILE1.sql Replace the username, password and database name with your username, password and database details.
OTHER WAYS OF EXPORTING AND IMPORTING DATAData can be imported from a XML source and can be retrieved from MYSQL in XML format.Import and export delimited data from ms excel or ms access.
Visit more self help tutorialsPick a tutorial of your choice and browse through it at your own pace.The tutorials section is free, self-guiding and will not involve any additional support.Visit us at www.dataminingtools.net

More Related Content

PPTX
File handling
PDF
Form handling in php
PPTX
DBeaver installation guide
PDF
phptut4
ODP
Php File Upload
PPTX
Introducing asp
PPTX
Information Flow Mechanism in Data warehouse
PPT
Exchange Recovery
File handling
Form handling in php
DBeaver installation guide
phptut4
Php File Upload
Introducing asp
Information Flow Mechanism in Data warehouse
Exchange Recovery

What's hot (15)

PPT
Project Presentation
PPT
Apache Web Server Setup 1
PPT
Powerpoint Web Admin 2
PPTX
Message enricher in mule
DOCX
Freeingwebhost
PPTX
Mule new jdbc component
PDF
Experiment no 1
PDF
RecoveryFix for Exchange Server
DOCX
Codd rules
PDF
Install iRedMail on Red Hat Enterprise Linux, CentOS
PPTX
Mule esb :Data Weave
PDF
Database Architecture and Basic Concepts
PPTX
Image upload in php MySql
DOCX
Mule with jdbc(my sql)
PDF
Technical SEO: .htaccess & 301 Redirects
Project Presentation
Apache Web Server Setup 1
Powerpoint Web Admin 2
Message enricher in mule
Freeingwebhost
Mule new jdbc component
Experiment no 1
RecoveryFix for Exchange Server
Codd rules
Install iRedMail on Red Hat Enterprise Linux, CentOS
Mule esb :Data Weave
Database Architecture and Basic Concepts
Image upload in php MySql
Mule with jdbc(my sql)
Technical SEO: .htaccess & 301 Redirects
Ad

Viewers also liked (12)

DOC
DOCX
Imtiaz Ahmed 786 new
PDF
ARCS Written result
PDF
PPTX
The life in the Cloud
PDF
ConcettiCalcolodelleProbabilit
PDF
Contributi europei per le PMI e le startup
PDF
Put first things first presented discuss agile delhi
PPTX
таничев константин+домашний детсад+клиенты
PPTX
Agile development introduction
PDF
7Habits_Zaheer Narejo
PPTX
MySQL Introduction
Imtiaz Ahmed 786 new
ARCS Written result
The life in the Cloud
ConcettiCalcolodelleProbabilit
Contributi europei per le PMI e le startup
Put first things first presented discuss agile delhi
таничев константин+домашний детсад+клиенты
Agile development introduction
7Habits_Zaheer Narejo
MySQL Introduction
Ad

Similar to Exporting And Importing Data In Mysql (20)

PPTX
Phpmyadmin administer mysql
DOCX
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docx
DOCX
All types of backups and restore
ODP
Database Connection With Mysql
PDF
Db import&export
PDF
Db import&export
PPT
My sql with querys
PPT
Introduction to MySQL - Part 2
PPT
ODP
Migration to Drupal
PPTX
Web Application Development using PHP Chapter 6
PPT
PPT
Mysql
PDF
MySQL Backup and Security Best Practices
DOCX
Scanned by CamScannerModule 03 Lab WorksheetWeb Developmen.docx
PPTX
CHAPTER six DataBase Driven Websites.pptx
ODP
My sql Syntax
Phpmyadmin administer mysql
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docx
All types of backups and restore
Database Connection With Mysql
Db import&export
Db import&export
My sql with querys
Introduction to MySQL - Part 2
Migration to Drupal
Web Application Development using PHP Chapter 6
Mysql
MySQL Backup and Security Best Practices
Scanned by CamScannerModule 03 Lab WorksheetWeb Developmen.docx
CHAPTER six DataBase Driven Websites.pptx
My sql Syntax

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Electronic commerce courselecture one. Pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
KodekX | Application Modernization Development
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Spectral efficient network and resource selection model in 5G networks
Big Data Technologies - Introduction.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
“AI and Expert System Decision Support & Business Intelligence Systems”
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Unlocking AI with Model Context Protocol (MCP)
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Machine learning based COVID-19 study performance prediction
Electronic commerce courselecture one. Pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KodekX | Application Modernization Development
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
MYSQL Presentation for SQL database connectivity
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
The Rise and Fall of 3GPP – Time for a Sabbatical?
Mobile App Security Testing_ A Comprehensive Guide.pdf

Exporting And Importing Data In Mysql

  • 1. EXPORTING AND IMPORTING DATA IN MYSQL
  • 2. OVERVIEWDifferent ways if exporting and importing Exporting database in mysqlImporting database in mysql
  • 3. Different ways of exporting and importing dataImport and export data graphically via phpMyAdminUse an SSH tunel for mysql and use a third party toolUse mysql command line
  • 4. Import and export data graphically via phpMyAdminSteps to export a database 1.Login to phpMyAdmin 2.Select the database 3.Select the export tab 4.Click select all so that tables in your database are selected
  • 5. 5.Under export tab, select sql6.Select the structure7.Select data8.Select save file as and choose preferred compression format9.Click on GOMysql data will be downloaded to your default browser’s destination.
  • 6. Steps to import a database from phpMyAdminbefore the data can be imported, the database must be created and user privileges must be assigned to it.Login to your cpanel with your username and passwordClick on mysql databases
  • 7. create your new database by entering the nameClick on “add database” Enter the username and password Click on “add user” Add new user to the database by selecting user and databaseClick on “add user to database”Click on “phpMyAdmin”
  • 8. 1.Login to phpMyAdmin2.Select on import menu3.Locate sql file on your computer4.Click on GOThis method has limitations especially when we have to download very large files, this method doesn’t work well.
  • 9. EXPORTING DATABASE THROUGH COMMAND LINEUse mysqldump which is a tool to export and import databaseIt is used to backup the database or move the databases from one server to the other server.To export your data as a backup use# mysqldump -u username -ppassword database_name>FILE1.sql
  • 10. Replace the username, password and database name with your username, password and database details.FILE1 will contain the backup file, download the file to your computer.
  • 11. IMPORTING DATABASE THROUGH COMMAND LINEWe can restore the data from backup fileOrImport it from another MYSQL server.
  • 12. Upload the file FILE1.sql to the server and run the command#mysql -u username -ppassword database_name<FILE1.sql Replace the username, password and database name with your username, password and database details.
  • 13. OTHER WAYS OF EXPORTING AND IMPORTING DATAData can be imported from a XML source and can be retrieved from MYSQL in XML format.Import and export delimited data from ms excel or ms access.
  • 14. Visit more self help tutorialsPick a tutorial of your choice and browse through it at your own pace.The tutorials section is free, self-guiding and will not involve any additional support.Visit us at www.dataminingtools.net