Share Share on Facebook Share on Twitter Pinterest Email sudo su Doing without the -u and -p worked for me (when I was logged in as root): mysqldump --opt mydbname > mydbname.sql 0 Siddharth Shukla Website Related Posts MilesWeb Review: Highest Rated WordPress Hosting for Your Website November 10, 2021 How to get your SSL to work with Elementor April 27, 2021 How to charge WooCommerce shipping by item February 2, 2021 WordPress plugin install: Could not create directory January 13, 2021 Write A Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.