Damn, the error was pretty intuitable: most tables in my database lacked of AUTO_INCREMENT
Since ID is not defined in the INSERT query, it will be 0 unless AUTO_INCREMENT
is setted to ID.
So I just fixed it by setting AUTO_INCREMENT
Related Posts:
- Copy customizer options to child theme
- WP 5.5, child themes, customizer and a weird cache issue
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Keeping WP database synced across multiple developers using git
- Staging sites, how do you manage synchronising updates in the DB?
- How to get the post publish date outside the loop?
- Using transients in conjunction with memcached
- How to define composite keys with dbDelta()
- Has parent field in the table wp_term_taxonomy has term_id or term_taxonomy_id
- Forcing nickname as display_name in custom edit profile template
- Syncing local content with development / staging sites
- Export WP database for import using WP-CLI on Vagrant Box
- How to get site URL if database is disconnected?
- Showing content from another wordpress installation database in the page template loop?
- Multiple WP install with same users database
- Dynamic data in `wp_register_script` needed
- WordPress page title repeated in SOME pages
- Why is $wpdb->get_results failing on certain tables but not others (which have data)?
- Using two different DB users on one WP install
- How to correctly add a table to the WordPress MySQL database
- Can I transfer a mysql database to another site?
- Help running a MySQL query to update all wp_#_options tables in a Multisite install
- How to verify password outside WordPress?
- Weird issue with database migration and SSL links
- Is it safe to convert tables from MyISAM to InnoDB?
- How to use a different database to list and manage comments in the backend
- How do I properly update the WordPress database password?
- wpdb_prepare with multiple or condition
- $wpdb->insert is not working
- WordPress Install and Database on separate hosting?
- Moving a site from a temporary domain to the live domain [duplicate]
- Error establishing a database connection on Installation
- What is this in my tables
- Why is it that not all users have a ‘session_tokens’ meta_key record in the usermeta table?
- WP get stuck with a query on MySQL when the site is resumed
- Use mulitple usernames?
- Routine to convert custom post meta from old to new value
- How to move the WordPress site Layout from test site to Production site?
- Trying to change database tables storage engine to innodb gives error “invalid default value for ‘post_date'”
- database connection [closed]
- sanitize POST arrays
- WP character encoding error after sharing post on Facebook �
- Sending data with multi step form to wp database
- Able to use all admin pages but in the frontend there is a “Error establishing a database connection”-Error
- WordPress query is not returning proper results
- Retrieve data from the database to table such as comments in the admin control panel
- Need to store custom user information (many-many relationsips), preferably not as user meta
- charset problem with new custom table
- Undefined Variable: mysqli error when connecting to database
- Localhost to Staging to Development Dynamic WP-CONFIG
- How to connect to a remote database in WordPress?
- Selectively restoring original posts from a compromised site to a freshly installed WordPress database
- can we add extra table or column in wordpress for adding our data
- Which data is written and stored in the database when read-only (non-posting, non-commenting) users visit the site?
- $wpdb is not initiating
- Duplicated site isn’t recognized as a site
- My options table is huge. What can I do?
- What can I do when an outside party hacks into my weblog and changes my display name?
- Changing root password in PHPMyAdmin for WordPress Database when going live
- Cannot restore wordpress database from sql dump [closed]
- WooCommerce: remove sample & dummy data
- multiple wordpress installation with shared usertable on an different database
- Is database deleted on clicking “reinstall” button in WordPress updates?
- wordpress database restore – broken link
- 6 random character prefix automatically added to entire DB tables, how / why? [closed]
- Insert Custom Data into wpusers
- I cannot find the difference between these wp_capabilities values in wp_usermeta
- What unexpected data might be stored in terms table and related tables?
- No users table in WordPress’s database
- Copying blog from root to /folder (Not moving)
- How to restore an option_value with serialized data from backup data
- Any other way of storing plugin admin data setting
- Will memcached improve performance with WP Super Cache already running?
- How can i restore a WordPress site with the DB and WordPress Files
- User input to database
- What structure and database storage method should I use for temporary storage that may be written concurrently?
- Change user_nickname for author page link
- What is recommended data type and encryption type for password in a database
- WordPress site migration – locked out of admin area
- Error establishing a database connection with XAMPP
- How to map data on CSV to web pages?
- Search and replace http:// to https:// 10x my database size
- Database size for news publishers?
- Db connection problem on Azure Since database moved on CLEARDB
- How to get specific table by current user login
- After Migration From dev, Only my Links to the Homepage Still Redirect to dev
- do I need to change the default database prefix?
- WordPress Database Posts Table query
- How to use separate database on differrent server with different username and password in wordpress for users data
- Manage 3 Layers Of Information (CTP – Posts – Then Maybe Metadata?)
- Get id from database
- How to write to wp-users table
- Theme options not being sent to Database
- What’s wrong with my $wpdb query?
- What is good W3 total database caching option? [closed]
- Moving database from WP 2.6 to 3.5 problem
- How do I find posts?
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- Homepage redirects to other site of mine? [closed]
- Upload wordpress from localhost to 000webhost