<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - General</title>
        <description>The main discussion forum for MySQL. Please use specialized forums for specific topics.</description>
        <link>http://forums.mysql.com/list.php?20</link>
        <lastBuildDate>Tue, 21 May 2013 16:57:52 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?20,586978,586978#msg-586978</guid>
            <title>MYSQL: Load Data Issue (no replies)</title>
            <link>http://forums.mysql.com/read.php?20,586978,586978#msg-586978</link>
            <description><![CDATA[ Following mysql command doesnt impoirt anything into DB,<br />
<br />
LOAD DATA INFILE &quot;Database1.csv&quot; REPLACE  INTO TABLE business FIELDS TERMINATED BY ',' ESCAPED BY '&quot;' LINES TERMINATED BY '\n' IGNORE 1 LINES  (business_name,address,city,state,zip_code,website,phone,contact_name) SET website = nullif(website,''), contact_name = nullif(contact_name,'')<br />
<br />
Following is the struct of business table:<br />
<br />
CREATE TABLE `business` (<br />
  `id` bigint(20) NOT NULL AUTO_INCREMENT,<br />
  `metro_id` bigint(20) DEFAULT NULL,<br />
  `contact_name` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,<br />
  `contact_email` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,<br />
  `business_name` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,<br />
  `city` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,<br />
  `state` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,<br />
  `zip_code` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br />
  `phone` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,<br />
  `website` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,<br />
  `address` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,<br />
  PRIMARY KEY (`id`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;<br />
<br />
Following is the sample data<br />
<br />
Nail Glamour,7407 Legend Point Dr,San Antonio,TX,78244-2411,,2106665200,Bich-Ha Nguyen<br />
G &amp; S Fire Systems,P.O. BOX 182192,Arlington,TX,76096-2192,,9726479274,Gary Jones<br />
Harold R Moore Dr,764 W Commerce St,Fairfield,TX,75840-1428,,9033894151,Harold Moore<br />
Cerda Roofing,563 N 1st St,Beaumont,TX,77701-1646,,4098357569,<br />
Jason Doerr &amp; Freinds Mem,1201 Wildwood Trl,Lancaster,TX,75146-3530,,9722271769,Jason Doerr<br />
R &amp; D Finishing,P.O. BOX 171,Newark,TX,76071-0171,,8176389128,Raffaele Reitnauer<br />
Wtamu Alumni Assoc,P.O. BOX 60753,Canyon,TX,79016-0001,,8066512311,M Brown<br />
Papa Dantes Italian Restaurant,P.O. BOX 669,Converse,TX,78109-0669,,2106585261,Rosemarie Dante<br />
George P Kirkpatrick Jr,1100 S Pecan St,Kountze,TX,77625-7449,,4092463912,George P Kirkpatrick Jr<br />
Flowers By Alicia,12502 River Trail Dr,Houston,TX,77050-2808,,2819873239,Alicia Thomas<br />
Pepi Alonti Deli,777 Walker St,Houston,TX,77002-5316,,7132249988,Russ Watkins<br />
Anderson Automotive Performanc,305 Tyler,Longview,TX,75601,,9037583881,<br />
Checkrite of Austin,P.O. BOX 42377,Austin,TX,78704-0040,,5124400994,William Archer<br />
Kohler Rental Power,11175 Windfern Rd,Houston,TX,77064-4807,,2814779108,Erik Hansen<br />
Red Iron Fabrication,5029 Ridgeview CT,Fort Worth,TX,76180-7812,,8174286406,David Jones]]></description>
            <dc:creator>Ayaz Alavi</dc:creator>
            <category>General</category>
            <pubDate>Tue, 21 May 2013 12:10:54 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,586949,586949#msg-586949</guid>
            <title>Difference between &quot;&quot; and localhost in mysql.host (no replies)</title>
            <link>http://forums.mysql.com/read.php?20,586949,586949#msg-586949</link>
            <description><![CDATA[ Hello,<br />
<br />
please can you explain me what is differnce between <br />
<br />
select Host,Db from mysql.host;<br />
<br />
*************************** 1. row ***************************<br />
Host: localhost<br />
  Db: %<br />
<br />
and<br />
<br />
*************************** 2. row ***************************<br />
Host:<br />
  Db: %<br />
<br />
When is only localhost in host table, so I have problem with select database (sometimes). In users table are all users with host=&quot;&quot;.<br />
<br />
Thank you <br />
<br />
Pavel]]></description>
            <dc:creator>Pavel Ondrej</dc:creator>
            <category>General</category>
            <pubDate>Tue, 21 May 2013 08:37:11 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,586501,586501#msg-586501</guid>
            <title>Can some please help me with a duplicate key error (14 replies)</title>
            <link>http://forums.mysql.com/read.php?20,586501,586501#msg-586501</link>
            <description><![CDATA[ Hello,<br />
<br />
I have been trying to solve this problem for a long time and have not found a solution, so could someone please assist me.<br />
<br />
I am getting this error:<br />
<br />
[MySQL][ODBC 3.51 Driver][mysqld-4.1.22-community-nt]Duplicate entry '' for key 2<br />
<br />
<br />
Now as far as I know I only have one index on the table and it is the primary key which is auto-increment. So what is this error really telling me, what is it referring to when it says &quot;For Key 2&quot;, I cannot figure out what key2 is. <br />
<br />
Also, it shows as a '' which to me looks like a null. However I have every field filled in with something on the insert clause.<br />
<br />
Insert clause is:<br />
<br />
INSERT INTO ASSETSCHEDULE (AssetID,DateReserved,DateReservedString,CreatDate,CreatDateString,CreatTime,CreatTimeString,TimeReserved,TimeReservedString,ReserveLength,LastRecordedTime,LastRecordedTimeString,PatronBarcode,PatronFirstName,PatronLastName,PatronType,ReserveType,BookingCode,RecordDeleted,BranchLocated,ZoneLocated) VALUES('Table7',41409,'5/15/2013',41409,'5/15/2013',0.59880594907,'2:22:16 PM',0.59791666667,'2:21:00 PM',60,0.59791666667,'2:21:00 PM','Temp Schedule ',' ',' ',' ',1,'T8DJ9B350E7OO23',2,'Main Room',0)<br />
<br />
I am at a loss for why this would error off with the above error message. So can someone please assist me, or tell me what to look for.<br />
<br />
Thanks for any information<br />
<br />
Mike]]></description>
            <dc:creator>mike browne</dc:creator>
            <category>General</category>
            <pubDate>Tue, 21 May 2013 04:19:29 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,586402,586402#msg-586402</guid>
            <title>Linking data together (4 replies)</title>
            <link>http://forums.mysql.com/read.php?20,586402,586402#msg-586402</link>
            <description><![CDATA[ Hello. I have been using MySQL for about 2 weeks now. I access and modify the database elements via jquery and php (it is an internal inventory system for my company accessed easily on a web browser).<br />
<br />
We develop separate products that &quot;mate&quot; with each other. Example<br />
<br />
<br />
Serial__Type__Mate<br />
001______A____003_<br />
002______A____004_<br />
003______B____001_<br />
004______B____002_<br />
<br />
What I want to be able to do, because we have a lot of units, is to be able to change one cell and have it automatically change the other. So if I changed the Mate data for 001 to 004 I want 004's Mate to change to 001.<br />
<br />
I am using one huge database for all our products. So unless someone know's the jquery way of doing this (should it exist) I am wondering what the SQL command would be to acheive it.<br />
<br />
I can provide more info if necessary. <br />
<br />
Thanks so much.]]></description>
            <dc:creator>bob dolle</dc:creator>
            <category>General</category>
            <pubDate>Sun, 19 May 2013 17:42:31 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,585850,585850#msg-585850</guid>
            <title>create table named 2E9 (3 replies)</title>
            <link>http://forums.mysql.com/read.php?20,585850,585850#msg-585850</link>
            <description><![CDATA[ I tried this: (not quoted) (On Versions 5.6.10 and 5.1.42)<br />
<br />
CREATE TEMPORARY TABLE 2E84<br />
( ID INT(10) NOT NULL AUTO_INCREMENT, <br />
QUANTIDADE decimal(37,5) DEFAULT NULL, <br />
TOTAL decimal(37,2) DEFAULT NULL, <br />
PRIMARY KEY (ID) <br />
) ENGINE=MEMORY;<br />
<br />
MySQL returns error<br />
<br />
this way works: (quoted)<br />
CREATE TEMPORARY TABLE `2E84`<br />
( ID INT(10) NOT NULL AUTO_INCREMENT, <br />
QUANTIDADE decimal(37,5) DEFAULT NULL, <br />
TOTAL decimal(37,2) DEFAULT NULL, <br />
PRIMARY KEY (ID) <br />
) ENGINE=MEMORY;<br />
<br />
But 2E84 isn't reserved name (or it is ?) and your characters is valid [0-9,A-Z] ..<br />
This is a bug ?]]></description>
            <dc:creator>Roberto Novakosky</dc:creator>
            <category>General</category>
            <pubDate>Fri, 10 May 2013 04:51:05 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,585820,585820#msg-585820</guid>
            <title>moving mysql database (7 replies)</title>
            <link>http://forums.mysql.com/read.php?20,585820,585820#msg-585820</link>
            <description><![CDATA[ Hello Everyone,<br />
                     I am new to this mysql, so need your help regarding the following: <br />
           <br />
We are planning to move our mysql database from remote server to local server so could you suggest me the best to do this. for this do we require any down time. Both servers are of same configuration and versions.<br />
<br />
Regards]]></description>
            <dc:creator>Varun Nidadavolu</dc:creator>
            <category>General</category>
            <pubDate>Fri, 17 May 2013 05:35:34 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,585692,585692#msg-585692</guid>
            <title>Mysql 5.5 and 5.6 slower than 5.0 and 5.1 on selected query (11 replies)</title>
            <link>http://forums.mysql.com/read.php?20,585692,585692#msg-585692</link>
            <description><![CDATA[ Hi,<br />
<br />
I have a query like:<br />
<br />
CREATE TEMPORARY TABLE norepl_sqldata <br />
SELECT ... somefields .... <br />
FROM scj_tt_ships, scj_ships, client_tt, client_tt as client_tt_tmp <br />
WHERE ... someconditions ....;<br />
<br />
Query have no any GROUP BY, ORDER and HAVING.<br />
<br />
All temporary tables in-memory stored.<br />
<br />
All needed columns indexed.<br />
<br />
Source tables have around 50M rows, result temporary table have around 10M rows.<br />
<br />
On mysql 5.0 and 5.1 both on linux and freebsd query works 2-3 times faster than on 5.5 or 5.6.<br />
<br />
Here is explain and original query:<br />
<br />
mysql&gt; explain SELECT client_tt.tt_type as axis_x1, scj_ships.group_id as axis_y1, client_tt.id_client_tt as tt_id_plus FROM scj_tt_ships, scj_ships, client_tt, client_tt as client_tt_tmp  WHERE scj_ships.date between '2012-01-01' and '2013-01-01' AND client_tt_tmp.id_client_tt = scj_tt_ships.id_client_tt AND scj_tt_ships.scj_ships_id = scj_ships.ships_id AND client_tt_tmp.id_unique = client_tt.id_client_tt;<br />
+----+-------------+---------------+--------+---------------------------+--------------+---------+-----------------------------------+-------+--------------------------+<br />
| id | select_type | table         | type   | possible_keys             | key          | key_len | ref                               | rows  | Extra                    |<br />
+----+-------------+---------------+--------+---------------------------+--------------+---------+-----------------------------------+-------+--------------------------+<br />
|  1 | SIMPLE      | scj_ships     | index  | PRIMARY,date              | group_id     | 5       | NULL                              | 30198 | Using where; Using index |<br />
|  1 | SIMPLE      | scj_tt_ships  | ref    | scj_ships_id,id_client_tt | scj_ships_id | 4       | ddc_scj.scj_ships.ships_id        |   232 |                          |<br />
|  1 | SIMPLE      | client_tt_tmp | eq_ref | PRIMARY,id_unique         | PRIMARY      | 4       | ddc_scj.scj_tt_ships.id_client_tt |     1 |                          |<br />
|  1 | SIMPLE      | client_tt     | eq_ref | PRIMARY                   | PRIMARY      | 4       | ddc_scj.client_tt_tmp.id_unique   |     1 |                          |<br />
+----+-------------+---------------+--------+---------------------------+--------------+---------+-----------------------------------+-------+--------------------------+<br />
4 rows in set (0.01 sec)<br />
<br />
<br />
What else info i should provide?<br />
<br />
It's only one thing that stop me to upgrade from 5.1 :(]]></description>
            <dc:creator>Alex Voytsekh</dc:creator>
            <category>General</category>
            <pubDate>Mon, 13 May 2013 20:16:38 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,585682,585682#msg-585682</guid>
            <title>grant permission on information_schema (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,585682,585682#msg-585682</link>
            <description><![CDATA[ Hi All,<br />
<br />
I want to give access to some user on information_schema.*:<br />
<br />
GRANT SELECT ON information_schema.global_status to 'myuser'@'%' identified by 'mypassword';<br />
<br />
But it returns the following error even though logged in through root user:<br />
<br />
<br />
1044 (42000): Access denied for user 'root'@'localhost' to database 'information_schema'<br />
<br />
<br />
It is happening with this information_schema database only. Can someone help me how to do that? Thanks.]]></description>
            <dc:creator>Abdur Rahman</dc:creator>
            <category>General</category>
            <pubDate>Tue, 07 May 2013 18:00:38 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,585583,585583#msg-585583</guid>
            <title>Where to find latest fix pack (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,585583,585583#msg-585583</link>
            <description><![CDATA[ Hello everybody,<br />
<br />
<br />
I have MYSQL 5.1.30, in one of the servers, do you know where can I find the latest fix pack?<br />
<br />
Do you have a website for this?<br />
<br />
Thanks for your replies.]]></description>
            <dc:creator>Guajita Guajitova</dc:creator>
            <category>General</category>
            <pubDate>Mon, 06 May 2013 16:01:32 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,585322,585322#msg-585322</guid>
            <title>Mysql is loosing privileges (5 replies)</title>
            <link>http://forums.mysql.com/read.php?20,585322,585322#msg-585322</link>
            <description><![CDATA[ Hi,<br />
I have problem on some Centos OS 6 with Mysql. <br />
<br />
On some servers, randomly, some random users lose their privileges. Show grants is ok, but when user call &quot;use db&quot;, so mysql return perm. problems. After flush privileges is all ok.<br />
Can you help me? Thanks. <br />
<br />
Pavel<br />
<br />
--------------<br />
<br />
mysql&gt; show grants for 3067_jevicky@<br />
    -&gt; ;<br />
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br />
| Grants for 3067_jevicky@                                                                                                                                                           |<br />
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br />
| GRANT USAGE ON *.* TO '3067_jevicky'@'' IDENTIFIED BY PASSWORD 'XXX'                                                                         |<br />
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, CREATE VIEW, SHOW VIEW, TRIGGER ON `XXX\_cz\_1`.* TO '3067_jevicky'@'' |<br />
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br />
<br />
mysql&gt; use thaimay_cz_1<br />
ERROR 1044 (42000): Access denied for user '3067_jevicky'@'' to database 'XXX_cz_1'<br />
<br />
T]]></description>
            <dc:creator>Pavel Ondrej</dc:creator>
            <category>General</category>
            <pubDate>Sun, 19 May 2013 08:29:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,585217,585217#msg-585217</guid>
            <title>Events on a Replication Server (4 replies)</title>
            <link>http://forums.mysql.com/read.php?20,585217,585217#msg-585217</link>
            <description><![CDATA[ I'm posting this in the general forum, because it's not specifically about replication.<br />
<br />
I'm about to set up some Event objects on my Master server.  I have a replication server that has some additional databases added to it for archiving purposes, and I would like to add some events to those archive databases.  If I turn on event processing on the replication server, it's probably going to also process the events defined on the master, isn't it?  Is there any way to avoid that problem?  If not, I guess I'll have to drop back out and use cron to execute my jobs.<br />
<br />
Thanks,<br />
Dave]]></description>
            <dc:creator>David Hicks</dc:creator>
            <category>General</category>
            <pubDate>Mon, 13 May 2013 21:47:28 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,585043,585043#msg-585043</guid>
            <title>using where using filelist (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,585043,585043#msg-585043</link>
            <description><![CDATA[ Hello, I run this explain query<br />
<br />
EXPLAIN SELECT database1.video . * , database1.users.userid, database1.users.username<br />
FROM database1.video, database1.users<br />
WHERE database1.video.status = 'Successful'<br />
AND database1.video.active = 'yes'<br />
AND database1.video.broadcast != 'unlisted'<br />
AND database1.video.userid = '5410'<br />
AND database1.video.userid = database1.users.userid<br />
ORDER BY date_added DESC<br />
LIMIT 15 <br />
<br />
that returns<br />
<br />
id 	select_type 	table    type 	possible_keys 	key 	key_len 	ref 	         rows 	Extra<br />
1 	SIMPLE 	     video 	  range 	mykey          mykey    32 	NULL	16123 	Using where; Using filesort<br />
1 	SIMPLE 	     users 	 eq_ref 	PRIMARY 	PRIMARY 8 	video.userid 	1 	Using where<br />
<br />
I've added a index to the table video <br />
<br />
ALTER TABLE video ADD INDEX mykey (broadcast,status,active,userid,date_added)<br />
<br />
but since it shows Using where; using filesort I guess something is going wrong, what's the problem ?<br />
<br />
Thanks]]></description>
            <dc:creator>Andrew West</dc:creator>
            <category>General</category>
            <pubDate>Sun, 28 Apr 2013 21:04:38 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,584791,584791#msg-584791</guid>
            <title>Change Management in MySQL 5.6 or above (2 replies)</title>
            <link>http://forums.mysql.com/read.php?20,584791,584791#msg-584791</link>
            <description><![CDATA[ Are there any change management utilities or tools with MySQL latest version?]]></description>
            <dc:creator>Vishal Soni</dc:creator>
            <category>General</category>
            <pubDate>Tue, 30 Apr 2013 20:20:45 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,584766,584766#msg-584766</guid>
            <title>RDS MySQL instance runs our disk space temporarily (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,584766,584766#msg-584766</link>
            <description><![CDATA[ Hi,<br />
<br />
We have had two instances of our RDS MySQL instance run out of disk space for a few minutes, and then recovers back completely on its own. Any ideas what could be causing this?<br />
<br />
Currently, I'm suspecting that this could be caused by temporary files created by a bad query, for which mysql might be creating a large temporary table, which is getting written onto disk. But I'm unable to confirm that, because when the RDS instance runs out of disk space, it doesn't log slow queries either.  Is there  a way to confirm this?  Assuming this is the root issue, one approach is to create the tmp disk on a separate, but that is not possible to be done on an RDS instance, since you don't get shell access.  Any other way to limit total temporary table size on disk?<br />
<br />
This has brought down our website twice today, and could get out of control quickly. Need urgent help! <br />
<br />
Thanks in advance.<br />
Rajesh]]></description>
            <dc:creator>Rajesh K</dc:creator>
            <category>General</category>
            <pubDate>Thu, 25 Apr 2013 15:07:13 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,584361,584361#msg-584361</guid>
            <title>flush logs; Unkown error (no replies)</title>
            <link>http://forums.mysql.com/read.php?20,584361,584361#msg-584361</link>
            <description><![CDATA[ If you get ERROR 1105 (HY000): Unknown Error after issuing a flush logs;  make sure the permissions are set correctly on your log_error file.<br />
<br />
Hints<br />
*  Find the path of log_error for mysql. Send the following to mysql: show global variables like '%err%';<br />
*  Check the permissions and make sure the UID (from ps -C mysqld -f at linux prompt) has permissions to write to the file<br />
<br />
Hoping this helps somebody.<br />
<br />
Adam]]></description>
            <dc:creator>Adam Scott</dc:creator>
            <category>General</category>
            <pubDate>Fri, 19 Apr 2013 20:32:00 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,584199,584199#msg-584199</guid>
            <title>Area &quot;costs&quot; (2 replies)</title>
            <link>http://forums.mysql.com/read.php?20,584199,584199#msg-584199</link>
            <description><![CDATA[ Sorry if I'm posting in the wrong section.<br />
I am just looking for rectangular forms as of the moment so I am trying to get it working with vanilla mysql on phpmyadmin, I want to have a database where there are multiple areas that could potentially overlap each other, every area has a &quot;cost&quot; per square pixel, so you can get the cost at a certain point or measure the cost of an entire area while ignoring the parts that are being overlapped, you could also get the average of the total cost existing in the database.<br />
<br />
I am wondering if one of you mysql vets could help me write such a query/database schema, I have already opened a topic on stackoverflow (http://stackoverflow.com/questions/16024462/advanced-mysql-area-costs?noredirect=1#comment22858074_16024462) and received the answer <br />
select sum(c.cost)<br />
from (select x.num as x, y.num as y, max(priority) as maxpriority<br />
      from numbers x cross join<br />
           numbers y join<br />
           costs c<br />
           on x.num between c.x and c.x + c.deltax and y.num between c.y + c.deltay<br />
      where x.value between PIXELX and PIXELX and DELTAX and<br />
            y.value between PIXELY and PIXELY and DELTAY<br />
      group by x.num, y.num<br />
    ) xyp join<br />
    costs c<br />
    on  xyp.x between c.x and c.x + c.deltax and xyp.y between c.y + c.deltay and<br />
        xyp.maxpriority = c.priority<br />
<br />
which seems to be invalid and riddled with bugs, also no database schema was mentioned. I have put multiple days into trying to correct it and make it work but it keeps returning null.<br />
<br />
Thanks in advance, I appreciate it.]]></description>
            <dc:creator>Max Tsaren</dc:creator>
            <category>General</category>
            <pubDate>Thu, 18 Apr 2013 16:30:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,583875,583875#msg-583875</guid>
            <title>Mysql db suddenly stop no log encountered. (9 replies)</title>
            <link>http://forums.mysql.com/read.php?20,583875,583875#msg-583875</link>
            <description><![CDATA[ We have a mysql instance running well and suddenly it stop. I have gone through the logs file but found no indication why it stopped? But there have some instance start and stop before this? Below is the snippet of mysqld.log.<br />
<br />
<pre class="bbcode">
121229 22:17:45 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
121229 22:17:50 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
121229 22:17:50  InnoDB: Initializing buffer pool, size = 8.0M
121229 22:17:50  InnoDB: Completed initialization of buffer pool
121229 22:17:50  InnoDB: Started; log sequence number 0 206087326
121229 22:17:50 [Note] Event Scheduler: Loaded 0 events
121229 22:17:50 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.66-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
130205 11:09:32 [Note] /usr/libexec/mysqld: Normal shutdown

130205 11:09:32 [Note] Event Scheduler: Purging the queue. 0 events
130205 11:09:34  InnoDB: Starting shutdown...
130205 11:09:36  InnoDB: Shutdown completed; log sequence number 0 529664030
130205 11:09:36 [Note] /usr/libexec/mysqld: Shutdown complete

130205 11:09:36 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
130205 11:09:37 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130205 11:09:37  InnoDB: Initializing buffer pool, size = 8.0M
130205 11:09:37  InnoDB: Completed initialization of buffer pool
130205 11:09:37  InnoDB: Started; log sequence number 0 529664030
130205 11:09:37 [Note] Event Scheduler: Loaded 0 events
130205 11:09:37 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.67-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
130310 11:33:12 [Note] /usr/libexec/mysqld: Normal shutdown

130310 11:33:12 [Note] Event Scheduler: Purging the queue. 0 events
130310 11:33:14  InnoDB: Starting shutdown...
130310 11:33:16  InnoDB: Shutdown completed; log sequence number 0 788753738
130310 11:33:16 [Note] /usr/libexec/mysqld: Shutdown complete

130310 11:33:16 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
130310 11:36:03 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130310 11:36:03  InnoDB: Initializing buffer pool, size = 8.0M
130310 11:36:03  InnoDB: Completed initialization of buffer pool
130310 11:36:04  InnoDB: Started; log sequence number 0 788753738
130310 11:36:04 [Note] Event Scheduler: Loaded 0 events
130310 11:36:04 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.67-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
130413 20:56:55 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130413 20:56:56  InnoDB: Initializing buffer pool, size = 8.0M
130413 20:56:56  InnoDB: Completed initialization of buffer pool
InnoDB: Log scan progressed past the checkpoint lsn 0 1139894636
130413 20:56:56  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 1139895853
130413 20:56:56  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 
InnoDB: Apply batch completed
InnoDB: Last MySQL binlog file position 0 335782050, file name ./mysql-bin.000003
130413 20:56:57  InnoDB: Started; log sequence number 0 1139895853
130413 20:56:57 [Note] Recovering after a crash using mysql-bin
130413 20:56:59 [ERROR] Error in Log_event::read_log_event(): 'read error', data_len: 809, event_type: 2
130413 20:56:59 [Note] Starting crash recovery...
130413 20:56:59 [Note] Crash recovery finished.
130413 20:56:59 [Note] Event Scheduler: Loaded 0 events
130413 20:56:59 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.67-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
</pre>]]></description>
            <dc:creator>Frwa Onto</dc:creator>
            <category>General</category>
            <pubDate>Sat, 20 Apr 2013 04:01:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,583731,583731#msg-583731</guid>
            <title>How would you send all queries to a secondary server (6 replies)</title>
            <link>http://forums.mysql.com/read.php?20,583731,583731#msg-583731</link>
            <description><![CDATA[ I have a need to monitor an existing production server by send the same queries it receives to another server and watch queries per second and tune where appropriate on the secondary server.<br />
<br />
The front-end is all web-based but none of the code can be updated. Anything I/we do, must be done at the server level. However, we're having trouble identifying the best method to use to send queries to another server. <br />
<br />
Is there a known way to do this?<br />
<br />
<br />
We were thinking something similar to: <br />
  tail -f /var/log/mysql/query.log | mysql -h otherserver<br />
(obviously with some formatting and conditionals in between).<br />
<br />
But we don't want the log file to get too big. <br />
<br />
I'd rather have it piped right to the other server with something like:<br />
 general_log_file=&quot;|/usr/bin/mysql -h otherserver&quot;<br />
<br />
<br />
Any thoughts?]]></description>
            <dc:creator>Clint Alexander</dc:creator>
            <category>General</category>
            <pubDate>Sun, 14 Apr 2013 22:09:33 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,583520,583520#msg-583520</guid>
            <title>datetime warning (3 replies)</title>
            <link>http://forums.mysql.com/read.php?20,583520,583520#msg-583520</link>
            <description><![CDATA[ I don't see what's wrong with the datetime format in the warning below? This record ends up in the table with the event_date set to 2013-03-10 03:00:00. I see this value 282 times which is consistent with the number of warnings coming from mysqlimport - see below.<br />
<br />
Each record has as 5 datetime columns. All datetime values are formated using the same awk script. All but the 282 values are loaded correctly. Many have a one digit hour incoming and end up with leading zero for hour and load ok.<br />
<br />
I put the awk function that generates the datetime string below and am guessing the hour character are not as expected given the script goes between char and int. Awk usually does the right thing in these cases... <br />
============================================================================<br />
mysql&gt; LOAD DATA INFILE 'c:/$programs/mysql/defect_data_cache/metadata' INTO TABLE metadata FIELDS TERMINATED BY '\t'; S<br />
HOW WARNINGS\G;<br />
ERROR 1292 (22007): Incorrect datetime value: '2013-03-10 02:35:47' for column 'EVENT_DATE' at row 160703<br />
*************************** 1. row ***************************<br />
  Level: Error<br />
   Code: 1292<br />
Message: Incorrect datetime value: '2013-03-10 02:35:47' for column 'EVENT_DATE' at row 160703<br />
1 row in set (0.00 sec)<br />
<br />
==========================================================================<br />
$mysqlimport -L -i grenada metadata<br />
grenada.metadata: Records: 213572  Deleted: 0  Skipped: 0  Warnings: 282<br />
==========================================================================<br />
# string passed to function=3/10/2013 3:35:47 AM<br />
<br />
function mysql_date(string)		# convert date to mysql format<br />
{					# input format example: 2/18/2013 8:44:06 PM<br />
	    split(string,a,&quot; &quot;)<br />
	    split(a[2],time,&quot;:&quot;)<br />
	    h=time[1]<br />
	    if (index(a[3],&quot;PM&quot;)==1){<br />
		    h=time[1]+11<br />
	    }else{<br />
		    if (time[1]==12){<br />
			    h=0<br />
		    }else{<br />
			    h=time[1]<br />
		    }<br />
	    }<br />
	    split(a[1],date,&quot;/&quot;)<br />
	    return(sprintf(&quot;%04d-%02d-%02d %02d:%02d:%02d&quot;,date[3],date[1],date[2],h,time[2],time[3]))<br />
}]]></description>
            <dc:creator>Peter Kanas</dc:creator>
            <category>General</category>
            <pubDate>Wed, 17 Apr 2013 13:32:43 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,583495,583495#msg-583495</guid>
            <title>Please Help with Data Types (2 replies)</title>
            <link>http://forums.mysql.com/read.php?20,583495,583495#msg-583495</link>
            <description><![CDATA[ I am needing some help.  I have to create 2 additional data types that generate random numbers...one by normal distribution and the other by the Pareto Principle.]]></description>
            <dc:creator>Karin Eik</dc:creator>
            <category>General</category>
            <pubDate>Wed, 10 Apr 2013 04:16:47 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,583392,583392#msg-583392</guid>
            <title>Is Database active or inactive in mysql (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,583392,583392#msg-583392</link>
            <description><![CDATA[ How to i check the what are the databases are active and inactive. Could any one  please tel the solution..]]></description>
            <dc:creator>Mari Selvam</dc:creator>
            <category>General</category>
            <pubDate>Mon, 08 Apr 2013 16:53:47 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,583147,583147#msg-583147</guid>
            <title>No FAQ's - Need help (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,583147,583147#msg-583147</link>
            <description><![CDATA[ Hello Admin &amp; Moderators,<br />
I am newbie here &amp; I am searching for the FAQ's over here but I didn't find any.<br />
Actually I just want to know about the rules of this forum because I don't want my post to be called as spam &amp; be deleted for the reason I might not be aware of.<br />
Please do help.<br />
<br />
Thanks<br />
Harshada]]></description>
            <dc:creator>Harshada Thakur</dc:creator>
            <category>General</category>
            <pubDate>Sat, 06 Apr 2013 01:00:59 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,583106,583106#msg-583106</guid>
            <title>MySQL over SSH (3 replies)</title>
            <link>http://forums.mysql.com/read.php?20,583106,583106#msg-583106</link>
            <description><![CDATA[ I know it is possible to access mysql over an SSH tunnel.<br />
<br />
Are the any implications using mysql over an SSH tunnel<br />
for a high load server in a production environment?]]></description>
            <dc:creator>Christo Gouws</dc:creator>
            <category>General</category>
            <pubDate>Tue, 09 Apr 2013 04:34:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,583008,583008#msg-583008</guid>
            <title>Difference between schema and a database (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,583008,583008#msg-583008</link>
            <description><![CDATA[ After reading through the documentation for MySQL, I am curious about the difference between a schema and a database?<br />
<br />
For example, in the documentation it states that CREATE DATABASE and CREATE SCHEMA are about the same thing.<br />
<br />
CAn someone please explain this, or are the two terms pretty much the same thing used interchangeable when talking databases.]]></description>
            <dc:creator>Chris Bassett</dc:creator>
            <category>General</category>
            <pubDate>Wed, 03 Apr 2013 13:17:18 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,582830,582830#msg-582830</guid>
            <title>how to move INNODB database to another server without stopping MySQL server? (6 replies)</title>
            <link>http://forums.mysql.com/read.php?20,582830,582830#msg-582830</link>
            <description><![CDATA[ HI,<br />
<br />
My innodb engine databases are running on server A, and I need to moving a database db1 to the new server B . Becasue the service is 7x24 ,I can't stop the servers and application,so some tables in db1 will be kept reading and writing data by applications. the physical table data files of db1 are arroud 1.2TB . <br />
The mysql server is 5.5.27 and OS is solaris 10 x86_64. <br />
I wanted to use Xtrabackup to backup and sync the data from A to B , but as I know the Xtrabackup 2.0 seems not support Solaris. <br />
<br />
how about rsync? I don't know if Rsync will be used for the running innodb tables.<br />
<br />
Or other way to synchronize the database in running status?<br />
<br />
I will appreciate  that if anyone can help to give me suggestion about the database moving.<br />
<br />
Justin]]></description>
            <dc:creator>Justin Xu</dc:creator>
            <category>General</category>
            <pubDate>Wed, 17 Apr 2013 08:35:52 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,582824,582824#msg-582824</guid>
            <title>Problem adding function (4 replies)</title>
            <link>http://forums.mysql.com/read.php?20,582824,582824#msg-582824</link>
            <description><![CDATA[ I have a function on my production server running MySQL v5.5.8 that executes with no problem.<br />
<br />
When I try to create the same function on my test server running MySQL v5.5.9 the create fails with an error 1064. Can someone please explain why it is ok on one server but not on the other? <br />
<br />
The create is: <br />
<br />
<br />
<pre class="bbcode">
DELIMITER $$

CREATE FUNCTION `CheckProjType` (type INT, cost BIGINT ) 
    RETURNS VARCHAR(50) 
    CHARSET latin1
    NO SQL
BEGIN
    DECLARE rtn VARCHAR(50);
    IF type = 5 THEN SET rtn = 'New Maint';
    ELSE
      IF type = 4 THEN SET rtn = 'Ongoing Maintenance';
      ELSE
        IF type = 3 THEN SET rtn = 'New Development';
        else
          IF cost &gt; 1000000000 THEN SET rtn = 'New Expansion';
          else
            IF cost &gt; 250000000 THEN SET rtn = 'Major Improvement';
            ELSE
              IF cost &gt; 25000000 THEN SET rtn = 'Major Development';
              ELSE
                 SET rtn = 'Small Improvement';
              END IF;
            END IF;
          END IF;
        END IF;
      END IF;
    END IF;

  RETURN rtn;

END $$

DELIMITER ;</pre>
<br />
The error is:<br />
<br />
<pre class="bbcode">
ERROR 1064: You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use 
near '' at line 6

SQL Statement:

CREATE FUNCTION `CheckProjType` (type INT, cost BIGINT ) 

    RETURNS VARCHAR(50) 

    CHARSET latin1

    NO SQL

BEGIN

    DECLARE rtn VARCHAR(50)</pre>
<br />
What am I doing wrong?]]></description>
            <dc:creator>Glenn Puckett</dc:creator>
            <category>General</category>
            <pubDate>Tue, 02 Apr 2013 05:05:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,582385,582385#msg-582385</guid>
            <title>Why I can't delete it? (6 replies)</title>
            <link>http://forums.mysql.com/read.php?20,582385,582385#msg-582385</link>
            <description><![CDATA[ message deleted]]></description>
            <dc:creator>ilia chinkarev</dc:creator>
            <category>General</category>
            <pubDate>Thu, 28 Mar 2013 06:23:33 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,582301,582301#msg-582301</guid>
            <title>mysqldump 5.6 from 5.1 (OPTION SQL_QUOTE_SHOW_CREATE=1) (2 replies)</title>
            <link>http://forums.mysql.com/read.php?20,582301,582301#msg-582301</link>
            <description><![CDATA[ I am tryint o take mysqldump from 5.1.28  mysql  <br />
of the server where 5.6.1 is installed.<br />
<br />
It fails with following error:<br />
<br />
C:\Documents and Settings\Administrator&gt;mysqldump -c -h 10.171.170.13 -u root vm<br />
s  tbl_billing_success  &gt; e:\db_backup\tbl_billing_success20130325.sql<br />
mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an er<br />
ror in your SQL syntax; check the manual that corresponds to your MySQL server v<br />
ersion for the right syntax to use near 'OPTION SQL_QUOTE_SHOW_CREATE=1' at line<br />
 1 (1064)]]></description>
            <dc:creator>maninder bains</dc:creator>
            <category>General</category>
            <pubDate>Thu, 28 Mar 2013 16:06:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,582121,582121#msg-582121</guid>
            <title>Lost connection when accessing table (4 replies)</title>
            <link>http://forums.mysql.com/read.php?20,582121,582121#msg-582121</link>
            <description><![CDATA[ I have a 16GB innodb table; MySQLdump fails at the same row every time I try to dump the database. I tried running CHECK TABLE, but it also disconnects with the same error (Error 2013: Lost connection to MySQL server during query). I'm using Unix sockets, not TCP/IP, so I don't think this is a server timeout issue (also, what are the odds that it would time out at the same row every time?).<br />
<br />
Running MySQL version 5.1.57 Percona]]></description>
            <dc:creator>Steve Wechsler</dc:creator>
            <category>General</category>
            <pubDate>Fri, 05 Apr 2013 01:53:40 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,582086,582086#msg-582086</guid>
            <title>MySQL not closing connections (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,582086,582086#msg-582086</link>
            <description><![CDATA[ I've recently started to work with RabbitMQ and I'm developing a cron-job type of mechanism. Where one script (producer) pushes data from MySQL table to RabbitMQ queue and an another script (consumer script) reads data from rabbitMQ queue and process each record one-by-one. The consumer script never get terminated and it keep listing/checking rabbitMQ queue. In consumer script, I'm using mysql functions to do some database related works.<br />
<br />
Till here everything works fine, but, whenever I execute &quot;SHOW Processlist&quot; in mysql then it shows me too many mysql open connections (in Sleep state). And this is all from consumer script. When I try to close them by using mysql_close() function then they still exists (they never get killed). Anyway, this is a bit weired to tell that I'm using non-persistence type connections (but they are still alive). Within a few seconds consumer script creates many connections, so, by changing connection_timeout is never going to work (nor increasing number of connections).<br />
<br />
<br />
Any idea/suggest for the cause of the problem ?<br />
<br />
Anyway, If I kill all mysql processes which are in sleep state for last more than 10 seconds then will it be dangerous ? if then how dangerous it is (as I'm using non-persistance connections) ? I want to update my consumer script to check for all the mysql processes/thread which are open (Sleep) for last more than 10 secs and kill them all.<br />
<br />
Thanks in advance for the help.<br />
<br />
Reddy]]></description>
            <dc:creator>reddy reddy</dc:creator>
            <category>General</category>
            <pubDate>Sat, 23 Mar 2013 20:50:11 +0000</pubDate>
        </item>
    </channel>
</rss>
