1

I have written a code in Python which accesses Mysql database in my computer.My question is how do I make my program run on other machines i.e how do I transfer the database ?? Thank you for reading...

2
  • 2
    Look into export/import mysql database.
    – Ryan
    Jun 12, 2012 at 19:45
  • Depends are you really looking to export the database or just connect to it? If just looking to export jojo's answer is the one you're looking for. Jun 12, 2012 at 20:04

1 Answer 1

2

use the tools that come with MYSQL installation from command line

backup

mysqldump -u root -p pass21 --databases yourdb > multibackup.sql

restore

mysql -u sadmin -p pass21 Customers < multibackup.sql

Backing-up-and-restoring-your-MySQL-Database

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.