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
NithyaNithyav
Ā 
PDF
Form handling in php
Fahad Khan
Ā 
PPTX
DBeaver installation guide
Amira Elsayed Ismail
Ā 
PDF
phptut4
tutorialsruby
Ā 
ODP
Php File Upload
Hiroaki Kawai
Ā 
PPTX
Introducing asp
aspnet123
Ā 
PPTX
Information Flow Mechanism in Data warehouse
GunjanShree1
Ā 
PPT
Exchange Recovery
edbmark
Ā 
File handling
NithyaNithyav
Ā 
Form handling in php
Fahad Khan
Ā 
DBeaver installation guide
Amira Elsayed Ismail
Ā 
phptut4
tutorialsruby
Ā 
Php File Upload
Hiroaki Kawai
Ā 
Introducing asp
aspnet123
Ā 
Information Flow Mechanism in Data warehouse
GunjanShree1
Ā 
Exchange Recovery
edbmark
Ā 

What's hot (15)

PPT
Project Presentation
ShariffAyesha
Ā 
PPT
Apache Web Server Setup 1
Information Technology
Ā 
PPT
Powerpoint Web Admin 2
webhostingguy
Ā 
PPTX
Message enricher in mule
Sashidhar Rao GDS
Ā 
DOCX
Freeingwebhost
Mahkota Raja
Ā 
PPTX
Mule new jdbc component
Anirban Sen Chowdhary
Ā 
PDF
Experiment no 1
Ankit Dubey
Ā 
PDF
RecoveryFix for Exchange Server
Albern Knight
Ā 
DOCX
Codd rules
Jay Patel
Ā 
PDF
Install iRedMail on Red Hat Enterprise Linux, CentOS
InfoExcavator
Ā 
PPTX
Mule esb :Data Weave
AnilKumar Etagowni
Ā 
PDF
Database Architecture and Basic Concepts
Tony Wong
Ā 
PPTX
Image upload in php MySql
Ishaq Shinwari
Ā 
DOCX
Mule with jdbc(my sql)
charan teja R
Ā 
PDF
Technical SEO: .htaccess & 301 Redirects
Rob Bertholf
Ā 
Project Presentation
ShariffAyesha
Ā 
Apache Web Server Setup 1
Information Technology
Ā 
Powerpoint Web Admin 2
webhostingguy
Ā 
Message enricher in mule
Sashidhar Rao GDS
Ā 
Freeingwebhost
Mahkota Raja
Ā 
Mule new jdbc component
Anirban Sen Chowdhary
Ā 
Experiment no 1
Ankit Dubey
Ā 
RecoveryFix for Exchange Server
Albern Knight
Ā 
Codd rules
Jay Patel
Ā 
Install iRedMail on Red Hat Enterprise Linux, CentOS
InfoExcavator
Ā 
Mule esb :Data Weave
AnilKumar Etagowni
Ā 
Database Architecture and Basic Concepts
Tony Wong
Ā 
Image upload in php MySql
Ishaq Shinwari
Ā 
Mule with jdbc(my sql)
charan teja R
Ā 
Technical SEO: .htaccess & 301 Redirects
Rob Bertholf
Ā 
Ad

Viewers also liked (12)

DOC
SalmaCV
Salma Allabakash
Ā 
DOCX
Imtiaz Ahmed 786 new
Imtiaz Ahmed
Ā 
PDF
ARCS Written result
PMS PCS
Ā 
PDF
ENC DOO
Zeljko Pavlović
Ā 
PPTX
The life in the Cloud
beforeach
Ā 
PDF
ConcettiCalcolodelleProbabilit
Silvio Di Gregorio
Ā 
PDF
Contributi europei per le PMI e le startup
Novareckon Research
Ā 
PDF
Put first things first presented discuss agile delhi
Ebin John Poovathany
Ā 
PPTX
таничев константин+Гомашний ГетсаГ+клиенты
Konstantin Tanichev
Ā 
PPTX
Agile development introduction
beforeach
Ā 
PDF
7Habits_Zaheer Narejo
Zaheer Narejo
Ā 
PPTX
MySQL Introduction
mysql content
Ā 
SalmaCV
Salma Allabakash
Ā 
Imtiaz Ahmed 786 new
Imtiaz Ahmed
Ā 
ARCS Written result
PMS PCS
Ā 
The life in the Cloud
beforeach
Ā 
ConcettiCalcolodelleProbabilit
Silvio Di Gregorio
Ā 
Contributi europei per le PMI e le startup
Novareckon Research
Ā 
Put first things first presented discuss agile delhi
Ebin John Poovathany
Ā 
таничев константин+Гомашний ГетсаГ+клиенты
Konstantin Tanichev
Ā 
Agile development introduction
beforeach
Ā 
7Habits_Zaheer Narejo
Zaheer Narejo
Ā 
MySQL Introduction
mysql content
Ā 
Ad

