From the course: WordPress: WP-CLI

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Overview of wp db commands

Overview of wp db commands - WordPress Tutorial

From the course: WordPress: WP-CLI

Start my 1-month free trial

Overview of wp db commands

- [Instructor] Going beyond the capabilities of the WordPress dashboard WP CLI lets you interact with the WordPress database in a lot of different ways. Here's an overview of the WP DB command. You can see that there's a lots of sub commands for getting information about the database, information out of the database and even launching a My SQL console so you can do queries directly against the database. WP CLI makes interacting with the WordPress database a lot easier because it performs these operations using credentials you've already stored in WP config. So you don't need to worry about remembering the host, the database name, the username, and more. Now before we get to interacting, let's get some information about our database. Oh, and a disclaimer moving forward, definitely backup your database or use a local site when learning how to use WP DB. You don't accidentally want to destroy a live site. Okay, so onto some…

Contents