From what I can see, you are inserting data in table wp_commentmeta
. However the column meta_id
has a Primary Key restriction. You can see the table definition at http://codex.wordpress.org/Database_Description#Table:_wp_commentmeta
As meta_id
has a Primary Key restriction, this column may only hold unique values. The insert statements you have posted show only unique values for meta_id
, therefore my guess is that your current wp_commentmeta
table already holds data. Value ‘1’ is already in table and therefore you cannot insert ‘1’ again.
Related Posts:
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- Import 10,000 Users into WordPress WITH a specific ID for each user
- phpMyAdmin displays error when importing database
- Error establishing a database connection (Set-up locally)
- How to create a foreign key in phpmyadmin
- How to return number of found rows from SELECT query
- Check if post of title already exists
- $wpdb->delete column values IN ARRAY()?
- How To Make Connection To WordPress Data Base In A Plugin?
- Changing user_nicename
- Does WordPress cache get_user_meta() results?
- WordPress will not operate correctly
- How to Join two tables from separate databases within WordPress
- error importing localhost export file to server
- How to sort results from a custom database table
- How can I call a row of user specific data from a custom table added to the WP Database
- Insert post without actions/hooks
- How to merge local and live databases?
- How to track a users progress through pages by inserting data into WordPress Database?
- WP database error for comments_popup_link()
- if statement on database query
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- No wp-config.php file on local install of wordpress – site still displays
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- Different database query in function.php using mysqli
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Create WP_Query to search for posts by their categories or their parent/child categories
- WordPress database import: Row size too large
- WordPress not reflecting changed of the database
- How to display data from custom table in wordpress phpmyadmin
- How can I save unique user data on my site? [closed]
- Is it possible to create a wordpress database with php code?
- Update results, Before deleting the related category [closed]
- database sent to a JSON file
- inserting a post from an extern php file but post content doesn’t show on wp site
- Using custom tables for old posts
- Not connecting to database in file with multiple MySQL connections
- WordPress Block developer from exporting Database via PHP
- wpdb prepare insert table doesn’t work
- Should I use WordPress to skin a database website?
- How do I display offsite database info on my wordpress site?
- 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)
- I can’t update my data through $wpdb
- Why when I create a new post I found 2 record related to this post into the posts database table?
- Adding data to custom wordpress database table
- Add row to custom database Table and delete all rows older than 1 day
- select a single val though a table in wordpress
- SQL error with custom query
- What’s wrong in my PHP code? I’m using WordPress Astra Theme and I can’t insert data into my SQL
- Please help! I have a problem with getting wordpress databas
- PHP Warning: mysqli_query(): after updating my websites php from 5.6 to 7.2
- Unable to insert two value in two different columns (WordPress database)
- Using wpdb to connect to a different database is not working
- 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?
- Insert data from form to database
- can’t delete a row from post_meta table
- How to set max users to 17.000
- two wordpress sites, two themes, one database, same content
- Insert double entry in DB
- How to connect database table to each registered wordpress user.
- Let users register weight each day and save it in DB
- MySQL database migration to WordPress
- Custom query_posts() parameter
- How to pass username into form that sends data to database
- How to edit the default database of WordPress [closed]
- Display total count of products in orders of a specific order status
- Getting invalid user ID error when creating a new user with wp_insert_user
- Execute multiple PHP Snippets causes error?
- Custom form that stores data in mysql database
- Putting form result in my database
- Can’t insert into a database wordpress
- Undefined function mysql_connect()
- MySQL column count doesn’t match value count at row 1 [closed]
- Inserting dynamic content into a page
- Export User Info to CSV from Front End
- WordPress admin never finishes saving page on site with large page count
- Update some database fields when post is saved
- sql query to put quotes around numbers in img tag
- Strange wordpress slowness
- Setting All Drafts to ‘exclude-from-catalog’ in WooCommerce
- Accessing the database from a plugin outside of action hooks
- Databases – Submitting data from inputs to database [closed]
- WordPress Custom SQL Table with UserID Filter for results
- How to get image from url from the database?
- Use variable in SQL statement
- How to track who has deleted files
- How to display results from a data table with an encrypted user id?
- How to WP_Query posts order by parent title?
- how to get data from two different table from wordpress database
- Passing Current User ID into SQL statement
- Processing forms with php to wordpress database
- How to fetch results from database
- Using the same shortcode to show any table from the database
- Create an unique ID number after submit form
- How to send push notification in android using php? [closed]
- running an existing WordPress site from Visual Studio Code?