This may not be the best solution. I am not an expert. But the following helped solve my problem and I can add columns using the PhpMyAdmin without getting any errors.
I went over to the SQL tab and then I ran the following query
show variables like 'sql_mode';
Then in order to remove i ran the following query
set global sql_mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION";
This helped solve my problem.
Related Posts:
- Why does changing Database Table Prefixes result in loss of content?
- DB prefix not updating
- I wanted to Know that how can I give ingore to 0000-00-00 in my config file
- Inserting Post Meta From SQL
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- Delete all post meta except featured image
- How to execute mulitple statement SQL queries using $wpdb->query?
- Delete duplicate rows from wordpress database where a column is duplicate in phpmyadmin
- Database with mixed collation (utf8mb4 & utf8_general_ci)
- Query WordPress database by registered date and role
- Set Display Name to first and last name (phpmyadmin SQL Query)
- Size article thumbnails and retrieve them directly from database
- Emojis getting converted to “?”
- Delete all post meta except featured image Using SQL
- wpdb_prepare with multiple or condition
- WordPress mysql table double prefixes
- SQL Error wp_commentmeta – incorrect table definition
- WordPress and MySQL: how to transfer Meta_key and Meta_Value from one post_id to another
- How do I get the posts within a certain year/date(with sql query)?
- WordPress database import: Row size too large
- WordPress Database Huge wp_usermeta Table
- Create table from array with prepare
- Query multiple tables at once?
- Changing root password in PHPMyAdmin for WordPress Database when going live
- Can’t update WordFence Options, clear data manually
- Why this query is not showing any result on wordpresss home page?
- How to migrate a database from a server to another
- SQL query to set posts in bulk based on the post content
- Files on Localhost, Database on Server
- $wpdb->get_var – What value is returned when zero records are found?
- Installing local to live WP into subdirectory
- I imported an restore an database and It shows #1067 – Invalid default value for ‘user_registered’
- How to edit custom table data in frontend
- How to map data on CSV to web pages?
- How to create index (sql) to a meta_key?
- Delete all users meta that named: user_avatar
- The MySQL Connection could not be established., before it was joomla but i have change it into worpress
- How to retrieve user data based on role using SQL?
- WordPress character set issue
- Missing latest posts and options after DB migration via phpMyAdmin
- Check if a database is well installed
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- export individual posts to text files or a single csv file
- SQL query : Select a thumbnail for a media
- why you don’t Implement PDO for access every thing to database
- SQL Query to get post_id from wp_posts and and meta_key(s) from wp_postmeta
- Have WordPress Use a Different Database for users
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Case statement in MySQL
- Oracle SQL query for Date format
- Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)
- importing a CSV into phpmyadmin
- Error: Duplicate entry ‘0’ for key ‘PRIMARY’
- Using wpdb to connect to a separate database
- The MySQL alternatives: Do Percona Server and MariaDB work well with WordPress, and do they make WordPress go better?
- wpdb->insert multiple record at once
- WordPress for a very large website
- WooCommerce with thousands of products – site is very slow – optimize db queries? [closed]
- How to Join two tables from separate databases within WordPress
- Change SQL get_results to search for posts with custom term in custom taxonomy
- wpdb query on custom table not working [closed]
- stdObject stored in database. How does one convert it to usable format?
- Using table lock with wp_insert_post?
- Does WordPress ever need multiple databases?
- Why are no posts showing despite my apparently correct DB restoration?
- How to query the WordPress database to get posts of a certain custom post type, taxonomy and field?
- phpMyAdmin displays error when importing database
- WordPress database error – Error in SQL syntax – I can’t identify any error?
- Change WordPress prefix for only one table?
- Database Tables Lost Indexes? How to Recover?
- Migration: Copying database content to a different server
- Call to undefined function get_user_meta() – trying to access data in MySQL from custom fields
- Have working sql query… trying to adjust it to use $wpdb
- Remove empty rows from the database
- Custom WordPress Table wpdb
- how to encyrpt DB_PASSWORD in wp-config
- How can I detect right db type?
- Delete all posts that do NOT have a specific tag
- Changing order of db results when encoding to JSON
- Backing up WordPress database and files
- Link multiple user databases together?
- Sql query to get all metadata for a post
- Recovery – Restore Database after moving folder location locally
- Set a cron job to delete a specific database table table every midnight
- Job and Employee Performance Tracking with Product Safety
- Is there any defects for using same database prefix in WordPress for multiple sites?
- SQL database import #1046 error
- How to import products in host instead of database on wordpress?
- syntax error for changing user role from database
- 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
- Merging development site with live site
- live site do not update after importing sql database
- MySQL Database User: Which Privileges are needed?
- Import Excel (or csv) Table with user-data as subscribers to wordpress
- Print output of Table Creation
- SQL command to export post_content from wp_posts using phpMyAdmin
- WordPress database connection failed, while mysql client is working [closed]
- How to generate PDF dynamically based on values from the database in WordPress