thread connected and thread cached

2011-12-26 Thread Jeff Pang
Hello,

I got the two picutures attached from mycheckpoint's web graph.
They are showing the threads_connected have been increasing from 24th.
But threads_cached have been decreasing from the same day.
What does this mean for my mysql?

Thanks.


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql

add index to slave but not master

2011-10-31 Thread Jeff Pang
Hello,

I have a question that, if I add the index to the table in slave, but
don't do it in master, will it make problems?

Thanks.

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



log event entry exceeded max_allowed_packet; Increase max_allowed_packet on master

2011-09-28 Thread Jeff Pang
Hello,

In last day I inserted a SQL which is about 5M to the master, the
max_allowed_packet in both master and slave was 4M at that time.
Then the replication crached, and the info is below:

110928 23:31:53 [Note] Slave SQL thread initialized, starting
replication in log 'mysql-bin.002730' at position 52953235, relay log
'./mysqld-relay-bin.006210' position: 52953380
110928 23:31:53 [Note] Slave I/O thread: connected to master
'mysqlrepl@119.147.163.137:3306',replication started in log
'mysql-bin.002730' at position 54657199
110928 23:31:53 [ERROR] Error running query, slave SQL thread aborted.
Fix the problem, and restart the slave SQL thread with SLAVE START.
We stopped at log 'mysql-bin.002730' position 52953235
110928 23:31:53 [ERROR] Error reading packet from server: log event
entry exceeded max_allowed_packet; Increase max_allowed_packet on
master ( server_errno=1236)
110928 23:31:53 [ERROR] Got fatal error 1236: 'log event entry
exceeded max_allowed_packet; Increase max_allowed_packet on master'
from master when reading data from binary log
110928 23:31:53 [Note] Slave I/O thread exiting, read up to log
'mysql-bin.002730', position 54657199


I tried to increase the value of max_allowed_packet in both master and
slave to 1G:

mysql show variables like 'max_allowed_packet';
+++
| Variable_name | Value |
+++
| max_allowed_packet | 1073741824 |
+++
1 row in set (0.00 sec)

(And restarted both master and slave).
But when I start slave, the problem is still there,with the same error log.

Please help, thanks.

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



hang up mysql shell

2007-07-16 Thread Jeff Pang
hello,

When saying 'exit'  in mysql shell,mysqld would release the lock which was made 
before.
But if I do 'ctrl+z' under linux to hang up mysql shell,would mysqld also 
release the lock or not?
Thank you.

Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur  39,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



best filesystem for mysql

2007-05-01 Thread Jeff Pang
hello list,

I saw this article for the suitable filesystem for mysql.
http://www.bullopensource.org/ext4/sqlbench/

From what I saw,the best filesystem for MyISAM is ext3,the best filesystem for 
InnoDB is Reiserfs.
How about your thought on it?Thanks.

50€ AMAZON-Einkaufsgutschein bei Bestellung von Arcor-DSL:
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur  39,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



how to query this sql?

2007-04-28 Thread Jeff Pang
Hello list,

I want to get the counter for db-items by each day,so I wrote this sql:

 select count(*) as dd from items group by updatetime;

But sorry updatetime is datetime type,not date type.Then I can't get the 
correct result.

How can I do this?Thanks.

50€ AMAZON-Einkaufsgutschein bei Bestellung von Arcor-DSL:
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur  39,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]