Ask a Question related to MySQL, Design and Development.
-
Good Man #1
MySQL Query Cache Not Working: MySQL 5 / Windows XP
Please excuse this post if you've already read it on
mailing.database.mysql - i just discovered these other groups. future
posts will be crossposted to all three groups at once!
I just installed MySQL 5, and its running great except that the query
cache is not working, despite the configuration excerpt from my "my.ini"
below:
query_cache_size=5M
query_cache_limit=2M
query_cache_min_res_unit=4096k
query_cache_type=1
From the MySQL command line, if I enter: SHOW VARIABLES LIKE
'have_query_cache';
I get:
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| have_query_cache | YES |
+------------------+-------+
Also, doing a: SHOW STATUS LIKE 'Qcache%'; gives me:
+-------------------------+---------+
| Variable_name | Value |
+-------------------------+---------+
| Qcache_free_blocks | 1 |
| Qcache_free_memory | 5234168 |
| Qcache_hits | 0 |
| Qcache_inserts | 0 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 450 |
| Qcache_queries_in_cache | 0 |
| Qcache_total_blocks | 1 |
+-------------------------+---------+
I figure the "Qcache_free_blocks" and "Qcache_total_blocks" values of 1
are creating the problem; it's basically telling me that there are no
(okay, 1) free blocks to put my query. However, these values never
change.
The query cache is not vital to me, but it does improve performance, and
I'd like to get it going....
Does anyone have any suggestions/tips?
Thanks,
GM
Good Man Guest
-
#40471 [NEW]: PHP 5.2.1 failed to be compiled with MySQl 5.0.33, MySQL 5.0.27, MySQL 5.1.15
From: pcdinh at gmail dot com Operating system: CentOS 4.4 PHP version: 5.2.1 PHP Bug Type: Compile Failure Bug description:... -
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'... -
MySQL Query from PHP
Hi guys I am a newbie writing a php site that gets data from MySQL. I have a select distinct query that works fine from the MySQL Control centre... -
mysql/php query
I have a question about (i think) joining. If I have a table in a database that has this info: key - name - favorite 1 - john - 2 2 - ... -
[PHP] PHP - MySQL Query...
$dbh = mysql_connect("localhost", "login", "password") or die('cannot connect to the database because: ' . mysql_error());...



Reply With Quote

