Any risk to changing WP table col CHARACTER_MAXIMUM_LENGTH?

The post_type field is an internal feld, you shouldn’t be giving it values that require longer column lengths, and there’s no need for it to be user facing. WP allows you to override everything about it, from the query variable name, rewrite rules, to the wording displayed. But more importantly, you shouldn’t modify WP core. … Read more

In which format the data is stored in WordPress Databases?

That’s not JSON, it’s serialised PHP data. If you try to store a value that isn’t a primitive string/number, such as an object or array, WordPress serializes it using PHP. How do we decode this structure deserialize( … ); However, I do not recommend relying on this for practical and security reasons. Don’t store structured … Read more

Will there be any concern if I upgrade my current WordPress Database server from Centos 7 Mariadb 5.5 to Centos 8 Mariadb 10.3?

WordPress is unaware of what kind of database server you’re using, as long as it accepts MySQL flavour SQL, can be communicated with via the mysqli PHP extension, and supports the feature set of the minimum requirements, WordPress is happy. As a result, none of the concerns you need to worry about are related to … Read more

Two prefixes in database? Which one is valid?

Check the wp_config.php file… look for a line that reads: $table_prefix = ‘qfo_’; Or… $table_prefix = ‘wpax_’; Which ever one is set in wp_config.php is the one that your WordPress site is using. If the tables aren’t being used then they’re not really doing any harm other than taking up space, but once you’re sure … Read more

Are these WordPress tables safe to add indexes to?

These tables aren’t indexed These tables are indexed For example, the post meta table has these indexes: https://codex.wordpress.org/Database_Description#Indexes_5 You’re more likely to cause issues or reduce performance through bad indexing by adding new indexes. WP already specifies indexes for tables “dbmain” “wp_mf_post_meta” “post_id” “Not indexed” “dbmain” “wp_mf_custom_fields” “custom_group_id” “Not indexed” Those are not WordPress tables, … Read more

WordPress(wpdb class) and mysql stored procedures

wpdb detects the type of query and returns the result if it starts with select, else the affected rows. Since yours starts by call, it’s probably mistaking it for an insert, update, delete, etc. statement. Try this (might trick wpdb into thinking it’s a select statement: /* select */ call …; Or this (not sure … Read more