Similar to Exporting And Importing Data In Mysql (20)

PPTX
Phpmyadmin administer mysql
Mohd yasin Karim
Ā 
DOCX
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docx
rochellscroop
Ā 
DOCX
All types of backups and restore
Vasudeva Rao
Ā 
ODP
Database Connection With Mysql
Harit Kothari
Ā 
PDF
Db import&export
sheetal sharma
Ā 
PDF
Db import&export
sheetal sharma
Ā 
PPT
My sql with querys
NIRMAL FELIX
Ā 
PPT
Introduction to MySQL - Part 2
webhostingguy
Ā 
PPT
MySQL
Gouthaman V
Ā 
ODP
Migration to Drupal
Will Hall
Ā 
PPTX
Web Application Development using PHP Chapter 6
Mohd Harris Ahmad Jaal
Ā 
PPT
MYSQL
Ankush Jain
Ā 
PPT
Mysql
Rathan Raj
Ā 
PDF
MySQL Backup and Security Best Practices
Lenz Grimmer
Ā 
DOCX
Scanned by CamScannerModule 03 Lab WorksheetWeb Developmen.docx
anhlodge
Ā 
PPTX
CHAPTER six DataBase Driven Websites.pptx
KelemAlebachew
Ā 
ODP
My sql Syntax
Reka
Ā 
Phpmyadmin administer mysql
Mohd yasin Karim
Ā 
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docx
rochellscroop
Ā 
All types of backups and restore
Vasudeva Rao
Ā 
Database Connection With Mysql
Harit Kothari
Ā 
Db import&export
sheetal sharma
Ā 
Db import&export
sheetal sharma
Ā 
My sql with querys
NIRMAL FELIX
Ā 
Introduction to MySQL - Part 2
webhostingguy
Ā 
MySQL
Gouthaman V
Ā 
Migration to Drupal
Will Hall
Ā 
Web Application Development using PHP Chapter 6
Mohd Harris Ahmad Jaal
Ā 
MYSQL
Ankush Jain
Ā 
Mysql
Rathan Raj
Ā 
MySQL Backup and Security Best Practices
Lenz Grimmer
Ā 
Scanned by CamScannerModule 03 Lab WorksheetWeb Developmen.docx
anhlodge
Ā 
CHAPTER six DataBase Driven Websites.pptx
KelemAlebachew
Ā 
My sql Syntax
Reka
Ā 

Recently uploaded (20)

PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
Ā 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
Ā 
PDF
Software Development Methodologies in 2025
KodekX
Ā 
PPTX
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
Ā 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
Ā 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
Ā 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
Ā 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
Ā 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
Ā 
PDF
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
Ā 
PDF
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
Ā 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
Ā 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
Ā 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
Ā 
PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
Ā 
PDF
Best ERP System for Manufacturing in India | Elite Mindz
Elite Mindz
Ā 
PDF
Software Development Company | KodekX
KodekX
Ā 
PPTX
Stamford - Community User Group Leaders_ Agentblazer Status, AI Sustainabilit...
Amol Dixit
Ā 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
Ā 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
Ā 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
Ā 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
Ā 
Software Development Methodologies in 2025
KodekX
Ā 
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
Ā 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
Ā 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
Ā 
cloud computing vai.pptx for the project
vaibhavdobariyal79
Ā 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
Ā 
REPORT: Heating appliances market in Poland 2024
SPIUG
Ā 
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
Ā 
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
Ā 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
Ā 
Presentation about Hardware and Software in Computer
snehamodhawadiya
Ā 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
Ā 
DevOps & Developer Experience Summer BBQ
AUGNYC
Ā 
Best ERP System for Manufacturing in India | Elite Mindz
Elite Mindz
Ā 
Software Development Company | KodekX
KodekX
Ā 
Stamford - Community User Group Leaders_ Agentblazer Status, AI Sustainabilit...
Amol Dixit
Ā 
Coupa-Overview _Assumptions presentation
annapureddyn
Ā 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
Ā 

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