MySQL shouldn’t crash because of queries like those, but it could feel like it does because your site won’t work.
I’d first run
SELECT option_name, length(option_value) FROM wp_options WHERE autoload = 'yes' ORDER BY length(option_value) DESC;
to see if some option has accumulated a large value (I’ve seen wp-cron entries grow very large in one release ~2 years back).
Also check how many options will be automatically loaded:
SELECT count(*) FROM wp_options WHERE autoload = 'yes';
Those are usually a few hundred, if it’s a very large number, investigate further.
If both these queries don’t show anything weird, you may want to look into MySQL itself. Is the RAM on your machine exhausted and (slow) SWAP is being used? Is there a faulty hard disk and re-reads are timing out?
Related Posts:
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- String concatenation in MySQL
- Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (38)
- ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
- MySQL server startup error ‘The server quit without updating PID file’
- ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
- When to use SELECT … FOR UPDATE?
- ERROR 1396 (HY000): Operation CREATE USER failed for ‘jack’@’localhost’
- 1052: Column ‘id’ in field list is ambiguous
- Escape string Python for MySQL
- Getting “Lock wait timeout exceeded; try restarting transaction” even though I’m not using a transaction
- Search for all occurrences of a string in a mysql database
- #1045 – Access denied for user ‘root’@’localhost’ (using password: YES)
- SQL ZOO List each continent and the name of the country that comes first alphabetically
- How to convert a string to date in MySQL?
- MySQL COUNT DISTINCT
- How to update a record using sequelize for node?
- Can’t open the mysql.plugin table. Please run mysql_upgrade to create it
- Convert MySQL to SQlite [closed]
- ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘db’
- Create a temporary table in a SELECT statement without a separate CREATE TABLE
- Convert partially non-numeric text into number in MySQL query
- MySql: is it possible to ‘SUM IF’ or to ‘COUNT IF’?
- MySQL: What’s the difference between float and double?
- How can I search (case-insensitive) in a column using LIKE wildcard?
- MySQL Select Multiple VALUES
- SQL – IF EXISTS UPDATE ELSE INSERT INTO
- How to unblock with mysqladmin flush hosts
- If variable equals value php [duplicate]
- Node.js MySQL – Error: connect ECONNREFUSED
- Solution to “subquery returns more than 1 row” error
- MySQL Error #1071 – Specified key was too long; max key length is 767 bytes
- How To have Dynamic SQL in MySQL Stored Procedure
- MySQL – UPDATE query with LIMIT
- MySQL said: Documentation #1045 – Access denied for user ‘root’@’localhost’ (using password: NO)
- What SQL Query to do a simple find and replace
- Scanning Database for malicious Data
- how to refresh wordpress permalink settings? (without admin panel)
- Ordering posts by day (not time) AND meta value
- wpdb->prepare function remove single quote for %s in SQL statment
- Problems with DBDelta with FOREIGN key?
- Is it useful to turn on MySQL query cache for performance
- Programmatically changing role information; editing role name and deleting
- Search and replace in post content
- How to add 2 hours to the wordpress time formed with current_time(“mysql”, false)?
- Is a MySQL DATETIME or TIMESTAMP value retrieved through $wpdb in UTC?
- wpdb insert and boolean fields
- Join new table with SQL query
- Why doesn’t this code add a table to my database?
- SQL database export-import
- Select multiple wp_postmeta keys with single select
- Can Someone Help Me Fix This WordPress Missing Argument Error?
- How do I get create a custom table showing the hours remaining for all customers in one page from this transactions page?
- Uncaught Error: Call to undefined function mysql_connect() – WordPress installation
- SQL Database, repeated tables?
- Backing up and restoring multiple sites efficiently
- Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly
- Code to remove authors with no posts connected to them
- SQL Query in WordPress – Getting Impossible WHERE error
- Are these WordPress tables safe to add indexes to?
- WordPress create database not working
- database optimization and server errors
- Locally restoring a ManageWP full site backup
- WordPress doesn’t save changes some times
- Setting up WordPress Locally on WAMP for a new site (with one already)
- Custom SELECT Query not returning the_title and the_permalink
- Calling mysql_query() on another database, assumes WordPress using that database
- WordPress VIP realpath Alternative?
- querying user bookmarks from a large number of bookmarks
- Pull post name from value of a specific meta key
- PHP variables in mysql query
- How to fix the amount of comments displayed for each post?
- How do I echo all users’ display_name and their meta_value who have a certain meta_key?
- How to install WordPress from hosting service with mysql database from Compute Engine GCP?
- How to simulate web traffic to test performance of a website
- SQL query to change custom field in WordPress database
- SQL. Select category descendants
- MySQL Actibity without any active visitors via Google Analytics
- How to configure WordPress Database for CentOS 7
- Why is local wordpress install calling live site executions?
- Display MySQL as part of a Page
- SELECT statement wrong?
- mysql query on wp_user and user_meta problem
- Migration of wordpress database from mariadb 10.0.20 to 5.5.50
- WP Meta Query – mixed AND / OR query doesn’t work
- How to Import Multiple Values in custom field
- Second completely independent and disposable WordPress installation in subdirectory?
- get_results suddenly not working on a single table
- Internal error (500) on local & Fatal error on live when trying to access post type edit screen
- Query sql for truncate post_content in wp_posts table
- Foreach only outputs if id is 0
- SQL – Pull products of particular category from a remote WordPress woocommerce db
- Efficiently loop over huge number of posts
- “Error 1064” when importing msql database after updating wordpress version to 4.2.1
- remove wordpress post links
- SQL get last entry of a specific gravity form
- mysqldump to a tar.gz
- Where is my mysql log on OS X?