{"repo":"wp-cli/db-command","free":true,"listed":false,"github":"https://github.com/wp-cli/db-command","clone":"git clone https://github.com/wp-cli/db-command.git","description":"Performs basic database operations using credentials stored in wp-config.php.","language":"PHP","stars":76,"topics":["wp-cli","wp-cli-package","wordpress","cli","db","mysql","mariadb","hacktoberfest"],"license":"MIT","category":"databases-storage","readme_excerpt":"wp-cli/db-command ================= Performs basic database operations using credentials stored in wp-config.php. Quick links: Using Installing Contributing Support Using This package implements the following commands: wp db Performs basic database operations using credentials stored in wp-config.php. wp db EXAMPLES # Create a new database. $ wp db create Success: Database created. # Drop an existing database. $ wp db drop --yes Success: Database dropped. # Reset the current database. $ wp db reset --yes Success: Database reset. # Execute a SQL query stored in a file. $ wp db query ] [--dbpass= ] [--yes] [--defaults] Runs DROP TABLE for each table that has a $table prefix as specified in wp-config.php. OPTIONS [--dbuser= ] Username to pass to mysql. Defaults to DB USER. [--dbpass= ] Password to pass to mysql. Defaults to DB PASSWORD. [--yes] Answer yes to the confirmation message. [--defaults] Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration. EXAMPLES # Delete all tables that match the current site prefix. $ wp db clean --yes Success: Tables dropped. wp db create Creates a new database. wp db create [--dbuser= ] [--dbpass= ] [--defaults] Runs CREATE DATABASE SQL statement using DB HOST , DB NAME , DB USER and DB PASSWORD database credentials specified in wp-config.php. OPTIONS [--dbuser= ] Username to pass to mysql. Defaults to DB USER. [--dbpass= ] Password to pass to mysql. Defaults to DB PASSWORD","default_branch":null,"files":null,"tree":[],"storefront":"/r/wp-cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wp-cli/db-command/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}