Mysql: Schedule Flush Query Cache

Dec 5, 2007

I want to run flush query cache, saying once a week. Is there anyway to schedule it, so system can do it automatically? Currently, I have to login server, and run it manually

View 1 Replies


ADVERTISEMENT

Mysql And Query Cache

Jan 4, 2007

What is the good value to set query_cache_size. I have set it to 60 M and here
is the status. Is it good? I am not sure how to check this? Can anyone explain?

query_cache_size=60M

mysql> SHOW STATUS LIKE 'Qcache%';
+-------------------------+----------+
| Variable_name | Value |
+-------------------------+----------+
| Qcache_free_blocks | 5 |
| Qcache_free_memory | 62666440 |
| Qcache_hits | 922 |
| Qcache_inserts | 381 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 565 |
| Qcache_queries_in_cache | 182 |
| Qcache_total_blocks | 400 |
+-------------------------+----------+
8 rows in set (0.00 sec)

View 2 Replies View Related

Flush Cache On CentOS

Jun 15, 2007

How do I flush the cache on CentOS cache and Buffer or either one.

on top command I see a lot of ram in cache and I want to flush the cache.

How do I do that? any kommands?

View 2 Replies View Related

Query Cache Denied

Jun 29, 2009

what does this mean? its been flooding /var/log/messages

Jun 28 08:12:50 host named[7649]: client 209.86.63.238#9427: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 209.86.63.230#42462: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 200.23.242.203#37863: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.93.151.237#8080: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.202.215.18#35119: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.93.151.237#40106: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 209.86.63.231#51272: query (cache) 'root.domain.tld/A/IN' denied

View 5 Replies View Related

Mysql Licensing Query

Nov 17, 2008

Our local authority is looking into using MySQL database for some internal applications and possibly our website.

Do we need a commercial or enterprise license for this particular use or can we use a free version?

View 2 Replies View Related

Mysql Files To .sql Query

Apr 30, 2008

I have the files .myd .myi and .frm files in a archive .tar.gz

My host do not provide shell access.

Is the any way that i can convert the files into .sql queries

Or is there any method other that using shell access.

Or is there any software to convert the database files into .sql query in my desktop computer so that i can restore it using phpmyadmin

My site has been down from several days

View 2 Replies View Related

Mysql Cache On A Vps

Apr 22, 2007

[url]

has an article on mysql query cache.
It notes that in the mysql config file, having

query-cache-type = 1

sets the mysql query cache.

In mysql I note that

SHOW VARIABLES LIKE '%query_cache%';

outputs

+-------------------+---------+
| Variable_name | Value |
+-------------------+---------+
| have_query_cache | YES |

which indicates that cache is set, but...

find . -name "my.cnf"

./usr/local/cpanel/whostmgr/my.cnf
./etc/my.cnf

shows only these

set-variable = max_connections=500
safe-show-database

So where has query cache been set?

At the server level?

If so, am I able to set the query_cache_size and if so, which path?

Anyone have any comments on their mysql optimization on a VPS?

View 0 Replies View Related

Lost Connection To Mysql Server During Query

Aug 12, 2007

some vBulletin customers facing to that error message, with session table with attachment only. Other just work fine. It's not because of server load. The load is just around 0 - 0.1

I have increased wait_timeout to 200 and max_allowed_packet to 64MB. Each attachment file in those vBulletin is just around 1-3MB.

Is there any idea why and how to fix?

View 1 Replies View Related

Very Slow Query Time After Upgrade To Mysql 5

Apr 8, 2009

We have a dedicated server and we host 4 news portals based on e107 and joomla.

My partner on Sunday has upgraded mysql from version 4 to 5. Now the server experiences very high CPU usage and query time on portals has been increased very much.

We used to have query times lower than 1 sec for the main page of [url](which is a site that receives about 2000 visits/day) and now query times are 5-15sec !

Does anybody know if this is makes sense ?

Below is the server Status from WHM :
-------------------------------------

cpdavd up
cpsrvd up
exim (exim-4.69-15.1_cpanel_maildir) up
ftpd up
httpd (2.2.11 (Unix)) up
imap up
interval up
mysql (5.0.67-community-log) up
named (9.3.4) up
pop up
rsyslogd up
spamd up
syslogd up
Server Load 6.97 (1 cpu)
Memory Used 49.4 %
Swap Used 0.23 %
Disk /dev/hda3 (/tmp) DMA+ 70 %
Disk /dev/hda5 (/) DMA+ 22 %
Disk /dev/hda1 (/boot) DMA+ 14 %


Below is the Server Information from WHM :
------------------------------------------
Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz
Processor #1 speed: 2394.068 MHz
Processor #1 cache size: 2048 KB

Memory Information

Memory: 2064420k/2087424k available (2091k kernel code, 21752k reserved, 846k data, 236k init, 1169920k highmem)

System Information

