<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Database Administration</title>
        <description>Forum for Administering and Managing MySQL.</description>
        <link>http://forums.mysql.com/list.php?35</link>
        <lastBuildDate>Tue, 24 Nov 2009 20:33:00 +0000</lastBuildDate>
        <generator>Phorum 5.2.1-alpha</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?35,292016,292016#msg-292016</guid>
            <title>backing up mulitple databases (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,292016,292016#msg-292016</link>
            <description><![CDATA[ I am trying to back up a set of 6 databases (all Innodb) that have some dependencies on each other.  I want to take a backup of all 6 using mysqldump commands and I want to make sure that the databases are consistent with each other.  All databases are replicated to a second server that we have for failover.<br />
<br />
I know that there are various switches in mysqldump such as single-transaction that would possibly allow me to get the dumps, if I can dump all databases in a single command.  However, because one of the databases contains several GB of data that I don't want to back up, I use various where clauses and multiple mysqldump commands to eliminate the extra data.<br />
<br />
I have a couple of approaches that I think will work, but am not sure if they will do what I want.  Because I have a readily available replicant I am going to do the backups on that server.<br />
<br />
Approach 1:<br />
Stop slave;<br />
flush logs;<br />
mysqldump db 1;<br />
mysqldump db 2;<br />
...<br />
mysqldump db 6;<br />
start slave;<br />
<br />
Approach 2:<br />
flush tables with read lock;<br />
mysqldump db 1;<br />
mysqldump db 2;<br />
...<br />
mysqldump db 6;<br />
unlock tables;<br />
<br />
I don't know if either method accomplishes what I want.  Approach #1 has the downside of causing our monitoring software to squawk that replication is down.  Not a bad thing, unless you happen to be the person on-call.<br />
<br />
Any guidance would be appreciated.]]></description>
            <dc:creator>Charles White</dc:creator>
            <category>Database Administration</category>
            <pubDate>Thu, 19 Nov 2009 22:39:21 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,291625,291625#msg-291625</guid>
            <title>How to troubleshoot thread concurrency issues? (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,291625,291625#msg-291625</link>
            <description><![CDATA[ (sorry to cross-post, didn't get any replies in 'Newbie')<br />
<br />
I have a script that loops over a list of approx 250 rows from a table 'Product' and updates a single field in each row with a value retrieved from an external web service.  At the end of each iteration, the Product row is 'saved', which fires an SQL UPDATE command.<br />
<br />
While the script is running, other pages on the site that READ from the same table are 'stuck' on loading until the script process has complete updating all the rows.<br />
<br />
My question is: what can I do to find out why the table is not allowing other processes to READ?<br />
<br />
I am working with a website that uses a PHP Framework called Yii (www.yiiframework.com).  This framework uses ADODB so I don't have complete control over the SQL statements being executed, but I can profile them.<br />
<br />
I don't know much about engine types and locking, but if it helps all the tables are MyIsam, and I've also tried changing them all to InnoDB but the same problem occurs.<br />
<br />
Thanks in advance for any help.  Happy to provide more information about the server environment if this will help.<br />
<br />
--- my.cnf -----<br />
<br />
[mysqld]<br />
datadir=/var/lib/mysql<br />
socket=/var/lib/mysql/mysql.sock<br />
user=mysql<br />
# Default to using old password format for compatibility with mysql 3.x<br />
# clients (those using the mysqlclient10 compatibility package).<br />
old_passwords=1<br />
<br />
# To allow mysqld to connect to a MySQL Cluster management daemon, uncomment<br />
# these lines and adjust the connectstring as needed.<br />
#ndbcluster<br />
#ndb-connectstring=&quot;nodeid=4;host=localhost:1186&quot;<br />
<br />
# Performance additions<br />
skip-locking<br />
max_connections=1500<br />
key_buffer = 256M<br />
max_allowed_packet = 1M<br />
table_cache = 256<br />
sort_buffer_size = 1M<br />
read_buffer_size = 1M<br />
read_rnd_buffer_size = 4M<br />
myisam_sort_buffer_size = 64M<br />
thread_cache = 8<br />
query_cache_size= 16M<br />
# Try number of CPU's*2 for thread_concurrency<br />
thread_concurrency = 8<br />
<br />
[mysqld_safe]<br />
log-error=/var/log/mysqld.log<br />
pid-file=/var/run/mysqld/mysqld.pid<br />
<br />
[ndbd]<br />
# If you are running a MySQL Cluster storage daemon (ndbd) on this machine,<br />
# adjust its connection to the management daemon here.<br />
# Note: ndbd init script requires this to include nodeid!<br />
connect-string=&quot;nodeid=2;host=localhost:1186&quot;<br />
<br />
[ndb_mgm]<br />
# connection string for MySQL Cluster management tool<br />
connect-string=&quot;host=localhost:1186&quot;<br />
<br />
<br />
------ SQL Profiling output -----  (the queries that are 'locking' the table')<br />
<br />
Procedure  	Count  	Total (s)  	Avg. (s)  	Min. (s)  	Max. (s)<br />
system.db.CDbCommand.query(SELECT * FROM `Product`) 	1 	0.06349 	0.06349 	0.06349 	0.06349<br />
<br />
system.db.CDbCommand.execute(UPDATE `Product` SET `id`=:yp0, `productId`=:yp1, `name`=:yp2, `seoTitle`=:yp3, `ratingId`=:yp4, `checkIn`=:yp5, `checkOut`=:yp6, `address`=:yp7, `country`=:yp8, `regionId`=:yp9, `subRegionId`=:yp10, `latitude`=:yp11, `longitude`=:yp12, `description`=:yp13, `facilities`=:yp14, `image`=:yp15, `videoTour`=:yp16, `ratesTable`=:yp17, `rate`=:yp18, `createTime`=:yp19, `updateTime`=:yp20 WHERE `Product`.`id`=235) 	1 	0.01820 	0.01820 	0.01820 	0.01820<br />
<br />
system.db.CDbCommand.query(SHOW COLUMNS FROM `Product`) 	1 	0.00803 	0.00803 	0.00803 	0.00803<br />
<br />
system.db.CDbCommand.execute(UPDATE `Product` SET `id`=:yp0, `productId`=:yp1, `name`=:yp2, `seoTitle`=:yp3, `ratingId`=:yp4, `checkIn`=:yp5, `checkOut`=:yp6, `address`=:yp7, `country`=:yp8, `regionId`=:yp9, `subRegionId`=:yp10, `latitude`=:yp11, `longitude`=:yp12, `description`=:yp13, `facilities`=:yp14, `image`=:yp15, `videoTour`=:yp16, `ratesTable`=:yp17, `rate`=:yp18, `createTime`=:yp19, `updateTime`=:yp20 WHERE `Product`.`id`=258) 	1 	0.00633 	0.00633 	0.00633 	0.00633<br />
<br />
system.db.CDbCommand.execute(UPDATE `Product` SET `id`=:yp0, `productId`=:yp1, `name`=:yp2, `seoTitle`=:yp3, `ratingId`=:yp4, `checkIn`=:yp5, `checkOut`=:yp6, `address`=:yp7, `country`=:yp8, `regionId`=:yp9, `subRegionId`=:yp10, `latitude`=:yp11, `longitude`=:yp12, `description`=:yp13, `facilities`=:yp14, `image`=:yp15, `videoTour`=:yp16, `ratesTable`=:yp17, `rate`=:yp18, `createTime`=:yp19, `updateTime`=:yp20 WHERE `Product`.`id`=223) 	1 	0.00583 	0.00583 	0.00583 	0.00583<br />
<br />
system.db.CDbCommand.execute(UPDATE `Product` SET `id`=:yp0, `productId`=:yp1, `name`=:yp2, `seoTitle`=:yp3, `ratingId`=:yp4, `checkIn`=:yp5, `checkOut`=:yp6, `address`=:yp7, `country`=:yp8, `regionId`=:yp9, `subRegionId`=:yp10, `latitude`=:yp11, `longitude`=:yp12, `description`=:yp13, `facilities`=:yp14, `image`=:yp15, `videoTour`=:yp16, `ratesTable`=:yp17, `rate`=:yp18, `createTime`=:yp19, `updateTime`=:yp20 WHERE `Product`.`id`=242) 	1 	0.00572 	0.00572 	0.00572 	0.00572<br />
<br />
<br />
.....  etc.  for around 250 rows.]]></description>
            <dc:creator>BOoyah Child</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 17 Nov 2009 23:50:16 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,291209,291209#msg-291209</guid>
            <title>MySQL Configuration Wizard (9 replies)</title>
            <link>http://forums.mysql.com/read.php?35,291209,291209#msg-291209</link>
            <description><![CDATA[ I'm trying to install mysql 5.1 in windows 7... Its going upto configuration wizard and then its giving <br />
<br />
security settings could not be applied.<br />
Error Number 1045.<br />
Access denied for user 'root@localhost' (using password: YES)<br />
<br />
<br />
Am unable to solve this problem.. Please give a solution for this..<br />
<br />
<br />
Waiting for your resposne..<br />
Thanks..]]></description>
            <dc:creator>Arvind Sastry</dc:creator>
            <category>Database Administration</category>
            <pubDate>Wed, 18 Nov 2009 06:24:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,291134,291134#msg-291134</guid>
            <title>Logging MySQL Client Session Warnings (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,291134,291134#msg-291134</link>
            <description><![CDATA[ Hello,<br />
<br />
Is there a way to log client session warnings on the server side?<br />
<br />
I'm talking about things that are warnings on insert/update/delete, etc.<br />
<br />
Thanks,<br />
Bob]]></description>
            <dc:creator>Bob Ingraham</dc:creator>
            <category>Database Administration</category>
            <pubDate>Mon, 16 Nov 2009 08:46:08 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,291086,291086#msg-291086</guid>
            <title>Using the general log (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,291086,291086#msg-291086</link>
            <description><![CDATA[ First off, I am a real neophyte to the world of MySQL.<br />
A 3rd party SW vendor has asked me to &quot;prove&quot; that the failing query that I submit through their Pass-Through mechanism, runs just fine (thank you) in the MySQL browser.  They want me to send them the log of the query showing a successful run.<br />
I know that I need to use the general log, but I don't know how and where.  Can I do this through the browser window?  Do I need to log onto the server itself?  Through a command window?  Etc.<br />
All guidance is appreciated.  Thanks]]></description>
            <dc:creator>Mosheh Wolfish</dc:creator>
            <category>Database Administration</category>
            <pubDate>Sat, 14 Nov 2009 08:45:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,291084,291084#msg-291084</guid>
            <title>Schema for index creation (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,291084,291084#msg-291084</link>
            <description><![CDATA[ I am trying to create an index on a table specifying a schema name for the index (CREATE INDEX s.indexname ON TABLE r.tablename... ), using MySQL 5.1 which fails with invalid syntax. <br />
<br />
My question is, can a schema name be specified for an index?  The INFORMATION_SCHEMA.STATISTICS view has a column for index schema, yet it seems it can not be specified on the create index statement.  Or does the schema always match the table schema?<br />
<br />
Thanks,<br />
Lou]]></description>
            <dc:creator>Lou Vuono</dc:creator>
            <category>Database Administration</category>
            <pubDate>Fri, 13 Nov 2009 15:46:21 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,290730,290730#msg-290730</guid>
            <title>URGENT HELP...on Timeout Exceeded. (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,290730,290730#msg-290730</link>
            <description><![CDATA[ here is the below info i got when i executed &quot;SHOW ENGINE INNODB STATUS;&quot; <br />
any idea what to look at and how to solve this issue. <br />
<br />
<br />
---TRANSACTION 0 968269613, ACTIVE 42 sec, process no 29276, OS thread id 2947189616 inserting <br />
mysql tables in use 1, locked 1 <br />
LOCK WAIT 4 lock struct(s), heap size 320, 2 row lock(s), undo log entries 1 <br />
MySQL thread id 389, query id 45352 192.168.10.210 HTN update <br />
INSERT INTO HTN_SESSION_LOG ( <br />
Session_Invoked_At, <br />
Vendor_Emp_Id, <br />
Unique_Id, <br />
Created_By, <br />
Created_Date, <br />
Session_Active <br />
) <br />
VALUES ( <br />
Now(), <br />
<br />
------- TRX HAS BEEN WAITING 42 SEC FOR THIS LOCK TO BE GRANTED: <br />
RECORD LOCKS space id 0 page no 14676 n bits 296 index `RefHTN_EMPLOYEES139` of table `HTN`.`HTN_SESSION_LOG` trx id 0 968269613 lock_mode X locks gap before rec insert intention waiting <br />
Record lock, heap no 210 PHYSICAL RECORD: n_fields 2; compact format; info bits 0]]></description>
            <dc:creator>sreedhar chava</dc:creator>
            <category>Database Administration</category>
            <pubDate>Wed, 11 Nov 2009 22:00:00 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,290695,290695#msg-290695</guid>
            <title>How to get bare database list??? (2 replies)</title>
            <link>http://forums.mysql.com/read.php?35,290695,290695#msg-290695</link>
            <description><![CDATA[ HI,<br />
<br />
I need to get a list of databases for use in a bash script. I know how to get a list of the databases but everything I've tried creates the list in the following manner.<br />
<br />
+--------------------+<br />
|     Databases      |<br />
+--------------------+<br />
| information_schema |<br />
| database1          |<br />
| mysql              |<br />
| database2          |<br />
| database3          |<br />
| database4          |<br />
+--------------------+<br />
<br />
Above display slightly off because of forum formatting.<br />
<br />
What I would like to get is a list in a bare format without all of the formatting like the following:<br />
<br />
information_schema<br />
database1<br />
mysql<br />
database2<br />
database3<br />
database4<br />
<br />
How do I get MySQL to produce this??<br />
<br />
Thanks<br />
Don]]></description>
            <dc:creator>Don Muller</dc:creator>
            <category>Database Administration</category>
            <pubDate>Thu, 12 Nov 2009 17:35:42 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,290428,290428#msg-290428</guid>
            <title>Executing shell command from MySQL prompt (5 replies)</title>
            <link>http://forums.mysql.com/read.php?35,290428,290428#msg-290428</link>
            <description><![CDATA[ Hi,<br />
<br />
How to execute a shell command from MySQL prompt in MySQL Version 5.1.<br />
In MySQL Version 5.0 we used to execute in below format.<br />
<br />
mysql&gt; \! ls<br />
<br />
How to do this in MySQL Version 5.1.34.<br />
<br />
<br />
Thanks,<br />
Hasini.]]></description>
            <dc:creator>Hasini G</dc:creator>
            <category>Database Administration</category>
            <pubDate>Fri, 13 Nov 2009 12:08:48 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,290059,290059#msg-290059</guid>
            <title>Move MySQL database directory (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,290059,290059#msg-290059</link>
            <description><![CDATA[ I have tried to move my MySQL database directory. I have followed these<br />
<a rel="nofollow"  href="http://forums.mysql.com/read.php?35,107018,107595#msg-107595">http://forums.mysql.com/read.php?35,107018,107595#msg-107595</a><br />
<a rel="nofollow"  href="http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive">http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive</a><br />
<br />
I have changed the database directory in /etc/mysql/my.cnf and /etc/apparmor.d/usr.sbin.mysqld<br />
<br />
But MySQL won't start. The error log is empty.<br />
<br />
Are there anything missing on those pages? Or how can I make MySQL write something to the error log?]]></description>
            <dc:creator>Jari Kanerva</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 10 Nov 2009 09:37:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,289837,289837#msg-289837</guid>
            <title>how to parse transactions on 'mysql' sys database from binlogs (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,289837,289837#msg-289837</link>
            <description><![CDATA[ Hello Everyone,<br />
<br />
I am trying to collect the list of events which happened on 'mysql' database like user modifications, privilege changes,etc.<br />
 <br />
   here is what i tried:<br />
1. add new users<br />
2. add new permissions to these users.<br />
<br />
I can see the events from querying 'show binlog events;' on server. along with these i also found event of other user databases.<br />
<br />
Now i want filer these admin transactions from bin logs to some other file which i can save.<br />
<br />
I tried using the argument &quot;-D mysql&quot; to mysqlbinlog command, but it does not give the expected results.<br />
<br />
How do i proceed? any solution?? like special APIs,open source tools??]]></description>
            <dc:creator>Ravi Thati</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 17 Nov 2009 10:57:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,289590,289590#msg-289590</guid>
            <title>FIND slow queries (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,289590,289590#msg-289590</link>
            <description><![CDATA[ <strong class="bbcode">How to Identify Slow Queries apart of checking the logs or setting the slow_query_log time interval in MY.CNF, is there a Command to show which queries are running slow and how to Resolve the issue.</strong>]]></description>
            <dc:creator>sreedhar chava</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 10 Nov 2009 09:37:58 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,289508,289508#msg-289508</guid>
            <title>how mysql manage connetions to databases (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,289508,289508#msg-289508</link>
            <description><![CDATA[ Hi All,<br />
i have two questions please, i have the two following issues:<br />
1-	I don’t know why it shows a lot of connections using “root” as user like 40 to 45 connection.<br />
2-	When i close an application the connections being used don’t get freed in a short time it takes a long time 6 hours or so.<br />
if any ideas, thanks for sharing!]]></description>
            <dc:creator>khalid touati</dc:creator>
            <category>Database Administration</category>
            <pubDate>Wed, 04 Nov 2009 16:30:26 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,289137,289137#msg-289137</guid>
            <title>Table corruption issue (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,289137,289137#msg-289137</link>
            <description><![CDATA[ We are using mysql 5.0 with master slave setup. When we describe any table it gives following error<br />
               Error 'Incorrect information in file: './livedb/tablename.frm<br />
Master database looks ok, only slave is having problem,when we do show slave status, we see below information <br />
<br />
<br />
Replicate_Wild_Ignore_Table: <br />
                 Last_Errno: 1033<br />
                 Last_Error: Error 'Incorrect information in file: './livedb/print.frm'' on query. Default database: 'livedb2'. Query: 'DELETE FROM livedb.print WHERE TIMESTAMPDIFF(dayvalue, date_created, '2009-11-02 01:58:06') &gt;= 9999'<br />
               Skip_Counter: 0<br />
        Exec_Master_Log_Pos: 653241805<br />
            Relay_Log_Space: 3073839<br />
            Until_Condition: None<br />
             Until_Log_File: <br />
              Until_Log_Pos: 0<br />
         Master_SSL_Allowed: No<br />
         Master_SSL_CA_File: <br />
         Master_SSL_CA_Path: <br />
            Master_SSL_Cert: <br />
          Master_SSL_Cipher: <br />
             Master_SSL_Key: <br />
      Seconds_Behind_Master: NULL<br />
Can anyone let me know how to trouble shoot this issue ie. reason behind this issue and how to go about fixing it?]]></description>
            <dc:creator>omkar prabhu</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 10 Nov 2009 09:41:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,289104,289104#msg-289104</guid>
            <title>Slow quesry on small table (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,289104,289104#msg-289104</link>
            <description><![CDATA[ Hi, I am having some issues that have cropped up recently with a query that has been running well for about a year.  <br />
<br />
We are running our installation on a Sun system and mysql version 5.0.51b.<br />
<br />
We have the queries, scripts, etc. backed up to a development system running the same config.  <br />
<br />
The query uses 2 sub selects, which can be slow, but runs sub second on the dev system and has recently started taking 5 mins + on the primary.  <br />
<br />
While the data may be different from dev to prod, the query uses an ID field and a time field, not user created data to perform the select.  Note that there are only 675 rows in the table, not a lot by any standard!<br />
<br />
I'm not sure what to do to diagnose this.  <br />
<br />
I've run an EXPLAIN and a SHOW TABLE STATUS which I've listed below:<br />
<br /><pre class="bbcode">mysql&gt; explain select issueID, iprTime, probDesc, bi, impact, wip,ir, owner, if(active=1,'Open','Restored'), level, unix_timestamp(startTime), startTime, unix_timestamp(iprTime) from ipr.issueHist where (issueID,iprTime) in (select issueID, max(iprTime) from ipr.issueHist where issueID in (select distinct issueID from ipr.issueHist)  group by issueID) and (active = 1 or unix_timestamp(iprTime) &gt; unix_timestamp(now())-7200);
+----+--------------------+-----------+------+---------------+------+---------+------+------+----------------------------------------------+
| id | select_type        | table     | type | possible_keys | key  | key_len | ref  | rows | Extra                                        |
+----+--------------------+-----------+------+---------------+------+---------+------+------+----------------------------------------------+
|  1 | PRIMARY            | issueHist | ALL  | NULL          | NULL | NULL    | NULL |  675 | Using where                                  |
|  2 | DEPENDENT SUBQUERY | issueHist | ALL  | NULL          | NULL | NULL    | NULL |  675 | Using where; Using temporary; Using filesort |
|  3 | DEPENDENT SUBQUERY | issueHist | ALL  | NULL          | NULL | NULL    | NULL |  675 | Using where; Using temporary                 |
+----+--------------------+-----------+------+---------------+------+---------+------+------+----------------------------------------------+
3 rows in set (0.00 sec)</pre>
<br /><pre class="bbcode">
mysql&gt; SHOW TABLE STATUS LIKE 'issueHist';
+-----------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+----------+----------------+---------+
| Name      | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time         | Update_time         | Check_time          | Collation         | Checksum | Create_options | Comment |
+-----------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+----------+----------------+---------+
| issueHist | MyISAM |      10 | Dynamic    |  675 |            375 |      253188 | 281474976710655 |         9216 |         0 |           1046 | 2009-01-05 12:27:23 | 2009-11-01 09:03:03 | 2009-11-02 09:42:06 | latin1_swedish_ci |     NULL |                |         |
+-----------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+----------+----------------+---------+
1 row in set (0.00 sec)</pre>]]></description>
            <dc:creator>Randall Petras</dc:creator>
            <category>Database Administration</category>
            <pubDate>Mon, 02 Nov 2009 15:15:47 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,288827,288827#msg-288827</guid>
            <title>IF BETWEEN (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,288827,288827#msg-288827</link>
            <description><![CDATA[ i have a query but it does not work.<br />
 <br />
if(khs.result between 90 and 100),'A',if(khs.result between 80 and 90),'B',if(khs.result between 70 and 80),'A','C' AS FINALRESULT<br />
<br />
help me to correct this query.]]></description>
            <dc:creator>anang jablai</dc:creator>
            <category>Database Administration</category>
            <pubDate>Sat, 31 Oct 2009 12:26:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,288810,288810#msg-288810</guid>
            <title>couldn't connect to database (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,288810,288810#msg-288810</link>
            <description><![CDATA[ Hello <br />
<br />
I am new to php mysql<br />
<br />
Actually i have read A tutorial on nettuts<br />
&quot;<a rel="nofollow"  href="http://net.tutsplus.com/tutorials/php/create-a-signup-form-with-email-confirmation/&quot">http://net.tutsplus.com/tutorials/php/create-a-signup-form-with-email-confirmation/&quot</a>;<br />
<br />
According i copy all source code &amp; change some setting only in config.php file<br />
<br />
then i copy all file to my website folder &quot;<a rel="nofollow"  href="http://www.makemycreative.in/source/index.php&quot">http://www.makemycreative.in/source/index.php&quot</a>;<br />
<br />
now it showing error like...<br />
<br />
<br />
&quot;I couldn't connect to your database, please make sure your info is correct!&quot;<br />
<br />
in config.php.. there is asking for<br />
<br />
----------------------------------------------------------------------------------------------------------------<br />
<br />
&quot;mysql_connect('localhost', 'root', 'root') or die(&quot;I couldn't connect to your database, please make sure your info is correct!&quot;);<br />
mysql_select_db('email_signup') or die(&quot;I couldn't find the database table ($table) make sure it's spelt right!&quot;);&quot;<br />
<br />
I fill instead of above....these...<br />
<br />
&quot;mysql_connect('localhost', 'makemycr', 'samson01') or die(&quot;I couldn't connect to your database, please make sure your info is correct!&quot;);<br />
mysql_select_db('user1') or die(&quot;I couldn't find the database table ($table) make sure it's spelt right!&quot;);&quot;<br />
<br />
-------------------------------------------------------------------------------------------------------------------<br />
<br />
<br />
I am not what to write instead of localhost.. i am very confused abt localhost..<br />
<br />
rest of i know.. i think it's a problem of localhost...]]></description>
            <dc:creator>yash mistrey</dc:creator>
            <category>Database Administration</category>
            <pubDate>Sat, 31 Oct 2009 07:18:05 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,288809,288809#msg-288809</guid>
            <title>couldn't connect to database (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,288809,288809#msg-288809</link>
            <description><![CDATA[ Hello ncovil !<br />
<br />
I am new to php mysql<br />
<br />
Actually i have read A tutorial on nettuts<br />
&quot;<a rel="nofollow"  href="http://net.tutsplus.com/tutorials/php/create-a-signup-form-with-email-confirmation/&quot">http://net.tutsplus.com/tutorials/php/create-a-signup-form-with-email-confirmation/&quot</a>;<br />
<br />
According i copy all source code &amp; change some setting only in config.php file<br />
<br />
then i copy all file to my website folder &quot;<a rel="nofollow"  href="http://www.makemycreative.in/source/index.php&quot">http://www.makemycreative.in/source/index.php&quot</a>;<br />
<br />
now it showing error like...<br />
<br />
<br />
&quot;I couldn't connect to your database, please make sure your info is correct!&quot;<br />
<br />
in config.php.. there is asking for<br />
<br />
----------------------------------------------------------------------------------------------------------------<br />
<br />
&quot;mysql_connect('localhost', 'root', 'root') or die(&quot;I couldn't connect to your database, please make sure your info is correct!&quot;);<br />
mysql_select_db('email_signup') or die(&quot;I couldn't find the database table ($table) make sure it's spelt right!&quot;);&quot;<br />
<br />
I fill instead of above....these...<br />
<br />
&quot;mysql_connect('localhost', 'makemycr', 'samson01') or die(&quot;I couldn't connect to your database, please make sure your info is correct!&quot;);<br />
mysql_select_db('user1') or die(&quot;I couldn't find the database table ($table) make sure it's spelt right!&quot;);&quot;<br />
<br />
-------------------------------------------------------------------------------------------------------------------<br />
<br />
<br />
I am not what to write instead of localhost.. i am very confused abt localhost..<br />
<br />
rest of i know.. i think it's a problem of localhost...]]></description>
            <dc:creator>yash mistrey</dc:creator>
            <category>Database Administration</category>
            <pubDate>Sat, 31 Oct 2009 07:18:42 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,288716,288716#msg-288716</guid>
            <title>no properly closed connections ==&amp;gt; run out connections!!! (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,288716,288716#msg-288716</link>
            <description><![CDATA[ Hi Guys,<br />
i need some help from this forum, or if not possible so please redirect me to the right one (i'm not familliar with mysql world).<br />
my issue is at a given moment, i open the website and it says 'Mysql cannot connect to database&quot;, this issue is not hapening in the weekend, probably because people are not using a helpdesk application that i suspect not to close properly connections. so that in weekdays, mysql work fine for like 4 hours before it run out connections and then  'Mysql cannot connect to database' appears.<br />
<br />
1-i tried to repair this db using: myisamchk --silent --force */*.MYI.<br />
2-i retrieved some debug info using: mysqladmin -uroot -p variables debug.<br />
<br />
and it gives me the following:<br />
<br />
Memory status:<br />
Non-mmapped space allocated from system: 21061552<br />
Number of free chunks:                   5<br />
Number of fastbin blocks:                0<br />
Number of mmapped regions:               20<br />
Space in mmapped regions:                915787776<br />
Maximum total allocated space:           0<br />
Space available in freed fastbin blocks: 0<br />
Total allocated space:                   20721408<br />
Total free space:                        340144<br />
Top-most, releasable space:              337592<br />
Estimated memory (with thread stack):    947269552<br />
<br />
<br />
Status information:<br />
<br />
Current dir: /home/mysql/<br />
Running threads: 59  Stack size: 196608<br />
Current locks:<br />
lock: 0x16900b40:<br />
<br />
lock: 0x168bc8f0:<br />
....<br />
lock: 0x16689c48:<br />
<br />
lock: 0x16681120:<br />
<br />
<br />
Key caches:<br />
default<br />
Buffer_size:     134217728<br />
Block_size:           1024<br />
Division_limit:        100<br />
Age_limit:             300<br />
blocks used:          1018<br />
not flushed:             0<br />
w_requests:            980<br />
writes:                854<br />
r_requests:         582143<br />
reads:                1018<br />
<br />
<br />
handler status:<br />
read_key:       315293<br />
read_next:     1771454<br />
read_rnd          2392<br />
read_first:        322<br />
write:           35816<br />
delete             256<br />
update:           1218<br />
<br />
Table status:<br />
Opened tables:        186<br />
Open tables:          180<br />
Open files:           161<br />
Open streams:           0<br />
<br />
Alarm status:<br />
Active alarms:   58<br />
Max used alarms: 59<br />
Next alarm time: 24385]]></description>
            <dc:creator>khalid touati</dc:creator>
            <category>Database Administration</category>
            <pubDate>Fri, 30 Oct 2009 14:57:40 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,288229,288229#msg-288229</guid>
            <title>KILL UNWANTED SLEEPING CONNECTIONS (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,288229,288229#msg-288229</link>
            <description><![CDATA[ Hi<br />
im developing an application with c#.net and MySQL using mysql manager.<br />
Connection open and close is working perfect. Thanks to application manager<br />
But My Issue is<br />
<br />
Lot of Sleeping connections alive in the server so the performance was reduced.<br />
<br />
I tried the following commands to reduce the &quot;wait_timeout&quot;<br />
<br />
mysql&gt;set global &quot;wait_timeout =30&quot; <br />
<br />
and<br />
<br />
mysql&gt;set @@session.wait_timeout=30<br />
<br />
but after some minutes i checked the timeout variable value it shows the default(28800)<br />
<br />
im using appache-my sql server version<br />
<br />
pls suggest me to break the head-ace<br />
<br />
<br />
Thanks in Advance<br />
Arun]]></description>
            <dc:creator>Arunkumar N</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 10 Nov 2009 09:45:05 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,288017,288017#msg-288017</guid>
            <title>error 134 on a table cause Mysql server to stop connecting to db's (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,288017,288017#msg-288017</link>
            <description><![CDATA[ Hi Guys, <br />
i have an error taht miss up everything using mysql in my server, including websites of course. <br />
here is the thing: the error start with a table as it says here in the logs: <br />
<br />
091023 12:45:40 [ERROR] Got error 134 when reading table './otrs/user_preferences' <br />
091023 12:46:02 [ERROR] Got error 134 when reading table './otrs/user_preferences' <br />
091023 12:46:11 [ERROR] Got error 134 when reading table './otrs/user_preferences' <br />
091023 12:46:17 [ERROR] Got error 134 when reading table './otrs/user_preferences' <br />
091023 12:46:23 [ERROR] Got error 134 when reading table './otrs/user_preferences' <br />
091023 14:26:06 [Note] /usr/sbin/mysqld: Normal shutdown <br />
<br />
091023 14:26:08 InnoDB: Starting shutdown... <br />
091023 14:26:12 InnoDB: Shutdown completed; log sequence number 1 3966143693 <br />
091023 14:26:12 [Note] /usr/sbin/mysqld: Shutdown complete <br />
<br />
091023 14:26:12 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=/var/run/mysqld/mysqld-bin' to avoid this problem. <br />
091023 14:26:13 InnoDB: Started; log sequence number 1 3966143693 <br />
091023 14:26:13 [Note] /usr/sbin/mysqld: ready for connections. <br />
Version: '5.0.44-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Gentoo Linux mysql-5.0.44-r2 <br />
<br />
this error make that when you connect to website it says &quot;mysql cannot connect to database&quot;, so i restared the mysql and i get the warning below it stays normal for few hours like 6 hours and the cycle get launched again. <br />
any idea that can get ma out of the cycle please!!?]]></description>
            <dc:creator>khalid touati</dc:creator>
            <category>Database Administration</category>
            <pubDate>Thu, 19 Nov 2009 09:13:47 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,287740,287740#msg-287740</guid>
            <title>Large table issue (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,287740,287740#msg-287740</link>
            <description><![CDATA[ I have a table growing immensely every day , currently it has around 18777410 records.<br />
Our site is available 24x7 and we are using mysql replication to distrubute load on the database server ( a master and single slave combination).<br />
It is almost two years we running the application on mysql 5.0.45 everything seems to fine, but now we are facing problem with maintaining this huge table.<br />
Following are key problem areas:<br />
	a) Running aggregate queries takes more than 5 minutes, which is not acceptable with respect to site performane<br />
	b) Adding index is not possible as it takes more than 3/4 hours which result in site downtime<br />
	c) command like optimize and analyze cant be run as it is online application and it will result in locking of this important table.<br />
<br />
<br />
Can any one suggest possible approach to solve this problem, we are thinking of trying following approach<br />
	a) Have seperate table for having archive data,so query requiring complete data, will need to be fire two queries or have union on archive data and live data<br />
	b) Upgrade to mysql 5.1 and see having partitioning on this table helps<br />
	c) have mutliple database slave server to hit queries on most used use cases on this table.<br />
<br />
Let me know if anyone faced similar problem and how to go about solving it]]></description>
            <dc:creator>omkar prabhu</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 27 Oct 2009 12:30:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,287710,287710#msg-287710</guid>
            <title>Insert with Where Not Exists (5 replies)</title>
            <link>http://forums.mysql.com/read.php?35,287710,287710#msg-287710</link>
            <description><![CDATA[ I cant figure out what i need to change to make this work?<br />
<br />
<br />
Insert into stockchart (symbol,date,open,high,low,close,volume,adjclose) Values ('LVN.V','2009-10-22','0.26','0.37','0.25','0.37','809200','0.37') WHERE NOT EXISTS (select * from stockchart where symbol='LVN.V' and date='2009-10-22' LIMIT 1);]]></description>
            <dc:creator>Craig Paterson</dc:creator>
            <category>Database Administration</category>
            <pubDate>Mon, 26 Oct 2009 16:20:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,287020,287020#msg-287020</guid>
            <title>&amp;quot;optimize table&amp;quot; takes long time (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,287020,287020#msg-287020</link>
            <description><![CDATA[ Hi, <br />
I use 'optimize table ' to maintein a table very Monday and Friday, usaually it needs 1 hour normally , but sometime ,the 'optimize table' operation take serval hours or longer, today the 'optimize table ' runs for near 10 hours and not finish . Please help to check the problem.<br />
The table is MyISAM table.  The CPU,disk IO and Memory status are OK.<br />
-bash-3.00$ ls  <br />
-rw-rw----   1 mysql    mysql    2629828608 Oct 19 23:51 tabname.TMD<br />
-rw-r-----   1 mysql    mysql    2348271616 Oct 19 22:12 tabname.MYI<br />
-rw-rw----   1 mysql    mysql    5564438256 Oct 19 13:15 tabname.MYD<br />
-rw-rw----   1 mysql    mysql      13672 Sep 21 18:39 tabname.frm<br />
<br />
 <br />
+-------+------------+--------------------+----------+------------+-------+----------------------+------------------------------------------------------------------------------------------------------+<br />
| Id    | User       | Host               | db       | Command    | Time  | State                | Info                                                                                                 |<br />
+-------+------------+--------------------+----------+------------+-------+----------------------+------------------------------------------------------------------------------------------------------+<br />
| 84297 | useracc        | localhost          | nondb     | Query      | 34267 | Repair with keycache | OPTIMIZE TABLE `mytable`  <br />
<br />
mysql&gt; show variables;<br />
+---------------------------------+---------------------------------------------------------------------------------+<br />
| Variable_name                   | Value                                                                           |<br />
+---------------------------------+---------------------------------------------------------------------------------+<br />
| auto_increment_increment        | 1                                                                               | <br />
| auto_increment_offset           | 1                                                                               | <br />
| automatic_sp_privileges         | ON                                                                              | <br />
| back_log                        | 50                                                                              | <br />
| basedir                         | /store2/local/mysql-standard-5.0.24-solaris10-sparc-64bit/                      | <br />
| binlog_cache_size               | 32768                                                                           | <br />
| bulk_insert_buffer_size         | 8388608                                                                         | <br />
| character_set_client            | latin1                                                                          | <br />
| character_set_connection        | latin1                                                                          | <br />
| character_set_database          | latin1                                                                          | <br />
| character_set_filesystem        | binary                                                                          | <br />
| character_set_results           | latin1                                                                          | <br />
| character_set_server            | latin1                                                                          | <br />
| character_set_system            | utf8                                                                            | <br />
| character_sets_dir              | /store2/local/mysql-standard-5.0.24-solaris10-sparc-64bit/share/mysql/charsets/ | <br />
| collation_connection            | latin1_swedish_ci                                                               | <br />
| collation_database              | latin1_swedish_ci                                                               | <br />
| collation_server                | latin1_swedish_ci                                                               | <br />
| completion_type                 | 0                                                                               | <br />
| concurrent_insert               | 1                                                                               | <br />
| connect_timeout                 | 5                                                                               | <br />
| datadir                         | /usr/local/mysql/data/                                                          | <br />
| date_format                     | %Y-%m-%d                                                                        | <br />
| datetime_format                 | %Y-%m-%d %H:%i:%s                                                               | <br />
| default_week_format             | 0                                                                               | <br />
| delay_key_write                 | ON                                                                              | <br />
| delayed_insert_limit            | 100                                                                             | <br />
| delayed_insert_timeout          | 300                                                                             | <br />
| delayed_queue_size              | 1000                                                                            | <br />
| div_precision_increment         | 4                                                                               | <br />
| engine_condition_pushdown       | OFF                                                                             | <br />
| expire_logs_days                | 0                                                                               | <br />
| flush                           | OFF                                                                             | <br />
| flush_time                      | 0                                                                               | <br />
| ft_boolean_syntax               | + -&gt;&lt;()~*:&quot;&quot;&amp;|                                                                  | <br />
| ft_max_word_len                 | 84                                                                              | <br />
| ft_min_word_len                 | 4                                                                               | <br />
| ft_query_expansion_limit        | 20                                                                              | <br />
| ft_stopword_file                | (built-in)                                                                      | <br />
| group_concat_max_len            | 1024                                                                            | <br />
| have_archive                    | YES                                                                             | <br />
| have_bdb                        | NO                                                                              | <br />
| have_blackhole_engine           | NO                                                                              | <br />
| have_compress                   | YES                                                                             | <br />
| have_crypt                      | YES                                                                             | <br />
| have_csv                        | NO                                                                              | <br />
| have_dynamic_loading            | YES                                                                             | <br />
| have_example_engine             | NO                                                                              | <br />
| have_federated_engine           | NO                                                                              | <br />
| have_geometry                   | YES                                                                             | <br />
| have_innodb                     | YES                                                                             | <br />
| have_isam                       | NO                                                                              | <br />
| have_ndbcluster                 | NO                                                                              | <br />
| have_merge_engine               | YES                                                                             | <br />
| have_openssl                    | DISABLED                                                                        | <br />
| have_query_cache                | YES                                                                             | <br />
| have_raid                       | NO                                                                              | <br />
| have_rtree_keys                 | YES                                                                             | <br />
| have_symlink                    | YES                                                                             | <br />
| init_connect                    |                                                                                 | <br />
| init_file                       |                                                                                 | <br />
| init_slave                      |                                                                                 | <br />
| innodb_additional_mem_pool_size | 1048576                                                                         | <br />
| innodb_autoextend_increment     | 8                                                                               | <br />
| innodb_buffer_pool_awe_mem_mb   | 0                                                                               | <br />
| innodb_buffer_pool_size         | 8388608                                                                         | <br />
| innodb_checksums                | ON                                                                              | <br />
| innodb_commit_concurrency       | 0                                                                               | <br />
| innodb_concurrency_tickets      | 500                                                                             | <br />
| innodb_data_file_path           | ibdata1:10M:autoextend                                                          | <br />
| innodb_data_home_dir            |                                                                                 | <br />
| innodb_doublewrite              | ON                                                                              | <br />
| innodb_fast_shutdown            | 1                                                                               | <br />
| innodb_file_io_threads          | 4                                                                               | <br />
| innodb_file_per_table           | OFF                                                                             | <br />
| innodb_flush_log_at_trx_commit  | 1                                                                               | <br />
| innodb_flush_method             |                                                                                 | <br />
| innodb_force_recovery           | 0                                                                               | <br />
| innodb_lock_wait_timeout        | 50                                                                              | <br />
| innodb_locks_unsafe_for_binlog  | OFF                                                                             | <br />
| innodb_log_arch_dir             |                                                                                 | <br />
| innodb_log_archive              | OFF                                                                             | <br />
| innodb_log_buffer_size          | 1048576                                                                         | <br />
| innodb_log_file_size            | 5242880                                                                         | <br />
| innodb_log_files_in_group       | 2                                                                               | <br />
| innodb_log_group_home_dir       | ./                                                                              | <br />
| innodb_max_dirty_pages_pct      | 90                                                                              | <br />
| innodb_max_purge_lag            | 0                                                                               | <br />
| innodb_mirrored_log_groups      | 1                                                                               | <br />
| innodb_open_files               | 300                                                                             | <br />
| innodb_support_xa               | ON                                                                              | <br />
| innodb_sync_spin_loops          | 20                                                                              | <br />
| innodb_table_locks              | ON                                                                              | <br />
| innodb_thread_concurrency       | 8                                                                               | <br />
| innodb_thread_sleep_delay       | 10000                                                                           | <br />
| interactive_timeout             | 3600                                                                            | <br />
| join_buffer_size                | 8384512                                                                         | <br />
| key_buffer_size                 | 3221225472                                                                      | <br />
| key_cache_age_threshold         | 300                                                                             | <br />
| key_cache_block_size            | 1024                                                                            | <br />
| key_cache_division_limit        | 100                                                                             | <br />
| language                        | /store2/local/mysql-standard-5.0.24-solaris10-sparc-64bit/share/mysql/english/  | <br />
| large_files_support             | ON                                                                              | <br />
| large_page_size                 | 0                                                                               | <br />
| large_pages                     | OFF                                                                             | <br />
| license                         | GPL                                                                             | <br />
| local_infile                    | ON                                                                              | <br />
| locked_in_memory                | OFF                                                                             | <br />
| log                             | OFF                                                                             | <br />
| log_bin                         | OFF                                                                             | <br />
| log_bin_trust_function_creators | OFF                                                                             | <br />
| log_error                       |                                                                                 | <br />
| log_queries_not_using_indexes   | OFF                                                                             | <br />
| log_slave_updates               | OFF                                                                             | <br />
| log_slow_queries                | OFF                                                                             | <br />
| log_warnings                    | 1                                                                               | <br />
| long_query_time                 | 10                                                                              | <br />
| low_priority_updates            | OFF                                                                             | <br />
| lower_case_file_system          | OFF                                                                             | <br />
| lower_case_table_names          | 1                                                                               | <br />
| max_allowed_packet              | 67107840                                                                        | <br />
| max_binlog_cache_size           | 18446744073709551615                                                            | <br />
| max_binlog_size                 | 1073741824                                                                      | <br />
| max_connect_errors              | 10                                                                              | <br />
| max_connections                 | 150                                                                             | <br />
| max_delayed_threads             | 20                                                                              | <br />
| max_error_count                 | 64                                                                              | <br />
| max_heap_table_size             | 276823040                                                                       | <br />
| max_insert_delayed_threads      | 20                                                                              | <br />
| max_join_size                   | 18446744073709551615                                                            | <br />
| max_length_for_sort_data        | 1024                                                                            | <br />
| max_prepared_stmt_count         | 16382                                                                           | <br />
| max_relay_log_size              | 0                                                                               | <br />
| max_seeks_for_key               | 18446744073709551615                                                            | <br />
| max_sort_length                 | 1024                                                                            | <br />
| max_sp_recursion_depth          | 0                                                                               | <br />
| max_tmp_tables                  | 32                                                                              | <br />
| max_user_connections            | 100                                                                             | <br />
| max_write_lock_count            | 18446744073709551615                                                            | <br />
| multi_range_count               | 256                                                                             | <br />
| myisam_data_pointer_size        | 6                                                                               | <br />
| myisam_max_sort_file_size       | 16106127360                                                                     | <br />
| myisam_recover_options          | OFF                                                                             | <br />
| myisam_repair_threads           | 1                                                                               | <br />
| myisam_sort_buffer_size         | 1572864000                                                                      | <br />
| myisam_stats_method             | nulls_unequal                                                                   | <br />
| net_buffer_length               | 16384                                                                           | <br />
| net_read_timeout                | 30                                                                              | <br />
| net_retry_count                 | 10                                                                              | <br />
| net_write_timeout               | 60                                                                              | <br />
| new                             | OFF                                                                             | <br />
| old_passwords                   | OFF                                                                             | <br />
| open_files_limit                | 760                                                                             | <br />
| optimizer_prune_level           | 1                                                                               | <br />
| optimizer_search_depth          | 62                                                                              | <br />
| pid_file                        | /usr/local/mysql/data/dbnode.pid                                               | <br />
| port                            | 3306                                                                            | <br />
| preload_buffer_size             | 32768                                                                           | <br />
| prepared_stmt_count             | 0                                                                               | <br />
| protocol_version                | 10                                                                              | <br />
| query_alloc_block_size          | 8192                                                                            | <br />
| query_cache_limit               | 1048576                                                                         | <br />
| query_cache_min_res_unit        | 4096                                                                            | <br />
| query_cache_size                | 134217728                                                                       | <br />
| query_cache_type                | ON                                                                              | <br />
| query_cache_wlock_invalidate    | OFF                                                                             | <br />
| query_prealloc_size             | 8192                                                                            | <br />
| range_alloc_block_size          | 2048                                                                            | <br />
| read_buffer_size                | 2093056                                                                         | <br />
| read_only                       | OFF                                                                             | <br />
| read_rnd_buffer_size            | 262144                                                                          | <br />
| relay_log_purge                 | ON                                                                              | <br />
| relay_log_space_limit           | 0                                                                               | <br />
| rpl_recovery_rank               | 0                                                                               | <br />
| secure_auth                     | OFF                                                                             | <br />
| server_id                       | 1420                                                                            | <br />
| skip_external_locking           | ON                                                                              | <br />
| skip_networking                 | OFF                                                                             | <br />
| skip_show_database              | OFF                                                                             | <br />
| slave_compressed_protocol       | OFF                                                                             | <br />
| slave_load_tmpdir               | /usr/local/mysql/data/                                                          | <br />
| slave_net_timeout               | 3600                                                                            | <br />
| slave_skip_errors               | OFF                                                                             | <br />
| slave_transaction_retries       | 10                                                                              | <br />
| slow_launch_time                | 2                                                                               | <br />
| socket                          | /tmp/mysql.sock                                                                 | <br />
| sort_buffer_size                | 8388600                                                                         | <br />
| sql_big_selects                 | ON                                                                              | <br />
| sql_mode                        |                                                                                 | <br />
| sql_notes                       | ON                                                                              | <br />
| sql_warnings                    | OFF                                                                             | <br />
| ssl_ca                          |                                                                                 | <br />
| ssl_capath                      |                                                                                 | <br />
| ssl_cert                        |                                                                                 | <br />
| ssl_cipher                      |                                                                                 | <br />
| ssl_key                         |                                                                                 | <br />
| storage_engine                  | MyISAM                                                                          | <br />
| sync_binlog                     | 0                                                                               | <br />
| sync_frm                        | ON                                                                              | <br />
| system_time_zone                | PDT                                                                             | <br />
| table_cache                     | 300                                                                             | <br />
| table_lock_wait_timeout         | 50                                                                              | <br />
| table_type                      | MyISAM                                                                          | <br />
| thread_cache_size               | 8                                                                               | <br />
| thread_concurrency              | 16                                                                              | <br />
| thread_stack                    | 262144                                                                          | <br />
| time_format                     | %H:%i:%s                                                                        | <br />
| time_zone                       | SYSTEM                                                                          | <br />
| timed_mutexes                   | OFF                                                                             | <br />
| tmp_table_size                  | 33554432                                                                        | <br />
| tmpdir                          | /usr/local/mysql/data                                                           | <br />
| transaction_alloc_block_size    | 8192                                                                            | <br />
| transaction_prealloc_size       | 4096                                                                            | <br />
| tx_isolation                    | REPEATABLE-READ                                                                 | <br />
| updatable_views_with_limit      | YES                                                                             | <br />
| version                         | 5.0.24-standard                                                                 | <br />
| version_comment                 | MySQL Community Edition - Standard (GPL)                                        | <br />
| version_compile_machine         | sparc                                                                           | <br />
| version_compile_os              | sun-solaris2.10                                                                 | <br />
| wait_timeout                    | 3600                                                                            | <br />
+---------------------------------+---------------------------------------------------------------------------------+<br />
220 rows in set (0.00 sec)<br />
<br />
mysql&gt; show status;;<br />
+-----------------------------------+-------------+<br />
| Variable_name                     | Value       |<br />
+-----------------------------------+-------------+<br />
| Aborted_clients                   | 11818       | <br />
| Aborted_connects                  | 1449        | <br />
| Binlog_cache_disk_use             | 0           | <br />
| Binlog_cache_use                  | 0           | <br />
| Bytes_received                    | 278         | <br />
| Bytes_sent                        | 17129       | <br />
| Com_admin_commands                | 0           | <br />
| Com_alter_db                      | 0           | <br />
| Com_alter_table                   | 0           | <br />
| Com_analyze                       | 0           | <br />
| Com_backup_table                  | 0           | <br />
| Com_begin                         | 0           | <br />
| Com_change_db                     | 0           | <br />
| Com_change_master                 | 0           | <br />
| Com_check                         | 0           | <br />
| Com_checksum                      | 0           | <br />
| Com_commit                        | 0           | <br />
| Com_create_db                     | 0           | <br />
| Com_create_function               | 0           | <br />
| Com_create_index                  | 0           | <br />
| Com_create_table                  | 0           | <br />
| Com_dealloc_sql                   | 0           | <br />
| Com_delete                        | 0           | <br />
| Com_delete_multi                  | 0           | <br />
| Com_do                            | 0           | <br />
| Com_drop_db                       | 0           | <br />
| Com_drop_function                 | 0           | <br />
| Com_drop_index                    | 0           | <br />
| Com_drop_table                    | 0           | <br />
| Com_drop_user                     | 0           | <br />
| Com_execute_sql                   | 0           | <br />
| Com_flush                         | 0           | <br />
| Com_grant                         | 0           | <br />
| Com_ha_close                      | 0           | <br />
| Com_ha_open                       | 0           | <br />
| Com_ha_read                       | 0           | <br />
| Com_help                          | 0           | <br />
| Com_insert                        | 0           | <br />
| Com_insert_select                 | 0           | <br />
| Com_kill                          | 1           | <br />
| Com_load                          | 0           | <br />
| Com_load_master_data              | 0           | <br />
| Com_load_master_table             | 0           | <br />
| Com_lock_tables                   | 0           | <br />
| Com_optimize                      | 0           | <br />
| Com_preload_keys                  | 0           | <br />
| Com_prepare_sql                   | 0           | <br />
| Com_purge                         | 0           | <br />
| Com_purge_before_date             | 0           | <br />
| Com_rename_table                  | 0           | <br />
| Com_repair                        | 0           | <br />
| Com_replace                       | 0           | <br />
| Com_replace_select                | 0           | <br />
| Com_reset                         | 0           | <br />
| Com_restore_table                 | 0           | <br />
| Com_revoke                        | 0           | <br />
| Com_revoke_all                    | 0           | <br />
| Com_rollback                      | 0           | <br />
| Com_savepoint                     | 0           | <br />
| Com_select                        | 0           | <br />
| Com_set_option                    | 0           | <br />
| Com_show_binlog_events            | 0           | <br />
| Com_show_binlogs                  | 0           | <br />
| Com_show_charsets                 | 0           | <br />
| Com_show_collations               | 0           | <br />
| Com_show_column_types             | 0           | <br />
| Com_show_create_db                | 0           | <br />
| Com_show_create_table             | 0           | <br />
| Com_show_databases                | 0           | <br />
| Com_show_errors                   | 0           | <br />
| Com_show_fields                   | 0           | <br />
| Com_show_grants                   | 0           | <br />
| Com_show_innodb_status            | 0           | <br />
| Com_show_keys                     | 0           | <br />
| Com_show_logs                     | 0           | <br />
| Com_show_master_status            | 0           | <br />
| Com_show_ndb_status               | 0           | <br />
| Com_show_new_master               | 0           | <br />
| Com_show_open_tables              | 0           | <br />
| Com_show_privileges               | 0           | <br />
| Com_show_processlist              | 7           | <br />
| Com_show_slave_hosts              | 0           | <br />
| Com_show_slave_status             | 0           | <br />
| Com_show_status                   | 1           | <br />
| Com_show_storage_engines          | 0           | <br />
| Com_show_tables                   | 0           | <br />
| Com_show_triggers                 | 0           | <br />
| Com_show_variables                | 1           | <br />
| Com_show_warnings                 | 0           | <br />
| Com_slave_start                   | 0           | <br />
| Com_slave_stop                    | 0           | <br />
| Com_stmt_close                    | 0           | <br />
| Com_stmt_execute                  | 0           | <br />
| Com_stmt_fetch                    | 0           | <br />
| Com_stmt_prepare                  | 0           | <br />
| Com_stmt_reset                    | 0           | <br />
| Com_stmt_send_long_data           | 0           | <br />
| Com_truncate                      | 0           | <br />
| Com_unlock_tables                 | 0           | <br />
| Com_update                        | 0           | <br />
| Com_update_multi                  | 0           | <br />
| Com_xa_commit                     | 0           | <br />
| Com_xa_end                        | 0           | <br />
| Com_xa_prepare                    | 0           | <br />
| Com_xa_recover                    | 0           | <br />
| Com_xa_rollback                   | 0           | <br />
| Com_xa_start                      | 0           | <br />
| Compression                       | OFF         | <br />
| Connections                       | 91280       | <br />
| Created_tmp_disk_tables           | 0           | <br />
| Created_tmp_files                 | 1812        | <br />
| Created_tmp_tables                | 2           | <br />
| Delayed_errors                    | 0           | <br />
| Delayed_insert_threads            | 0           | <br />
| Delayed_writes                    | 0           | <br />
| Flush_commands                    | 1           | <br />
| Handler_commit                    | 0           | <br />
| Handler_delete                    | 0           | <br />
| Handler_discover                  | 0           | <br />
| Handler_prepare                   | 0           | <br />
| Handler_read_first                | 0           | <br />
| Handler_read_key                  | 0           | <br />
| Handler_read_next                 | 0           | <br />
| Handler_read_prev                 | 0           | <br />
| Handler_read_rnd                  | 0           | <br />
| Handler_read_rnd_next             | 221         | <br />
| Handler_rollback                  | 0           | <br />
| Handler_savepoint                 | 0           | <br />
| Handler_savepoint_rollback        | 0           | <br />
| Handler_update                    | 0           | <br />
| Handler_write                     | 350         | <br />
| Innodb_buffer_pool_pages_data     | 20          | <br />
| Innodb_buffer_pool_pages_dirty    | 0           | <br />
| Innodb_buffer_pool_pages_flushed  | 0           | <br />
| Innodb_buffer_pool_pages_free     | 491         | <br />
| Innodb_buffer_pool_pages_latched  | 0           | <br />
| Innodb_buffer_pool_pages_misc     | 1           | <br />
| Innodb_buffer_pool_pages_total    | 512         | <br />
| Innodb_buffer_pool_read_ahead_rnd | 1           | <br />
| Innodb_buffer_pool_read_ahead_seq | 0           | <br />
| Innodb_buffer_pool_read_requests  | 669         | <br />
| Innodb_buffer_pool_reads          | 13          | <br />
| Innodb_buffer_pool_wait_free      | 0           | <br />
| Innodb_buffer_pool_write_requests | 0           | <br />
| Innodb_data_fsyncs                | 3           | <br />
| Innodb_data_pending_fsyncs        | 0           | <br />
| Innodb_data_pending_reads         | 0           | <br />
| Innodb_data_pending_writes        | 0           | <br />
| Innodb_data_read                  | 2510848     | <br />
| Innodb_data_reads                 | 26          | <br />
| Innodb_data_writes                | 3           | <br />
| Innodb_data_written               | 1536        | <br />
| Innodb_dblwr_pages_written        | 0           | <br />
| Innodb_dblwr_writes               | 0           | <br />
| Innodb_log_waits                  | 0           | <br />
| Innodb_log_write_requests         | 0           | <br />
| Innodb_log_writes                 | 1           | <br />
| Innodb_os_log_fsyncs              | 3           | <br />
| Innodb_os_log_pending_fsyncs      | 0           | <br />
| Innodb_os_log_pending_writes      | 0           | <br />
| Innodb_os_log_written             | 512         | <br />
| Innodb_page_size                  | 16384       | <br />
| Innodb_pages_created              | 0           | <br />
| Innodb_pages_read                 | 20          | <br />
| Innodb_pages_written              | 0           | <br />
| Innodb_row_lock_current_waits     | 0           | <br />
| Innodb_row_lock_time              | 0           | <br />
| Innodb_row_lock_time_avg          | 0           | <br />
| Innodb_row_lock_time_max          | 0           | <br />
| Innodb_row_lock_waits             | 0           | <br />
| Innodb_rows_deleted               | 0           | <br />
| Innodb_rows_inserted              | 0           | <br />
| Innodb_rows_read                  | 0           | <br />
| Innodb_rows_updated               | 0           | <br />
| Key_blocks_not_flushed            | 968570      | <br />
| Key_blocks_unused                 | 1409065     | <br />
| Key_blocks_used                   | 2586872     | <br />
| Key_read_requests                 | 11596369138 | <br />
| Key_reads                         | 286439943   | <br />
| Key_write_requests                | 1572236319  | <br />
| Key_writes                        | 291256289   | <br />
| Last_query_cost                   | 10.499000   | <br />
| Max_used_connections              | 40          | <br />
| Not_flushed_delayed_rows          | 0           | <br />
| Open_files                        | 580         | <br />
| Open_streams                      | 0           | <br />
| Open_tables                       | 291         | <br />
| Opened_tables                     | 0           | <br />
| Qcache_free_blocks                | 3           | <br />
| Qcache_free_memory                | 103520328   | <br />
| Qcache_hits                       | 4934        | <br />
| Qcache_inserts                    | 6246809     | <br />
| Qcache_lowmem_prunes              | 1329004     | <br />
| Qcache_not_cached                 | 3721641     | <br />
| Qcache_queries_in_cache           | 28138       | <br />
| Qcache_total_blocks               | 56314       | <br />
| Questions                         | 90691580    | <br />
| Rpl_status                        | NULL        | <br />
| Select_full_join                  | 0           | <br />
| Select_full_range_join            | 0           | <br />
| Select_range                      | 0           | <br />
| Select_range_check                | 0           | <br />
| Select_scan                       | 2           | <br />
| Slave_open_temp_tables            | 0           | <br />
| Slave_retried_transactions        | 0           | <br />
| Slave_running                     | OFF         | <br />
| Slow_launch_threads               | 0           | <br />
| Slow_queries                      | 0           | <br />
| Sort_merge_passes                 | 0           | <br />
| Sort_range                        | 0           | <br />
| Sort_rows                         | 0           | <br />
| Sort_scan                         | 0           | <br />
| Ssl_accept_renegotiates           | 0           | <br />
| Ssl_accepts                       | 0           | <br />
| Ssl_callback_cache_hits           | 0           | <br />
| Ssl_cipher                        |             | <br />
| Ssl_cipher_list                   |             | <br />
| Ssl_client_connects               | 0           | <br />
| Ssl_connect_renegotiates          | 0           | <br />
| Ssl_ctx_verify_depth              | 0           | <br />
| Ssl_ctx_verify_mode               | 0           | <br />
| Ssl_default_timeout               | 0           | <br />
| Ssl_finished_accepts              | 0           | <br />
| Ssl_finished_connects             | 0           | <br />
| Ssl_session_cache_hits            | 0           | <br />
| Ssl_session_cache_misses          | 0           | <br />
| Ssl_session_cache_mode            | NONE        | <br />
| Ssl_session_cache_overflows       | 0           | <br />
| Ssl_session_cache_size            | 0           | <br />
| Ssl_session_cache_timeouts        | 0           | <br />
| Ssl_sessions_reused               | 0           | <br />
| Ssl_used_session_cache_entries    | 0           | <br />
| Ssl_verify_depth                  | 0           | <br />
| Ssl_verify_mode                   | 0           | <br />
| Ssl_version                       |             | <br />
| Table_locks_immediate             | 65626916    | <br />
| Table_locks_waited                | 23837       | <br />
| Tc_log_max_pages_used             | 0           | <br />
| Tc_log_page_size                  | 0           | <br />
| Tc_log_page_waits                 | 0           | <br />
| Threads_cached                    | 7           | <br />
| Threads_connected                 | 16          | <br />
| Threads_created                   | 1260        | <br />
| Threads_running                   | 6           | <br />
| Uptime                            | 434382      | <br />
+-----------------------------------+-------------+<br />
245 rows in set (0.00 sec)]]></description>
            <dc:creator>justin ux</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 20 Oct 2009 06:53:47 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,287019,287019#msg-287019</guid>
            <title>&amp;quot;optimize table&amp;quot; takes long time (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,287019,287019#msg-287019</link>
            <description><![CDATA[ Hi, <br />
I use 'optimize table ' to maintein a table very Monday and Friday, usaually it runs 1 hour normally , but sometime ,the 'optimize table' operation take serval hours or longer, today the 'optimize table ' runs for near 10 hours . Please help to check the problem.<br />
<br />
+-------+------------+--------------------+----------+------------+-------+----------------------+------------------------------------------------------------------------------------------------------+<br />
| Id    | User       | Host               | db       | Command    | Time  | State                | Info                                                                                                 |<br />
+-------+------------+--------------------+----------+------------+-------+----------------------+------------------------------------------------------------------------------------------------------+<br />
| 84297 | useracc        | localhost          | nondb     | Query      | 34267 | Repair with keycache | OPTIMIZE TABLE `mytable`  <br />
<br />
mysql&gt; show variables;<br />
+---------------------------------+---------------------------------------------------------------------------------+<br />
| Variable_name                   | Value                                                                           |<br />
+---------------------------------+---------------------------------------------------------------------------------+<br />
| auto_increment_increment        | 1                                                                               | <br />
| auto_increment_offset           | 1                                                                               | <br />
| automatic_sp_privileges         | ON                                                                              | <br />
| back_log                        | 50                                                                              | <br />
| basedir                         | /store2/local/mysql-standard-5.0.24-solaris10-sparc-64bit/                      | <br />
| binlog_cache_size               | 32768                                                                           | <br />
| bulk_insert_buffer_size         | 8388608                                                                         | <br />
| character_set_client            | latin1                                                                          | <br />
| character_set_connection        | latin1                                                                          | <br />
| character_set_database          | latin1                                                                          | <br />
| character_set_filesystem        | binary                                                                          | <br />
| character_set_results           | latin1                                                                          | <br />
| character_set_server            | latin1                                                                          | <br />
| character_set_system            | utf8                                                                            | <br />
| character_sets_dir              | /store2/local/mysql-standard-5.0.24-solaris10-sparc-64bit/share/mysql/charsets/ | <br />
| collation_connection            | latin1_swedish_ci                                                               | <br />
| collation_database              | latin1_swedish_ci                                                               | <br />
| collation_server                | latin1_swedish_ci                                                               | <br />
| completion_type                 | 0                                                                               | <br />
| concurrent_insert               | 1                                                                               | <br />
| connect_timeout                 | 5                                                                               | <br />
| datadir                         | /usr/local/mysql/data/                                                          | <br />
| date_format                     | %Y-%m-%d                                                                        | <br />
| datetime_format                 | %Y-%m-%d %H:%i:%s                                                               | <br />
| default_week_format             | 0                                                                               | <br />
| delay_key_write                 | ON                                                                              | <br />
| delayed_insert_limit            | 100                                                                             | <br />
| delayed_insert_timeout          | 300                                                                             | <br />
| delayed_queue_size              | 1000                                                                            | <br />
| div_precision_increment         | 4                                                                               | <br />
| engine_condition_pushdown       | OFF                                                                             | <br />
| expire_logs_days                | 0                                                                               | <br />
| flush                           | OFF                                                                             | <br />
| flush_time                      | 0                                                                               | <br />
| ft_boolean_syntax               | + -&gt;&lt;()~*:&quot;&quot;&amp;|                                                                  | <br />
| ft_max_word_len                 | 84                                                                              | <br />
| ft_min_word_len                 | 4                                                                               | <br />
| ft_query_expansion_limit        | 20                                                                              | <br />
| ft_stopword_file                | (built-in)                                                                      | <br />
| group_concat_max_len            | 1024                                                                            | <br />
| have_archive                    | YES                                                                             | <br />
| have_bdb                        | NO                                                                              | <br />
| have_blackhole_engine           | NO                                                                              | <br />
| have_compress                   | YES                                                                             | <br />
| have_crypt                      | YES                                                                             | <br />
| have_csv                        | NO                                                                              | <br />
| have_dynamic_loading            | YES                                                                             | <br />
| have_example_engine             | NO                                                                              | <br />
| have_federated_engine           | NO                                                                              | <br />
| have_geometry                   | YES                                                                             | <br />
| have_innodb                     | YES                                                                             | <br />
| have_isam                       | NO                                                                              | <br />
| have_ndbcluster                 | NO                                                                              | <br />
| have_merge_engine               | YES                                                                             | <br />
| have_openssl                    | DISABLED                                                                        | <br />
| have_query_cache                | YES                                                                             | <br />
| have_raid                       | NO                                                                              | <br />
| have_rtree_keys                 | YES                                                                             | <br />
| have_symlink                    | YES                                                                             | <br />
| init_connect                    |                                                                                 | <br />
| init_file                       |                                                                                 | <br />
| init_slave                      |                                                                                 | <br />
| innodb_additional_mem_pool_size | 1048576                                                                         | <br />
| innodb_autoextend_increment     | 8                                                                               | <br />
| innodb_buffer_pool_awe_mem_mb   | 0                                                                               | <br />
| innodb_buffer_pool_size         | 8388608                                                                         | <br />
| innodb_checksums                | ON                                                                              | <br />
| innodb_commit_concurrency       | 0                                                                               | <br />
| innodb_concurrency_tickets      | 500                                                                             | <br />
| innodb_data_file_path           | ibdata1:10M:autoextend                                                          | <br />
| innodb_data_home_dir            |                                                                                 | <br />
| innodb_doublewrite              | ON                                                                              | <br />
| innodb_fast_shutdown            | 1                                                                               | <br />
| innodb_file_io_threads          | 4                                                                               | <br />
| innodb_file_per_table           | OFF                                                                             | <br />
| innodb_flush_log_at_trx_commit  | 1                                                                               | <br />
| innodb_flush_method             |                                                                                 | <br />
| innodb_force_recovery           | 0                                                                               | <br />
| innodb_lock_wait_timeout        | 50                                                                              | <br />
| innodb_locks_unsafe_for_binlog  | OFF                                                                             | <br />
| innodb_log_arch_dir             |                                                                                 | <br />
| innodb_log_archive              | OFF                                                                             | <br />
| innodb_log_buffer_size          | 1048576                                                                         | <br />
| innodb_log_file_size            | 5242880                                                                         | <br />
| innodb_log_files_in_group       | 2                                                                               | <br />
| innodb_log_group_home_dir       | ./                                                                              | <br />
| innodb_max_dirty_pages_pct      | 90                                                                              | <br />
| innodb_max_purge_lag            | 0                                                                               | <br />
| innodb_mirrored_log_groups      | 1                                                                               | <br />
| innodb_open_files               | 300                                                                             | <br />
| innodb_support_xa               | ON                                                                              | <br />
| innodb_sync_spin_loops          | 20                                                                              | <br />
| innodb_table_locks              | ON                                                                              | <br />
| innodb_thread_concurrency       | 8                                                                               | <br />
| innodb_thread_sleep_delay       | 10000                                                                           | <br />
| interactive_timeout             | 3600                                                                            | <br />
| join_buffer_size                | 8384512                                                                         | <br />
| key_buffer_size                 | 3221225472                                                                      | <br />
| key_cache_age_threshold         | 300                                                                             | <br />
| key_cache_block_size            | 1024                                                                            | <br />
| key_cache_division_limit        | 100                                                                             | <br />
| language                        | /store2/local/mysql-standard-5.0.24-solaris10-sparc-64bit/share/mysql/english/  | <br />
| large_files_support             | ON                                                                              | <br />
| large_page_size                 | 0                                                                               | <br />
| large_pages                     | OFF                                                                             | <br />
| license                         | GPL                                                                             | <br />
| local_infile                    | ON                                                                              | <br />
| locked_in_memory                | OFF                                                                             | <br />
| log                             | OFF                                                                             | <br />
| log_bin                         | OFF                                                                             | <br />
| log_bin_trust_function_creators | OFF                                                                             | <br />
| log_error                       |                                                                                 | <br />
| log_queries_not_using_indexes   | OFF                                                                             | <br />
| log_slave_updates               | OFF                                                                             | <br />
| log_slow_queries                | OFF                                                                             | <br />
| log_warnings                    | 1                                                                               | <br />
| long_query_time                 | 10                                                                              | <br />
| low_priority_updates            | OFF                                                                             | <br />
| lower_case_file_system          | OFF                                                                             | <br />
| lower_case_table_names          | 1                                                                               | <br />
| max_allowed_packet              | 67107840                                                                        | <br />
| max_binlog_cache_size           | 18446744073709551615                                                            | <br />
| max_binlog_size                 | 1073741824                                                                      | <br />
| max_connect_errors              | 10                                                                              | <br />
| max_connections                 | 150                                                                             | <br />
| max_delayed_threads             | 20                                                                              | <br />
| max_error_count                 | 64                                                                              | <br />
| max_heap_table_size             | 276823040                                                                       | <br />
| max_insert_delayed_threads      | 20                                                                              | <br />
| max_join_size                   | 18446744073709551615                                                            | <br />
| max_length_for_sort_data        | 1024                                                                            | <br />
| max_prepared_stmt_count         | 16382                                                                           | <br />
| max_relay_log_size              | 0                                                                               | <br />
| max_seeks_for_key               | 18446744073709551615                                                            | <br />
| max_sort_length                 | 1024                                                                            | <br />
| max_sp_recursion_depth          | 0                                                                               | <br />
| max_tmp_tables                  | 32                                                                              | <br />
| max_user_connections            | 100                                                                             | <br />
| max_write_lock_count            | 18446744073709551615                                                            | <br />
| multi_range_count               | 256                                                                             | <br />
| myisam_data_pointer_size        | 6                                                                               | <br />
| myisam_max_sort_file_size       | 16106127360                                                                     | <br />
| myisam_recover_options          | OFF                                                                             | <br />
| myisam_repair_threads           | 1                                                                               | <br />
| myisam_sort_buffer_size         | 1572864000                                                                      | <br />
| myisam_stats_method             | nulls_unequal                                                                   | <br />
| net_buffer_length               | 16384                                                                           | <br />
| net_read_timeout                | 30                                                                              | <br />
| net_retry_count                 | 10                                                                              | <br />
| net_write_timeout               | 60                                                                              | <br />
| new                             | OFF                                                                             | <br />
| old_passwords                   | OFF                                                                             | <br />
| open_files_limit                | 760                                                                             | <br />
| optimizer_prune_level           | 1                                                                               | <br />
| optimizer_search_depth          | 62                                                                              | <br />
| pid_file                        | /usr/local/mysql/data/dbnode.pid                                               | <br />
| port                            | 3306                                                                            | <br />
| preload_buffer_size             | 32768                                                                           | <br />
| prepared_stmt_count             | 0                                                                               | <br />
| protocol_version                | 10                                                                              | <br />
| query_alloc_block_size          | 8192                                                                            | <br />
| query_cache_limit               | 1048576                                                                         | <br />
| query_cache_min_res_unit        | 4096                                                                            | <br />
| query_cache_size                | 134217728                                                                       | <br />
| query_cache_type                | ON                                                                              | <br />
| query_cache_wlock_invalidate    | OFF                                                                             | <br />
| query_prealloc_size             | 8192                                                                            | <br />
| range_alloc_block_size          | 2048                                                                            | <br />
| read_buffer_size                | 2093056                                                                         | <br />
| read_only                       | OFF                                                                             | <br />
| read_rnd_buffer_size            | 262144                                                                          | <br />
| relay_log_purge                 | ON                                                                              | <br />
| relay_log_space_limit           | 0                                                                               | <br />
| rpl_recovery_rank               | 0                                                                               | <br />
| secure_auth                     | OFF                                                                             | <br />
| server_id                       | 1420                                                                            | <br />
| skip_external_locking           | ON                                                                              | <br />
| skip_networking                 | OFF                                                                             | <br />
| skip_show_database              | OFF                                                                             | <br />
| slave_compressed_protocol       | OFF                                                                             | <br />
| slave_load_tmpdir               | /usr/local/mysql/data/                                                          | <br />
| slave_net_timeout               | 3600                                                                            | <br />
| slave_skip_errors               | OFF                                                                             | <br />
| slave_transaction_retries       | 10                                                                              | <br />
| slow_launch_time                | 2                                                                               | <br />
| socket                          | /tmp/mysql.sock                                                                 | <br />
| sort_buffer_size                | 8388600                                                                         | <br />
| sql_big_selects                 | ON                                                                              | <br />
| sql_mode                        |                                                                                 | <br />
| sql_notes                       | ON                                                                              | <br />
| sql_warnings                    | OFF                                                                             | <br />
| ssl_ca                          |                                                                                 | <br />
| ssl_capath                      |                                                                                 | <br />
| ssl_cert                        |                                                                                 | <br />
| ssl_cipher                      |                                                                                 | <br />
| ssl_key                         |                                                                                 | <br />
| storage_engine                  | MyISAM                                                                          | <br />
| sync_binlog                     | 0                                                                               | <br />
| sync_frm                        | ON                                                                              | <br />
| system_time_zone                | PDT                                                                             | <br />
| table_cache                     | 300                                                                             | <br />
| table_lock_wait_timeout         | 50                                                                              | <br />
| table_type                      | MyISAM                                                                          | <br />
| thread_cache_size               | 8                                                                               | <br />
| thread_concurrency              | 16                                                                              | <br />
| thread_stack                    | 262144                                                                          | <br />
| time_format                     | %H:%i:%s                                                                        | <br />
| time_zone                       | SYSTEM                                                                          | <br />
| timed_mutexes                   | OFF                                                                             | <br />
| tmp_table_size                  | 33554432                                                                        | <br />
| tmpdir                          | /usr/local/mysql/data                                                           | <br />
| transaction_alloc_block_size    | 8192                                                                            | <br />
| transaction_prealloc_size       | 4096                                                                            | <br />
| tx_isolation                    | REPEATABLE-READ                                                                 | <br />
| updatable_views_with_limit      | YES                                                                             | <br />
| version                         | 5.0.24-standard                                                                 | <br />
| version_comment                 | MySQL Community Edition - Standard (GPL)                                        | <br />
| version_compile_machine         | sparc                                                                           | <br />
| version_compile_os              | sun-solaris2.10                                                                 | <br />
| wait_timeout                    | 3600                                                                            | <br />
+---------------------------------+---------------------------------------------------------------------------------+<br />
220 rows in set (0.00 sec)<br />
<br />
mysql&gt; show status;;<br />
+-----------------------------------+-------------+<br />
| Variable_name                     | Value       |<br />
+-----------------------------------+-------------+<br />
| Aborted_clients                   | 11818       | <br />
| Aborted_connects                  | 1449        | <br />
| Binlog_cache_disk_use             | 0           | <br />
| Binlog_cache_use                  | 0           | <br />
| Bytes_received                    | 278         | <br />
| Bytes_sent                        | 17129       | <br />
| Com_admin_commands                | 0           | <br />
| Com_alter_db                      | 0           | <br />
| Com_alter_table                   | 0           | <br />
| Com_analyze                       | 0           | <br />
| Com_backup_table                  | 0           | <br />
| Com_begin                         | 0           | <br />
| Com_change_db                     | 0           | <br />
| Com_change_master                 | 0           | <br />
| Com_check                         | 0           | <br />
| Com_checksum                      | 0           | <br />
| Com_commit                        | 0           | <br />
| Com_create_db                     | 0           | <br />
| Com_create_function               | 0           | <br />
| Com_create_index                  | 0           | <br />
| Com_create_table                  | 0           | <br />
| Com_dealloc_sql                   | 0           | <br />
| Com_delete                        | 0           | <br />
| Com_delete_multi                  | 0           | <br />
| Com_do                            | 0           | <br />
| Com_drop_db                       | 0           | <br />
| Com_drop_function                 | 0           | <br />
| Com_drop_index                    | 0           | <br />
| Com_drop_table                    | 0           | <br />
| Com_drop_user                     | 0           | <br />
| Com_execute_sql                   | 0           | <br />
| Com_flush                         | 0           | <br />
| Com_grant                         | 0           | <br />
| Com_ha_close                      | 0           | <br />
| Com_ha_open                       | 0           | <br />
| Com_ha_read                       | 0           | <br />
| Com_help                          | 0           | <br />
| Com_insert                        | 0           | <br />
| Com_insert_select                 | 0           | <br />
| Com_kill                          | 1           | <br />
| Com_load                          | 0           | <br />
| Com_load_master_data              | 0           | <br />
| Com_load_master_table             | 0           | <br />
| Com_lock_tables                   | 0           | <br />
| Com_optimize                      | 0           | <br />
| Com_preload_keys                  | 0           | <br />
| Com_prepare_sql                   | 0           | <br />
| Com_purge                         | 0           | <br />
| Com_purge_before_date             | 0           | <br />
| Com_rename_table                  | 0           | <br />
| Com_repair                        | 0           | <br />
| Com_replace                       | 0           | <br />
| Com_replace_select                | 0           | <br />
| Com_reset                         | 0           | <br />
| Com_restore_table                 | 0           | <br />
| Com_revoke                        | 0           | <br />
| Com_revoke_all                    | 0           | <br />
| Com_rollback                      | 0           | <br />
| Com_savepoint                     | 0           | <br />
| Com_select                        | 0           | <br />
| Com_set_option                    | 0           | <br />
| Com_show_binlog_events            | 0           | <br />
| Com_show_binlogs                  | 0           | <br />
| Com_show_charsets                 | 0           | <br />
| Com_show_collations               | 0           | <br />
| Com_show_column_types             | 0           | <br />
| Com_show_create_db                | 0           | <br />
| Com_show_create_table             | 0           | <br />
| Com_show_databases                | 0           | <br />
| Com_show_errors                   | 0           | <br />
| Com_show_fields                   | 0           | <br />
| Com_show_grants                   | 0           | <br />
| Com_show_innodb_status            | 0           | <br />
| Com_show_keys                     | 0           | <br />
| Com_show_logs                     | 0           | <br />
| Com_show_master_status            | 0           | <br />
| Com_show_ndb_status               | 0           | <br />
| Com_show_new_master               | 0           | <br />
| Com_show_open_tables              | 0           | <br />
| Com_show_privileges               | 0           | <br />
| Com_show_processlist              | 7           | <br />
| Com_show_slave_hosts              | 0           | <br />
| Com_show_slave_status             | 0           | <br />
| Com_show_status                   | 1           | <br />
| Com_show_storage_engines          | 0           | <br />
| Com_show_tables                   | 0           | <br />
| Com_show_triggers                 | 0           | <br />
| Com_show_variables                | 1           | <br />
| Com_show_warnings                 | 0           | <br />
| Com_slave_start                   | 0           | <br />
| Com_slave_stop                    | 0           | <br />
| Com_stmt_close                    | 0           | <br />
| Com_stmt_execute                  | 0           | <br />
| Com_stmt_fetch                    | 0           | <br />
| Com_stmt_prepare                  | 0           | <br />
| Com_stmt_reset                    | 0           | <br />
| Com_stmt_send_long_data           | 0           | <br />
| Com_truncate                      | 0           | <br />
| Com_unlock_tables                 | 0           | <br />
| Com_update                        | 0           | <br />
| Com_update_multi                  | 0           | <br />
| Com_xa_commit                     | 0           | <br />
| Com_xa_end                        | 0           | <br />
| Com_xa_prepare                    | 0           | <br />
| Com_xa_recover                    | 0           | <br />
| Com_xa_rollback                   | 0           | <br />
| Com_xa_start                      | 0           | <br />
| Compression                       | OFF         | <br />
| Connections                       | 91280       | <br />
| Created_tmp_disk_tables           | 0           | <br />
| Created_tmp_files                 | 1812        | <br />
| Created_tmp_tables                | 2           | <br />
| Delayed_errors                    | 0           | <br />
| Delayed_insert_threads            | 0           | <br />
| Delayed_writes                    | 0           | <br />
| Flush_commands                    | 1           | <br />
| Handler_commit                    | 0           | <br />
| Handler_delete                    | 0           | <br />
| Handler_discover                  | 0           | <br />
| Handler_prepare                   | 0           | <br />
| Handler_read_first                | 0           | <br />
| Handler_read_key                  | 0           | <br />
| Handler_read_next                 | 0           | <br />
| Handler_read_prev                 | 0           | <br />
| Handler_read_rnd                  | 0           | <br />
| Handler_read_rnd_next             | 221         | <br />
| Handler_rollback                  | 0           | <br />
| Handler_savepoint                 | 0           | <br />
| Handler_savepoint_rollback        | 0           | <br />
| Handler_update                    | 0           | <br />
| Handler_write                     | 350         | <br />
| Innodb_buffer_pool_pages_data     | 20          | <br />
| Innodb_buffer_pool_pages_dirty    | 0           | <br />
| Innodb_buffer_pool_pages_flushed  | 0           | <br />
| Innodb_buffer_pool_pages_free     | 491         | <br />
| Innodb_buffer_pool_pages_latched  | 0           | <br />
| Innodb_buffer_pool_pages_misc     | 1           | <br />
| Innodb_buffer_pool_pages_total    | 512         | <br />
| Innodb_buffer_pool_read_ahead_rnd | 1           | <br />
| Innodb_buffer_pool_read_ahead_seq | 0           | <br />
| Innodb_buffer_pool_read_requests  | 669         | <br />
| Innodb_buffer_pool_reads          | 13          | <br />
| Innodb_buffer_pool_wait_free      | 0           | <br />
| Innodb_buffer_pool_write_requests | 0           | <br />
| Innodb_data_fsyncs                | 3           | <br />
| Innodb_data_pending_fsyncs        | 0           | <br />
| Innodb_data_pending_reads         | 0           | <br />
| Innodb_data_pending_writes        | 0           | <br />
| Innodb_data_read                  | 2510848     | <br />
| Innodb_data_reads                 | 26          | <br />
| Innodb_data_writes                | 3           | <br />
| Innodb_data_written               | 1536        | <br />
| Innodb_dblwr_pages_written        | 0           | <br />
| Innodb_dblwr_writes               | 0           | <br />
| Innodb_log_waits                  | 0           | <br />
| Innodb_log_write_requests         | 0           | <br />
| Innodb_log_writes                 | 1           | <br />
| Innodb_os_log_fsyncs              | 3           | <br />
| Innodb_os_log_pending_fsyncs      | 0           | <br />
| Innodb_os_log_pending_writes      | 0           | <br />
| Innodb_os_log_written             | 512         | <br />
| Innodb_page_size                  | 16384       | <br />
| Innodb_pages_created              | 0           | <br />
| Innodb_pages_read                 | 20          | <br />
| Innodb_pages_written              | 0           | <br />
| Innodb_row_lock_current_waits     | 0           | <br />
| Innodb_row_lock_time              | 0           | <br />
| Innodb_row_lock_time_avg          | 0           | <br />
| Innodb_row_lock_time_max          | 0           | <br />
| Innodb_row_lock_waits             | 0           | <br />
| Innodb_rows_deleted               | 0           | <br />
| Innodb_rows_inserted              | 0           | <br />
| Innodb_rows_read                  | 0           | <br />
| Innodb_rows_updated               | 0           | <br />
| Key_blocks_not_flushed            | 968570      | <br />
| Key_blocks_unused                 | 1409065     | <br />
| Key_blocks_used                   | 2586872     | <br />
| Key_read_requests                 | 11596369138 | <br />
| Key_reads                         | 286439943   | <br />
| Key_write_requests                | 1572236319  | <br />
| Key_writes                        | 291256289   | <br />
| Last_query_cost                   | 10.499000   | <br />
| Max_used_connections              | 40          | <br />
| Not_flushed_delayed_rows          | 0           | <br />
| Open_files                        | 580         | <br />
| Open_streams                      | 0           | <br />
| Open_tables                       | 291         | <br />
| Opened_tables                     | 0           | <br />
| Qcache_free_blocks                | 3           | <br />
| Qcache_free_memory                | 103520328   | <br />
| Qcache_hits                       | 4934        | <br />
| Qcache_inserts                    | 6246809     | <br />
| Qcache_lowmem_prunes              | 1329004     | <br />
| Qcache_not_cached                 | 3721641     | <br />
| Qcache_queries_in_cache           | 28138       | <br />
| Qcache_total_blocks               | 56314       | <br />
| Questions                         | 90691580    | <br />
| Rpl_status                        | NULL        | <br />
| Select_full_join                  | 0           | <br />
| Select_full_range_join            | 0           | <br />
| Select_range                      | 0           | <br />
| Select_range_check                | 0           | <br />
| Select_scan                       | 2           | <br />
| Slave_open_temp_tables            | 0           | <br />
| Slave_retried_transactions        | 0           | <br />
| Slave_running                     | OFF         | <br />
| Slow_launch_threads               | 0           | <br />
| Slow_queries                      | 0           | <br />
| Sort_merge_passes                 | 0           | <br />
| Sort_range                        | 0           | <br />
| Sort_rows                         | 0           | <br />
| Sort_scan                         | 0           | <br />
| Ssl_accept_renegotiates           | 0           | <br />
| Ssl_accepts                       | 0           | <br />
| Ssl_callback_cache_hits           | 0           | <br />
| Ssl_cipher                        |             | <br />
| Ssl_cipher_list                   |             | <br />
| Ssl_client_connects               | 0           | <br />
| Ssl_connect_renegotiates          | 0           | <br />
| Ssl_ctx_verify_depth              | 0           | <br />
| Ssl_ctx_verify_mode               | 0           | <br />
| Ssl_default_timeout               | 0           | <br />
| Ssl_finished_accepts              | 0           | <br />
| Ssl_finished_connects             | 0           | <br />
| Ssl_session_cache_hits            | 0           | <br />
| Ssl_session_cache_misses          | 0           | <br />
| Ssl_session_cache_mode            | NONE        | <br />
| Ssl_session_cache_overflows       | 0           | <br />
| Ssl_session_cache_size            | 0           | <br />
| Ssl_session_cache_timeouts        | 0           | <br />
| Ssl_sessions_reused               | 0           | <br />
| Ssl_used_session_cache_entries    | 0           | <br />
| Ssl_verify_depth                  | 0           | <br />
| Ssl_verify_mode                   | 0           | <br />
| Ssl_version                       |             | <br />
| Table_locks_immediate             | 65626916    | <br />
| Table_locks_waited                | 23837       | <br />
| Tc_log_max_pages_used             | 0           | <br />
| Tc_log_page_size                  | 0           | <br />
| Tc_log_page_waits                 | 0           | <br />
| Threads_cached                    | 7           | <br />
| Threads_connected                 | 16          | <br />
| Threads_created                   | 1260        | <br />
| Threads_running                   | 6           | <br />
| Uptime                            | 434382      | <br />
+-----------------------------------+-------------+<br />
245 rows in set (0.00 sec)]]></description>
            <dc:creator>justin ux</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 20 Oct 2009 06:51:29 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,286916,286916#msg-286916</guid>
            <title>Unable to start slave (2 replies)</title>
            <link>http://forums.mysql.com/read.php?35,286916,286916#msg-286916</link>
            <description><![CDATA[ I need help in solving below issue with my slave mysql instance. Can somebody provide required steps to solve the issue?<br />
<br />
show slave status\G<br />
*************************** 1. row ***************************<br />
             Slave_IO_State: Waiting for master to send event<br />
                Master_Host: lon-prd-absql03.eutrips.live<br />
                Master_User: replicator<br />
                Master_Port: 3306<br />
              Connect_Retry: 60<br />
            Master_Log_File: mysql-bin.000804<br />
        Read_Master_Log_Pos: 58430312<br />
             Relay_Log_File: abritelsql-relay-bin.001043<br />
              Relay_Log_Pos: 786867<br />
      Relay_Master_Log_File: mysql-bin.000731<br />
           Slave_IO_Running: Yes<br />
          Slave_SQL_Running: No<br />
            Replicate_Do_DB:<br />
        Replicate_Ignore_DB:<br />
         Replicate_Do_Table:<br />
     Replicate_Ignore_Table:<br />
    Replicate_Wild_Do_Table:<br />
Replicate_Wild_Ignore_Table:<br />
                 Last_Errno: 0<br />
                 Last_Error: Could not parse relay log event entry. The possible reasons are: the master's binary log is<br />
 corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can<br />
check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code<br />
. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SH<br />
OW SLAVE STATUS' on this slave.<br />
               Skip_Counter: 0<br />
        Exec_Master_Log_Pos: 128<br />
            Relay_Log_Space: 6688360057<br />
            Until_Condition: None<br />
             Until_Log_File:<br />
              Until_Log_Pos: 0<br />
         Master_SSL_Allowed: No<br />
         Master_SSL_CA_File:<br />
         Master_SSL_CA_Path:<br />
            Master_SSL_Cert:<br />
          Master_SSL_Cipher:<br />
             Master_SSL_Key:<br />
      Seconds_Behind_Master: NULL<br />
1 row in set (0.01 sec)]]></description>
            <dc:creator>n g</dc:creator>
            <category>Database Administration</category>
            <pubDate>Tue, 10 Nov 2009 09:48:25 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,286360,286360#msg-286360</guid>
            <title>change name of table in transaction or with lock? (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,286360,286360#msg-286360</link>
            <description><![CDATA[ I have a table with read and writes ALL the time (it's actually a test bench for proof of concept so I really mean ALL the time :)) and I need to swap two tables names.<br />
<br />
So, test becomes test_old and test_new becomes test. I need to do this with out any clients noting it, the table structure is the same.<br />
<br />
My first plan was to get a write lock, change the names and release the locks. However, that didn't work cause mysql unlocks the table when running alter table.<br />
<br />
Next idea was to use rename table but that doesn't work with the table locked or in a transaction.<br />
<br />
So, is there any way of doing this? <br />
<br />
Thanks]]></description>
            <dc:creator>Andreas Andersson</dc:creator>
            <category>Database Administration</category>
            <pubDate>Thu, 15 Oct 2009 15:10:08 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,286048,286048#msg-286048</guid>
            <title>Grant within a STORED PROCEDURE (1 reply)</title>
            <link>http://forums.mysql.com/read.php?35,286048,286048#msg-286048</link>
            <description><![CDATA[ After more than a year after the first attempt to have a response, I re-submit  this thread<br />
--------------------------------------------------------<br />
Posted by: Marco Antonio Rios ()<br />
Date: April 21, 2008 11:15AM<br />
<br />
I am trying to update the privileges of the MySQL users within a STORED PROCEDURE, reading the names of the users from a table.<br />
The problem is that the privileges are assigned to a user with the same name as the VARIABLE used in the SP.<br />
Is there a SPECIAL form to use the variables?<br />
<br />
the procedure is as follows:<br />
<br />
CREATE DEFINER=`marcoa`@`%` PROCEDURE `sp_act_privilegios`()<br />
BEGIN<br />
DECLARE done INT DEFAULT 0;<br />
DECLARE cUsuario CHAR(16);<br />
DECLARE b,c INT;<br />
DECLARE curUsuario CURSOR FOR SELECT clave FROM usuarios.usr_usuarios;<br />
DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done = 1;<br />
<br />
OPEN curUsuario;<br />
REPEAT<br />
FETCH curUsuario INTO cUsuario;<br />
IF NOT done THEN<br />
GRANT UPDATE (vendidos, disponibles, tiempos_limites, a_solicitud),<br />
SELECT (id_inventario, allotment, vendidos, disponibles, tiempos_limites, a_solicitud)<br />
ON Contratos.contr_hoteles_inventario<br />
TO cUsuario ;<br />
END IF;<br />
UNTIL done END REPEAT;<br />
<br />
CLOSE curUsuario;<br />
END]]></description>
            <dc:creator>Marco Antonio Rios</dc:creator>
            <category>Database Administration</category>
            <pubDate>Wed, 14 Oct 2009 08:43:21 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,285739,285739#msg-285739</guid>
            <title>Reg. Mysql restarting Automatically (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,285739,285739#msg-285739</link>
            <description><![CDATA[ Hi All,<br />
<br />
<br />
I am using mysql 5.0.67 version on one of my servers. The mysql is restarting automatically very often. When i saw the error logs i found the following information.<br />
<br />
<br />
Number of processes running now: 0<br />
091011 17:33:12  mysqld restarted<br />
InnoDB: The log sequence number in ibdata files does not match<br />
InnoDB: the log sequence number in the ib_logfiles!<br />
091011 17:33:13  InnoDB: Database was not shut down normally!<br />
InnoDB: Starting crash recovery.<br />
InnoDB: Reading tablespace information from the .ibd files...<br />
InnoDB: Restoring possible half-written data pages from the doublewrite<br />
InnoDB: buffer...<br />
InnoDB: Last MySQL binlog file position 0 8131331, file name ./mysql-bin.000073<br />
091011 17:33:13  InnoDB: Started; log sequence number 0 217758<br />
091011 17:33:13 [Note] Recovering after a crash using mysql-bin<br />
091011 17:33:13 [Note] Starting crash recovery...<br />
091011 17:33:13 [Note] Crash recovery finished.<br />
091011 17:33:14 [Note] /usr/sbin/mysqld: ready for connections.<br />
Version: '5.0.67-community-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Edition (GPL)<br />
<br />
<br />
I read some articles on the above error and also created new innodb log files by removing old data and log files and restoring data from the backup but mysql kept restarting automatically again.<br />
<br />
Any help regarding this would be very useful.<br />
<br />
Thanks in advance.]]></description>
            <dc:creator>vijay sai</dc:creator>
            <category>Database Administration</category>
            <pubDate>Mon, 12 Oct 2009 07:05:51 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?35,285288,285288#msg-285288</guid>
            <title>MySQL crash - log file shows normal shutdown (no replies)</title>
            <link>http://forums.mysql.com/read.php?35,285288,285288#msg-285288</link>
            <description><![CDATA[ I have an odd situation or at least I think so.  Yesterday mysql went down on our server and I had to manually start it up again.  The log file shows that it was shut down normally however I know that no one issued a command to shut it down.  Is there any other reason why the log file would show this?  I thought perhaps that there are too many connections or a query that was too large which caused it to crash.  The default configurations are still in place so max connections should be 100 and 1 MB would be the largest query able to run, I think.  I might be going down the wrong path which is why I'm posting this question:  <br />
<br />
Here is the log file:<br />
<br />
091007 10:28:34 [Note] /usr/libexec/mysqld: Normal shutdown<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692698  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692632  user: 'woburnmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692568  user: 'woburnmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692563  user: 'woburnmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692555  user: 'waymoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692532  user: 'wboylstonmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692396  user: 'nvtmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692348  user: 'avonmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692340  user: 'nortmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692318  user: 'walthmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692315  user: 'natmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692309  user: 'gdmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692308  user: 'chatmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692306  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692302  user: 'hollmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692301  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692299  user: 'woburnmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692298  user: 'waymoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692296  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692295  user: 'bphsmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692294  user: 'mascdmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692292  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692291  user: 'amesmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692289  user: 'dcmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692288  user: 'maldenmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692287  user: 'ccthsmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692286  user: 'admin'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692285  user: 'nbmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692284  user: 'everettmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692283  user: 'watermoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692282  user: 'oxfordmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692280  user: 'westmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692279  user: 'bvtmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692278  user: 'chatmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692277  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692275  user: 'hudsmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692273  user: 'testsitemoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692272  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692271  user: 'douglasmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692268  user: 'chatmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692266  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692265  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692264  user: 'admin'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692263  user: 'dcmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692262  user: 'methuenmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692260  user: 'dphsmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692259  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692258  user: 'westwoodmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692256  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692255  user: 'casamoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692254  user: 'casamoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692252  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692249  user: 'wellmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692243  user: 'natmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692242  user: 'amschoolmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692240  user: 'marshmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692239  user: 'nsboromoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692238  user: 'romeomoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692236  user: 'lindadmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692094  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 692068  user: 'millmoodler'<br />
<br />
091007 10:28:36 [Warning] /usr/libexec/mysqld: Forcing close of thread 691870  user: 'hopkmoodler'<br />
<br />
091007 10:28:43  InnoDB: Starting shutdown...<br />
091007 10:28:46  InnoDB: Shutdown completed; log sequence number 0 113028589<br />
091007 10:28:46 [Note] /usr/libexec/mysqld: Shutdown complete<br />
<br />
091007 10:28:46  mysqld ended<br />
<br />
091007 10:28:47  mysqld started<br />
091007 10:28:47 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295<br />
091007 10:28:47 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295<br />
091007 10:28:47  InnoDB: Started; log sequence number 0 113028589<br />
091007 10:28:48 [Note] /usr/libexec/mysqld: ready for connections.<br />
Version: '5.0.77'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution]]></description>
            <dc:creator>Rob Barnett</dc:creator>
            <category>Database Administration</category>
            <pubDate>Thu, 08 Oct 2009 15:53:42 +0000</pubDate>
        </item>
    </channel>
</rss>
