I'm working on a small web project (MariaDB LAMP stack) on my desktop but I'd like to be able to continue working on the project when I am away from home computer. I think I can sync my /var/www/html/ directory without a problem but does how can I export my MariaDB database and imort it into my laptops Linux OS for continued development when I'm away from my home computer?
lewashby 56 Junior Poster
Recommended Answers
Jump to PostHi,
an easy solution is a mysqldump:
mysqldump --no-data --opt db_name | mysql --host=remote_host -C db_name
This command will dump from local to remote database (remote would be the laptops), the
--no-data
option dumps only theCREATE TABLE
statements, without the insert statements. For …
All 3 Replies
cereal 1,524 Nearly a Senior Poster Featured Poster
lewashby 56 Junior Poster
cereal 1,524 Nearly a Senior Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.