Linux server.aktoweb.biz 2.6.20-1.2319.fc5 #1 Mon May 21 19:52:13 EDT 2007 i686 i686 i386 GNU/Linux

Physical Disks

hda: WDC WD3200AAJB-00TYA0, ATA DISK drive
hda: hw_config=600d
hda: hw_config=600d
hda: max request size: 512KiB
hda: 625142448 sectors (320072 MB) w/8192KiB Cache, CHS=38913/255/63<6>hda: hw_config=600d
hda: cache flushes supported

Current Memory Usage

total used free shared buffers cached
Mem: 2066428 1756324 310104 0 339576 486636
-/+ buffers/cache: 930112 1136316
Swap: 1052248 2428 1049820
Total: 3118676 1758752 1359924

Current Disk Usage

Filesystem Size Used Avail Use% Mounted on
/dev/hda5 288G 60G 213G 22% /
/dev/hda1 99M 13M 82M 14% /boot
tmpfs 1009M 0 1009M 0% /dev/shm
/dev/hda3 494M 215M 254M 46% /tmp

Below is the CPU/Memmory/Mysql Usage from WHM :
-------------------------------------------------
mysql42.707.300.0
Top Process%CPU 42.7/usr/sbin/mysqld --basedir/ --datadir/var/lib/mysql --usermysql --pid-file/var/lib/mysql/server.aktoweb.biz.pid --skip-external-locking
Top Process%CPU 42.6/usr/sbin/mysqld --basedir/ --datadir/var/lib/mysql --usermysql --pid-file/var/lib/mysql/server.aktoweb.biz.pid --skip-external-locking
giaprakigiapraki.com2.7012.111.7
Top Process%CPU 1.3httpd [urll] [/e107_plugins/pm/pm.php?inbox]
Top Process%CPU 1.1httpd [url] [/e107_plugins/forum/forum_viewforum.php?87]
Top Process%CPU 1.0httpd [url] [/e107_plugins/chatbox_menu/chatbox_iframe.php]
adsnetadsnet.gr1.177.900.7
Top Process%CPU 0.5httpd [adsnet.gr] [/www/delivery/lg.php?bannerid16&campaignid4&zoneid5&chan]
Top Process%CPU 0.4httpd [adsnet.gr] [/www/delivery/lg.php?bannerid50&campaignid6&zoneid15&cha]
Top Process%CPU 0.3httpd [adsnet.gr] [/www/delivery/lg.php?bannerid183&campaignid77&zoneid1&ch]
r40r40.gr1.073.340.0
Top Process%CPU 1.1httpd [r40.gr] [/index.php?optioncom_fireboard&Itemid188&funcshowcat&cat]
Top Process%CPU 0.5httpd [r40.gr] [/images/fbfiles/avatars/s_64.png]
Top Process%CPU 0.3httpd [r40.gr] [/index2.php?optioncom_jim&taskxml&no_html1]
root0.278.532.0
Top Process%CPU 0.2[kjournald]
alex123alexandroupoli.net0.030.270.0
Top Process%CPU 0.1httpd [alexandroupoli.net] [/e107_images/banners/banner468x60-alexandroupolinet.gif]
galfasgalfas.gr0.030.270.0
Top Process%CPU 0.1httpd [galfas.gr] [/racing/images/galfas_R40_banner.jpg]
eximstats0.000.000.3
nobody0.001.100.0
mailnull0.000.000.0
unauthenticated0.000.000.0
named0.000.10

View 8 Replies View Related

How To Enable Slow-query Logging In MySQL

Apr 23, 2007

how to enable slow-query logging in MySQL ? Im using mysql version 4.1.20

well i just added following line in my.cnf can you please tell me is it correct way or not?

Code:
log-slow-queries=/tmp/slow_queries.log
log-update = /var/lib/mysql/updates.log

View 6 Replies View Related

Mysql Access Host Via Command Line Or Sql Query

Apr 30, 2009

how to add a mysql access host by command line? or or how to add a mysql access host through an sql query?

View 3 Replies View Related

MySQL Query Doing Odd Things - Removing Negative Sign For No Apparant Reason

Jan 10, 2007

I've got a problem with an SQL query that is behaving badly. Its probably really obvious, but I can't see the problem!

I have a table with 3 fields:

Code:

money bigint(20)
income int(12)
userID mediumint(7)

I have a row that has a negative money and a value of 0 for income. When I update the money value to add "0" to it, nothing happens (as expected). When I update the money field to add the income field (which is equal to 0) to it, MySQL flips the sign to make the money field positive.

The following queries show the problem:

Code:

mysql> SELECT money, income from users where userID=327961;
+----------------------+--------+
| money | income |
+----------------------+--------+
| -9223372036854775807 | 0 |
+----------------------+--------+
1 row in set (0.00 sec)

mysql> UPDATE `users` SET money = money + 0 WHERE userID =327961;
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0

