If you have already created the database that you wish to import into and you have selected that database in PHPMyAdmin, but the import file is trying to create a new database, then you will see this error message.
All you need to do is open up the SQL file in a text editor and delete the line that begins with CREATE DATABASE
(it will be very near the top of the file).
Now try the import again and it should import that data into your selected database rather than trying to create a new one.
Related Posts:
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- How to auto login user again after change user_login
- How to Join two tables from separate databases within WordPress
- Import 10,000 Users into WordPress WITH a specific ID for each user
- WPDB: how to get the value of a field in a custom database table
- #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- How to generate page content from database the right way?
- Transferring working local PHP site to wordpress – with database (MySQL)
- Is it possible to create a wordpress database with php code?
- Databases – Submitting data from inputs to database [closed]
- Is it best to avoid using $wpdb for security issues?
- Lost in trying to create user database system
- Filter results from a serialized string to use on statistics
- wordpress site – using custom database and PHP
- Error establishing a database connection (Set-up locally)
- add role on WordPress in PHP on a second database
- Unable to insert two value in two different columns (WordPress database)
- why not selecting multiple rows of same standard_id using SQL query from database?
- Can I disable auto increment of WordPress Posts Database to utilize previously deleted records?
- Front end/Database connection in WP
- direct query to post_meta table
- can’t delete a row from post_meta table
- Can not manually create a database ( db, user, pass ) for a plugin
- How to merge 2 WordPress sites?
- Querying multiple meta_keys in WordPress SQL query
- Retrieve data from external database and insert back in
- Transaction when using WP functions rather than vanilla SQL?
- what is the use of /wp-includes/SimplePie?
- Display data from a non wordpress database on a page template
- Inserting choice in database table
- How To Make Connection To WordPress Data Base In A Plugin?
- Has anyone tried putting PHP ActiveRecord on WordPress?
- count number of user comments with a specific comment meta value
- Duplicate domain database to local – How?
- How can I call a row of user specific data from a custom table added to the WP Database
- How to merge local and live databases?
- How to track a users progress through pages by inserting data into WordPress Database?
- my function doesn’t return my post from today
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- Any possible way to make $wpdb->get_results() return anything else than array?
- how to delete 30 day old data using PHP [closed]
- Storing Array from returned database query and using the array in a new query
- WordPress not reflecting changed of the database
- Detect session/cookie variable in wordpress to prevent access to documents
- How can I get the total number of installed importers?
- Querying wpdb using PHP
- How can I save unique user data on my site? [closed]
- Archive post by meta value + 24hours
- Using custom tables for old posts
- db converts decimal number wrong
- How can I import an excel column into wordpress database?
- Execute a function every hour in the background
- Create page with custom php script and fetched data
- Creating Database Table vs. Adding MetaData to Post & User
- WordPress and MySQL: trying to print data using PHP from user_meta custom field data
- Most commented posts by time period (last 12h, last 24h and etc)
- Cant connect to database with php 7.3
- Include style.css in the Child Theme with PHP
- PHP -> SQL Query with Summing
- Set default Database Storage Engine when creating tables with plugins?
- Plugin can’t write to database even though permissions appear correct?
- Remove password protection from all posts
- SQL error with custom query
- Unserialize Custom Field & Save as Multiple Rows in WordPress Database
- WordPress: Export/Import Yoast meta title & description to custom taxonomy
- WordPress SQL Prepare
- Create a new account on site B with data from the purchase of site A
- How to search order using database frontend short code WordPress
- Run a sql (update) after 12 hours after the user login. Woocommerce users
- PHP Warning: mysqli_query(): after updating my websites php from 5.6 to 7.2
- wp_update_post gives 500 internal error
- Import Instagram post as WordPress post
- Collect all events in one year
- getting the values of hidden inputs to use them in a php mysql query
- wp-login.php?redirect_to=https problem
- Getting error in sql query
- user update profile for custom code
- 403 Forbidden Localhost Wamp Apache Php
- WordPress character set issue
- SQL Query Search page
- Importing demo data in Multisite
- Accessing external database: ERR_INCOMPLETE_CHUNKED_ENCODING
- AJAX Not Working With WordPress Database properly
- Manipulate database of WordPress site with my own scripts
- Problems with plugin that fetches data from database with ajax
- Let users register weight each day and save it in DB
- How to export database correctly for local to online
- Query specific posts per user selections from dropdown menus
- WXR XML import is stripping php tags that I need to keep
- Fetching wpdb data from a php file seems to break?
- How to pass username into form that sends data to database
- Insert into db with foreach problem
- save array of objects with update_option
- Execute multiple PHP Snippets causes error?
- How to sort search result by post_title, then by post_content
- How to use phpspreadsheet reader with $wpdb
- Can’t insert into a database wordpress