Your SlideShare is downloading. ×
  • Like
  • Save
Exporting And Importing Data In Mysql
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Exporting And Importing Data In Mysql

  • 1,376 views
Published

Exporting And Importing Data In Mysql

Exporting And Importing Data In Mysql

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,376
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. EXPORTING AND IMPORTING DATA IN MYSQL
  • 2. OVERVIEW
    Different ways if exporting and importing
    Exporting database in mysql
    Importing database in mysql
  • 3. Different ways of exporting and importing data
    Import and export data graphically via phpMyAdmin
    Use an SSH tunel for mysql and use a third party tool
    Use mysql command line
  • 4. Import and export data graphically via phpMyAdmin
    Steps 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 sql
    6.Select the structure
    7.Select data
    8.Select save file as and choose preferred compression format
    9.Click on GO
    Mysql data will be downloaded to your default browser’s destination.
  • 6. Steps to import a database from phpMyAdmin
    before 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 password
    Click on mysql databases
  • 7. create your new database by entering the name
    Click on “add database” Enter the username and password
    Click on “add user”
    Add new user to the database by selecting user and database
    Click on “add user to database”
    Click on “phpMyAdmin”
  • 8. 1.Login to phpMyAdmin
    2.Select on import menu
    3.Locate sql file on your computer
    4.Click on GO
    This method has limitations especially when we have to download very large files, this method doesn’t work well.
  • 9. EXPORTING DATABASE THROUGH COMMAND LINE
    Use mysqldump which is a tool to export and import database
    It 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 LINE
    We can restore the data from backup file
    Or
    Import 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 DATA
    Data 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 tutorials
    Pick 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