O'Reilly logo

MySQL 8 Cookbook by Karthik Appigatla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

The mysqldump utility comes along with the mysql binary, so you do need to install it separately. Most production scenarios are covered in this section.

The syntax is as follows:

shell> mysqldump [options]

In the options, you can specify the username, password, and hostname to connect to the database, like this:

--user <user_name> --password <password>or-u <user_name> -p<password>

In this chapter, --user and --password are not mentioned in every example, to keep the reader focused on other important options.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required