1) In order to check what kind of prefix used by current installantion you can goto wp-config.php
in a root directory and find line with $table_prefix = 'PREFIX_HERE'
; variable
2) Backup the DB before making any action!
3) Additionally check if other tables with different prefixes/name_patters are not used by badly-written 3rd party plugins. They may not follow a good-practice:
Do not hardcode the WordPress database table prefix (usually “wp_”)
into your Plugins. Be sure to use the $wpdb->prefix variable instead.
4) Right after this done you can drop all tables using a UI mysql admin panel or using more advanced way:
a. Generate a DELETE query programmaticaly:
SELECT CONCAT( 'DROP TABLE ', GROUP_CONCAT(table_name) , ';' )
AS statement FROM information_schema.tables
WHERE table_schema="YOUR_TABLE_NAME" AND table_name LIKE 'WORDPRESS-PREFIX_%';
b. Perform generated result.
Related Posts:
- Database with mixed collation (utf8mb4 & utf8_general_ci)
- Query multiple tables at once?
- Why does changing Database Table Prefixes result in loss of content?
- How to edit custom table data in frontend
- How to map data on CSV to web pages?
- Have WordPress Use a Different Database for users
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- MySQL SELECT increment counter
- Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)
- Using wpdb to connect to a separate database
- WordPress (MyISAM) database is slow, should I switch to InnoDB?
- The MySQL alternatives: Do Percona Server and MariaDB work well with WordPress, and do they make WordPress go better?
- WordPress Database lost auto increment
- wpdb->insert multiple record at once
- Restoring WordPress posts from database only
- Slow wp_term_relationships query
- How to use “TRUNCATE TABLE” MySQL statement?
- Using Dynamic Data Pulled from a MySQL Table in a WordPress Page
- WordPress for a very large website
- What are conventions about the schema of the $table_prefix
- WooCommerce with thousands of products – site is very slow – optimize db queries? [closed]
- Migrating non-WordPress CMS to WordPress, lots of data to move — possible solutions?
- BuddyPress: What’s the use of wp_bp_xprofile_data table and how does it get updated? [closed]
- Is deleting orphaned wp_options entries safe?
- How to solve slow WordPress site caused by attachment_metadata
- Delete all post meta except featured image
- WooCommerce – Query for ordered products
- Large database causes slow load
- stdObject stored in database. How does one convert it to usable format?
- Delete duplicate rows from wordpress database where a column is duplicate in phpmyadmin
- Database slowdown after update to 3.4.1
- Query WordPress database by registered date and role
- Tons of Twitter rows in my database
- How to insert data into MySQL database from the form created in WordPress site
- Set Display Name to first and last name (phpmyadmin SQL Query)
- Does WordPress ever need multiple databases?
- Why are no posts showing despite my apparently correct DB restoration?
- Select Multiple meta_value from WP DB; Single Query
- Which is more efficient? Using usermeta, or creating a new MySQL table?
- Is it possible to split database tables using HyperDB?
- What happens if I overwrite the current wp_options table with a backup from a week ago?
- SQL Error wp_commentmeta – incorrect table definition
- WordPress database error – Error in SQL syntax – I can’t identify any error?
- CRUD operations using WordPress database API
- Change WordPress prefix for only one table?
- How do I get the posts within a certain year/date(with sql query)?
- How to Mirror WordPress database from Remote server to Local server
- Is MariaDB’s Aria storage engine suitable for WordPress?
- Slow queries constantly getting stuck on WordPress database of ~100,000 posts
- How do I query wp_options for expired transient pairs with MySQL commands?
- Retrieve data from the database to table such as comments in the admin control panel
- WordPress running SQL query to update database from form
- How to fix database error duplicate entry
- Migration: Copying database content to a different server
- Call to undefined function get_user_meta() – trying to access data in MySQL from custom fields
- How do I convert a MySQL database from utf8mb4 to utf8 encoding?
- Have working sql query… trying to adjust it to use $wpdb
- creating new field on mysql
- Remove empty rows from the database
- Custom WordPress Table wpdb
- Why this query is not showing any result on wordpresss home page?
- Best practice to limit results in get_row()?
- Trouble running $wpdb->query() with last_insert_id
- how to encyrpt DB_PASSWORD in wp-config
- SQL query to set posts in bulk based on the post content
- How can I detect right db type?
- Can I customised default WP table
- Changing order of db results when encoding to JSON
- Second ezSQL initialization for MSSQL
- Fetch a single row from a custom table for to a given ID
- Database create or redirect
- Will adding & modifying default WordPress table index break future WordPress update
- How to escape percentage sign(%) in sql query with $wpdb->prepare?
- Link multiple user databases together?
- Recovery – Restore Database after moving folder location locally
- I wanted to Know that how can I give ingore to 0000-00-00 in my config file
- What is my error trying to create a new table in the database?
- Set a cron job to delete a specific database table table every midnight
- How to import products in host instead of database on wordpress?
- I would like some help wth an SQL query to link posts with categories
- Where is the HTML-handler part in the wpdb class?
- next comment id number wordpress
- How can I get $wpdb to show MySQL warnings?
- Merging development site with live site
- The MySQL Connection could not be established., before it was joomla but i have change it into worpress
- How to extract some part of WordPress full source code
- Missing latest posts and options after DB migration via phpMyAdmin
- Check if a database is well installed
- live site do not update after importing sql database
- How do i get value from wp_postmeta?
- Insert double entry in DB
- “MySQL server has gone away” since update to 3.8
- featured image not showing up with mysql_connect
- MySQL Database User: Which Privileges are needed?
- Import Excel (or csv) Table with user-data as subscribers to wordpress
- Print output of Table Creation
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- SQL query : Select a thumbnail for a media
- SQL Query to get post_id from wp_posts and and meta_key(s) from wp_postmeta
- How to find fresh (last modified) and sql backup?