backup only all tables you need from localhost so your .sql file contain only the tables you need & after this go to your live server keep your databse as it
the use the following cmd from unix/linux SSH to keep the old tables & only restore the new tables
mysql -u username -ppassword databasename -D < /pathto/datbase.sql
this cmd is used for restoring only some tables & let other tables as it
don’t forget please backup every thing before trying this to avoid any problems
Related Posts:
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- Column count doesn’t match value count at row 1
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- MySQL string replace
- Access denied for user ‘root@localhost’ (using password:NO)
- Which MySQL data type to use for storing boolean values
- ERROR 2003 (HY000): Can’t connect to MySQL server on localhost (10061)
- Cannot delete or update a parent row: a foreign key constraint fails
- PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused
- Your password does not satisfy the current policy requirements
- MySQL: Access denied for user ‘test’@’localhost’ (using password: YES) except root user
- What is the definition of cardinality in SQL
- How to restart remote MySQL server running on Ubuntu linux?
- Host ‘xxx.xx.xxx.xxx’ is not allowed to connect to this MySQL server
- PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- mysql Foreign key constraint is incorrectly formed error
- Selecting data from two different tables without using joins
- Difference between VARCHAR and TEXT in MySQL
- MySQL: Invalid use of group function
- How can I loop through all rows of a table? (MySQL)
- mysql: SOURCE error 2?
- How to avoid MySQL ‘Deadlock found when trying to get lock; try restarting transaction’
- Simple Random Samples from a Sql database
- What does SQL clause “GROUP BY 1” mean?
- LAST_INSERT_ID() MySQL
- SQL select only rows with max value on a column
- Trying to perform MINUS operation in MySQL
- How do I find which transaction is causing a “Waiting for table metadata lock” state?
- mysql count duplicates
- phpmyadmin #1045 Cannot log in to the MySQL server. after installing mysql command line client
- Repair all tables in one go
- MySQL config file location – redhat linux server
- Create boolean column in MySQL with false as default value?
- Is there a naming convention for MySQL?
- Error Code 1292 – Truncated incorrect DOUBLE value – Mysql
- MySql – HAVING vs WHERE
- How to stop mysqld
- Is merge statement available in MySQL
- GROUP_CONCAT comma separator – MySQL
- Set page template for all pages?
- Optimize Multiple Taxonomy Term MySQL Query?
- WordPress MySQL & PHP Performance
- What specific database privileges does WordPress need?
- Using source control with WordPress
- My WordPress site always displays a cached version of its homepage
- Updating User Meta with SQL Query
- wpdb prepare syntax
- How to run this SQL query of wp_terms database
- Configure WordPress to connect to Mysql DB using SSH tunneling
- Proper way to work with wpdb to get user’s firstname
- How to change post format from Aside to Image for all posts?
- Inserting Hundreds of Thousands of Posts at Once
- wp_admin edit.php slow with lots of queries
- How to add and SQL query of posts only published
- Slow Mysql Queries
- can database and media folder be moved to a different drive?
- Find duplicate posts with same slug and author
- SQL error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’ [closed]
- writing inner join in wpdb
- Migrating from Existing MySQL Setup to WordPress
- How to split the a table in database?
- How do I join a $wpdb query with user meta using default value if not exist?
- mySQL statment count of post in each category and sub category
- Paypal Post IPN handeling nightmare
- Defining the same price to all WooCommerce Products
- Database Structure on Different Servers
- Is there a page length limit?
- WordPress tables and aliases?
- What’s the sql for this condition?
- Create a form with custom autocomplete address field and CSV import values
- WordPress insert query is not working : Showing no Error
- Copy usermeta value where ID matches in the same table
- Some Post Content Does Not Show Up In DB Search
- How can I write a formal sql query to get data from a custom table
- How to fetch all meta_key and meta_value using post_id wihout duplication of post meta using sql query
- Upgrade DB Loop – WordPress DB Version Conflict
- How can I view my site directly from WordPress dashboard?
- (WP List Table) How to sort by SKU and Custom Fields?
- Word Press and database from another server sync
- User set date and time from frontend doesn’t get stored into database
- get posts whether meta_key exists or not
- How to run SQL query from WordPress ‘WP Crontrol’ plugin
- How to bulk delete a certain part of all wordpress posts
- When I add metadata, metavalue length is added in to the value in some cases
- Changes not being reflected on new server
- How to show result of sql query in a page?
- update_option returns false in AJAX, how to debug?
- WordPress database error Duplicate entry for key ‘slug’
- MySQL – How to combine data from two tables into one?
- MySQL Select within WP Page template
- Stop my loop to register data twice
- `#1215 – Cannot add foreign key constraint
- How to restore: Database intact but folders deleted
- XML RPC post produces immediate revision with odd post_date_gmt
- Woocommerce: Grab total revenue of a product over all orders
- Delete posts with word count less than x number of words
- SQL Database Lost
- How to find source of these strange SQL queries?
- Possible SQL injection. How to locate and fix?
- How to reduce uncached page generation time?