mysql> SELECT money, income from users where userID=327961;
+----------------------+--------+
| money | income |
+----------------------+--------+
| -9223372036854775807 | 0 |
+----------------------+--------+
1 row in set (0.00 sec)

mysql> UPDATE `users` SET money = money + income WHERE userID =327961;
Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 1

mysql> SELECT money, income from users where userID=327961;
+---------------------+--------+
| money | income |
+---------------------+--------+
| 9223372036854775807 | 0 |
+---------------------+--------+
1 row in set (0.00 sec)

mysql>
Notice that there is no negative sign after the third select!!

So, we are saying that executing an update where 0 is specified in the query results in the correct action but if you take the 0 from another field it takes the negative sign away...

This for various reasons is a rather urgent problem. This problem has only appeared after upgrading from MySQL 4.0 to MySQl 5.1. This problem does not occur in MySQL 4.1.

View 1 Replies View Related

Apache :: Use Disk To Enhance For Page Cache And Database Cache For Disk

Apr 24, 2013

I use apache with CentOS VPS hosting for my blog. I only host one blog in this VPS account. I have 1.5GB RAM and I have 7, 500 page preview per day. My page loading time is 2-3 seconds (according to the pingdom tool).

I want to know what is the best performance (faster web page loading) W3 Total cache option for VPS hosting blog. Currently I use Disk to enhance for page cache and database cache for disk.

View 2 Replies View Related

Flush CSF (csf.deny)

May 15, 2008

How can flush csf blocked ips? (csf.deny)

View 4 Replies View Related

I Have To Flush Iptables On Every Reboot

Jun 27, 2007

I'm running CentOS 4.4 32 bit.

At the moment every time I reboot my server I have to execute:
# iptables --flush
# iptables --zero

just to be able to access the server. (Though it does allow SSH to access before executing those).

And I figured out that I must do something to /etc/sysconfig/iptables to permanently be able to access the server without those commands after reboot. Right?

Below is the file's contents:

# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited COMMIT

What do I need to do?

View 1 Replies View Related

Flush CPHulk Database

Apr 25, 2009

do you know how to flush out Flush cPHulk Database weekly? I dont know how i can set up a cron for that. this is because the expiration of brute force lasts for 2 weeks which is too long for the clients

View 3 Replies View Related

Failed To Flush Buffer

May 28, 2008

I'm getting this on my VPS:

Notice: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush. in /home/.../download_ip.php on line 215

What is causing this? Memory Limit in PHP? or something else?

View 5 Replies View Related

Run Iptables --flush And Down Server

Aug 15, 2007

i run iptables --flush my server go to full down and must go to restart

View 6 Replies View Related

Rsync Software With Schedule

May 24, 2009

recomend me a good Rsync software with schedule to backup some sites automaticaly?

I want rsync 100% for lower bandwidth.

View 7 Replies View Related

How Do I Change The Cron Schedule

Jul 24, 2009

We have a Cron executed program which runs at certain times of the day.
I need to changes these times.

How do I do this?

To be exact the program that is executed is called daily_charges.jsp

And I have looked under
etc/cron.daily
and I see no call to this program

FYI looking under etc/crontab I see this:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

which obviously is the default Linux included Crontab file so this file cannot be the one that runs the daily crons.

how can I find where is the Cron code that daily runs the program:
daily_charges.jsp

View 5 Replies View Related

Backups Via WHM - Setting The Schedule Specifically

Apr 6, 2009

We have backups running via WHM to a FTP server - where I see we can set daily, weekly, monthly - but can we specify what time during the day the backups are being done so it won't interfere with other heavy server load tasks?

Looking at the emails I get when the backup is complete, it seems like it's doing it at all sorts of random times.

way to change the priority at which the backup is being run?

View 1 Replies View Related

How To Schedule Cron Jobs In Windows

Dec 7, 2008

how to set cron jobs in window....

View 6 Replies View Related

Plesk 11.x / Windows :: How To Set Up Task Schedule

Sep 23, 2013

How can I set up task schedule every minutes to wget "https://domain.ru/cron.php"?

View 1 Replies View Related

Plesk 12.x / Windows :: Schedule A Task - What About ASP Pages

Jul 2, 2015

In plesk it has the ability to schedule a task. It apparently only works for EXE files and php pages ? I that correct ?

How do we schedule an ASP page to run as a task ? I have been trying shells, scripts,

Our data system maintenance and monthly billing are all ASP pages that need to run automatically. Some tasks need to run every 15 minutes.

View 1 Replies View Related

Plesk 12.x / Windows :: Add Schedule Task For Running Script

Apr 4, 2015

I want to add a schedule task for run a script.

Path to executable file: C:Windowssystem32cscript.exe
Arguments Field: E:vhostsmysite.irhttpdocsschedule.vbs

But i get error:

Failed with error: 'C:Windowssystem32cscript.

exe ' is not recognized as an internal or external command, operable program or batch file.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved