<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums</title>
        <description></description>
        <link>http://forums.mysql.com/index.php</link>
        <lastBuildDate>Tue, 02 Dec 2008 23:05:14 +0000</lastBuildDate>
        <generator>Phorum 5.2.1-alpha</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?25,236812,236812#msg-236812</guid>
            <title>ndb loss data (no replies)</title>
            <link>http://forums.mysql.com/read.php?25,236812,236812#msg-236812</link>
            <description><![CDATA[ i got a cluster with mysql-5.1.23 ndb-6.2.15, on SLES 10.2, and i got an error <br />
<br />
Status: Temporary error, restart node<br />
Message: Node lost connection to other nodes and can not form a unpartitioned cl<br />
uster, please investigate if there are error(s) on other node(s) (Arbitration er<br />
ror)<br />
Error: 2305<br />
Error data: Arbitrator decided to shutdown this node<br />
Error object: QMGR (Line: 5024) 0x0000000a<br />
Program: ndbd<br />
Pid: 3251<br />
Trace: /var/lib/mysql-cluster/ndb_4_trace.log.3<br />
<br />
after that, i loss registered data since a week, this happened two times, the error looks like was caused by an NTP issue, but the real problem is the data lose.]]></description>
            <dc:creator>omar soto</dc:creator>
            <category>Cluster</category>
            <pubDate>Tue, 02 Dec 2008 23:00:38 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236807,236807#msg-236807</guid>
            <title>SELECT on return of update (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,236807,236807#msg-236807</link>
            <description><![CDATA[ I need select a record choosing it on return of record count of update. I would like use a unique query. I developing in php and mysql_query not support multiple queries.<br />
I tried many functions for example:<br />
<br />
select * from messages where id_msg= (count(update table set record=1))<br />
<br />
but MySQL tell me always there is a syntax error.<br />
<br />
Thank you very much for the help<br />
Samantha]]></description>
            <dc:creator>Samantha Samantha</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 22:34:15 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236805,236805#msg-236805</guid>
            <title>Complex Select with Min/Max Syntax (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,236805,236805#msg-236805</link>
            <description><![CDATA[ Hi,<br />
<br />
I've just recently begun using MySQL and PHP and I'm having some trouble with some syntax for a fairly complex query (to a newbie anyway).  Does anyone have a suggestion?  I'm using MySQL 5.0.67.  <br />
<br />
For anyone familiar with the MediaWiki database, that's where this question comes from.  I have two tables, one called &quot;revision&quot;, and one called &quot;page&quot;.  Page contains a list of all of the MediaWiki pages and revision contains a list to all edits of all of the pages.  In this schema, rev_page is the foreign key in revision relating to page.page_id.<br />
<br />
revision<br />
--------<br />
rev_page <br />
rev_id   <br />
rev_timestamp <br />
rev_user_text<br />
<br />
page<br />
----<br />
page_id<br />
page_title<br />
page_counter<br />
<br />
My application needs to list each page, along with the initial editor (which can be determined my using the min() function on the rev_id grouped by rev_page) along with the most recent editor (which can be determined by doing the same procedure with the max() function.<br />
<br />
Ideally, the result would look something like this<br />
<br />
page_id<br />
page_title<br />
rev_user_text (min)<br />
rev_user_text (max)<br />
<br />
I've been able to get either the min or the max with something like the following<br />
<br />
select rv.rev_user_text, rv.rev_page, rv.rev_id<br />
from revision rv,<br />
     (select max(rev_id) as maxrev, rev_page<br />
     from revision<br />
     group by rev_page) results<br />
where (rv.rev_page = results.rev_page<br />
and rv.rev_id = results.maxrev);<br />
<br />
but I'm not sure how to join it with the other.  <br />
<br />
Any help on how to get the other column added would be greatly appreciated.<br />
<br />
Thanks,<br />
Dan]]></description>
            <dc:creator>Dan Rinkes</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 22:19:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?6,236802,236802#msg-236802</guid>
            <title>5.1 certifications? (no replies)</title>
            <link>http://forums.mysql.com/read.php?6,236802,236802#msg-236802</link>
            <description><![CDATA[ I'm was thinking of taking the CMDEV 5.0 within a couple of weeks, but now when MySQL 5.1 is out I'm wondering if I should wait for the 5.1 certification? Or should I take the 5.0 and then upgrade to 5.1? Will there even be an upgrade option?<br />
<br />
Regards,<br />
Per]]></description>
            <dc:creator>Per Andersson</dc:creator>
            <category>Certification</category>
            <pubDate>Tue, 02 Dec 2008 21:50:49 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236798,236798#msg-236798</guid>
            <title>Issue sorted. Please ignore (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,236798,236798#msg-236798</link>
            <description><![CDATA[ .]]></description>
            <dc:creator>Philip Hooper</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 21:01:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236793,236793#msg-236793</guid>
            <title>lock on select query (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,236793,236793#msg-236793</link>
            <description><![CDATA[ I am doing some etl work, trying extract some data from source mysql database. When I am running select * from query, I want to know if there are locks on the table, what is the best way for me to look at that info,]]></description>
            <dc:creator>john wang</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 20:25:46 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?22,236791,236791#msg-236791</guid>
            <title>innodb ibd file size (no replies)</title>
            <link>http://forums.mysql.com/read.php?22,236791,236791#msg-236791</link>
            <description><![CDATA[ Hey guys,<br />
<br />
I was wondering if .ibd file size ever goes down ?<br />
<br />
I have innodb_file_per_table = 1, so there separate files for each table.<br />
<br />
The size of one of the files is like 55G, I think i deleted like 20% of the table's content and the size did drop ...<br />
<br />
best of...]]></description>
            <dc:creator>Pavel Baranov</dc:creator>
            <category>InnoDB</category>
            <pubDate>Tue, 02 Dec 2008 20:24:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236790,236790#msg-236790</guid>
            <title>nested-loop schema best for this? (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,236790,236790#msg-236790</link>
            <description><![CDATA[ Query below works great. (It selects comanyid &quot;aaa001&quot;) and picks the best address for this company. I had to build this, since I had multiple address and some info were not on right places. But it works great. ;)<br />
<br />
Now how do I do this to all of my compayid's I have several thousand companies and each of these have multiple addresses. So what should I create to loop this info around all of them. I like examples... ;) I read about the nested-loop schema, but not sure how to implement with this already complex query.<br />
Thanks<br />
<br />
SELECT<br />
companyid,<br />
Name,<br />
addressid,<br />
CONCAT(<br />
Addr1,' ',<br />
Addr2,' ',<br />
Addr3) AS Address,<br />
City,<br />
State,<br />
Postal_Code<br />
FROM<br />
((<br />
SELECT<br />
nameaddr.companyid,<br />
nameaddr.Name,<br />
nameaddr.addressid,<br />
nameaddr.Addr1,<br />
nameaddr.Addr2,<br />
nameaddr.Addr3,<br />
nameaddr.City,<br />
nameaddr.State,<br />
nameaddr.Postal_Code<br />
FROM<br />
nameaddr<br />
WHERE<br />
nameaddr.companyid = 'aaa01' AND<br />
nameaddr.Addr1 RLIKE '^[0-9]'<br />
)<br />
UNION<br />
(<br />
SELECT<br />
nameaddr.companyid,<br />
nameaddr.Name,<br />
nameaddr.addressid,<br />
'',<br />
nameaddr.Addr2,<br />
nameaddr.Addr3,<br />
nameaddr.City,<br />
nameaddr.State,<br />
nameaddr.Postal_Code<br />
FROM<br />
nameaddr<br />
WHERE<br />
nameaddr.companyid = 'aaa01' AND<br />
nameaddr.Addr2 RLIKE '^[0-9]' <br />
))<br />
AS temp<br />
ORDER BY Address DESC<br />
LIMIT 1]]></description>
            <dc:creator>Hank v1rotate</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 20:23:06 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236781,236781#msg-236781</guid>
            <title>SELECT from multiple tables (1 reply)</title>
            <link>http://forums.mysql.com/read.php?10,236781,236781#msg-236781</link>
            <description><![CDATA[ I'm trying to formulate a query that will select multiple Product Names and their respective Product Descriptions from a Product table using a second table that lists only those Products available on that given day.  Each day there will be four or five product available.<br />
<br />
PRODUCT TABLE<br />
______________________________________<br />
ProdID | ProductName |  ProductDesc   |<br />
______________________________________<br />
  1    | Espresso    |  Yum           |<br />
______________________________________<br />
  2    | Peruvian    |  Yum Yum       |<br />
______________________________________<br />
  3    | Cinnamon    |  Yum Yum Yum   |<br />
______________________________________<br />
<br />
PROMO TABLE<br />
_______________________________________________________________<br />
PromoID | PromoDOW   |PromoBlend | PromoVarietal | PromoFlavor |<br />
_______________________________________________________________<br />
   1    |     0      |    1      |       2       |      3      |<br />
_______________________________________________________________<br />
   2    |     1      |    6      |       7       |      9      |<br />
_______________________________________________________________<br />
<br />
<br />
<br />
Example:<br />
<br />
SELECT product.ProductName, product.ProdDesc<br />
FROM product, promo<br />
WHERE promo.PromoBlend = product.ProdID<br />
AND promo.PromoVarietal = product.ProdID<br />
AND promo.PromoFlavor = product.ProdID<br />
AND promoDOW = 0<br />
<br />
I want the following result<br />
<br />
________________________________________________________<br />
    blend     |       varietal      |     flavor        |<br />
________________________________________________________<br />
  espresso    |       peruvian      |    cinnamon       |<br />
________________________________________________________<br />
<br />
Except I need the Product Name for the ProdID associated with PromoBlend, PromoVarietal, and PromoFlavor to be the query result for display.  Is this a table design issue, or is it the SELECT statement is incomplete?<br />
<br />
Thanks for any input.]]></description>
            <dc:creator>Mark Kalmus</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 20:49:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236776,236776#msg-236776</guid>
            <title>HELP! Migrating db from 3.23 to 5.1 (3 replies)</title>
            <link>http://forums.mysql.com/read.php?10,236776,236776#msg-236776</link>
            <description><![CDATA[ I have a php/mysql-based CMS running on an XP/Apache/MySQL 3.23 server... I'm migrating it to a W2k3S/IIS/MySQL 5.1 server.  I'm getting an error right off the top trying to import the database into the new server.  <br />
<br />
I exported to an .sql file via the board's &quot;Backup Database&quot; function and am now trying to reimport it through HeidiSQL, but I get the message, &quot;SQL Error: Invalid default value for 'authorid'&quot;.  The query it's choking on is right at the start of the .sql file:<br />
<br />
-----------------<br />
CREATE TABLE ezauthors (<br />
		authorid int(11) NOT NULL DEFAULT '' AUTO_INCREMENT,<br />
		login varchar(20) NOT NULL DEFAULT '',<br />
		userpassword varchar(32) NOT NULL DEFAULT '',<br />
		authorname varchar(50) DEFAULT NULL,<br />
		authoremail varchar(255) DEFAULT NULL,<br />
		regdate datetime DEFAULT NULL,<br />
		usergroup varchar(32) NOT NULL DEFAULT '',<br />
		countrycode char(2) DEFAULT NULL,<br />
		language char(2) DEFAULT NULL,<br />
		phone varchar(20) DEFAULT NULL,<br />
		fax varchar(20) DEFAULT NULL,<br />
		address varchar(100) DEFAULT NULL,<br />
		city varchar(50) DEFAULT NULL,<br />
		state varchar(50) DEFAULT NULL,<br />
		zip varchar(20) DEFAULT NULL,<br />
		website varchar(255) DEFAULT NULL,<br />
		comments text DEFAULT NULL,<br />
		newsletter char(1) DEFAULT 'N',<br />
		privateemail char(1) DEFAULT 'N',<br />
		disuser char(1) DEFAULT 'N',<br />
		PRIMARY KEY (authorid),<br />
		UNIQUE KEY login (login)<br />
) TYPE=MyISAM;<br />
-----------------<br />
<br />
Looking ahead, it appears I'm going to run into this on a number of tables...]]></description>
            <dc:creator>Matt Ion</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 20:30:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236775,236775#msg-236775</guid>
            <title>AUTOINCREMENT with LOAD DATA INFILE (4 replies)</title>
            <link>http://forums.mysql.com/read.php?10,236775,236775#msg-236775</link>
            <description><![CDATA[ I have a 2-column table with a primary key that I want to auto-increment when I load a data file, but it's generating an error for me. <br />
<br />
CREATE TABLE MySample(<br />
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,<br />
data VARCHAR(100)<br />
);<br />
<br />
My data file is 1-column and I thought the point of the auto-increment was to automatically assign and number an id upon data load. <br />
<br />
mysql&gt; LOAD DATA INFILE 'C:\\_temp\\Fruit.txt' INTO TABLE MySample;<br />
<br />
It BEEPS and gives me this error: <br />
<br />
' for column 'id' at row 1ect integer value: 'Apples<br />
mysql&gt;<br />
<br />
Apples is the first row of my data file. <br />
<br />
If I insert an ID column into the data file and manually increment the values starting at 1 (using Excel), it loads fine. If I do INSERT VALUES from the command line, it also loads and auto-increments as I would have expected. Any suggestions?]]></description>
            <dc:creator>Rich Pallotta</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 22:19:34 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?52,236774,236774#msg-236774</guid>
            <title>MySQL/PHP Image display (1 reply)</title>
            <link>http://forums.mysql.com/read.php?52,236774,236774#msg-236774</link>
            <description><![CDATA[ Hello MySQL/PHP Experts<br />
<br />
I this piece of code and I can not seem to figure out why my images are not being displayed. I have the IMAGEURL link stored in my MySQL database. I have the FULL link stored in the database and it still will not display the image. Here is my short code:<br />
<br />
&lt;?php<br />
// Make a MySQL Connection<br />
mysql_connect(&quot;IPADDRESS&quot;,&quot;databaseID&quot;,&quot;password&quot;) or die(mysql_error());<br />
mysql_select_db(&quot;dbname&quot;) or die(mysql_error());<br />
<br />
// Get all the data from the &quot;example&quot; table<br />
$result = mysql_query(&quot;SELECT * FROM producttable&quot;) <br />
or die(mysql_error());  <br />
<br />
echo &quot;&lt;table border='1'&gt;&quot;;<br />
echo &quot;&lt;tr&gt; &lt;th&gt;Product ID&lt;/th&gt;&lt;th&gt;IMAGE PICTURE&lt;/th&gt; &lt;th&gt;Product Name&lt;/th&gt; &lt;/tr&gt;&quot;;<br />
// keeps getting the next row until there are no more to get<br />
while($row = mysql_fetch_array( $result )) {<br />
	// Print out the contents of each row into a table<br />
	echo &quot;&lt;tr&gt;&lt;td&gt;&quot;; <br />
	echo $row['ProductID'];<br />
	echo &quot;&lt;/td&gt;&lt;td&gt;&quot;;<br />
	echo &quot;&lt;img src='&lt;?= [imageURL] ?&gt;' /&gt;&quot;;<br />
	echo &quot;&lt;/td&gt;&lt;td&gt;&quot;; <br />
	echo $row['ProductName'];<br />
	echo &quot;&lt;/td&gt;&lt;/tr&gt;&quot;; <br />
} <br />
<br />
echo &quot;&lt;/table&gt;&quot;;<br />
?&gt;<br />
<br />
<br />
Can someone help explain to me what I am doing wrong?<br />
<br />
Thank you in advance!<br />
<br />
Regards,<br />
<br />
Ashish]]></description>
            <dc:creator>Ashish Vohra</dc:creator>
            <category>PHP</category>
            <pubDate>Tue, 02 Dec 2008 18:31:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236773,236773#msg-236773</guid>
            <title>IF EXISTS problem (4 replies)</title>
            <link>http://forums.mysql.com/read.php?10,236773,236773#msg-236773</link>
            <description><![CDATA[ Ok I created a table by doing the following:<br />
<br />
CREATE TABLE Location (<br />
  IPAddress VARCHAR (15) primary key,<br />
  Latitude VARCHAR (25),<br />
  Longitude VARCHAR (25));<br />
<br />
Now Im trying to use then following to either UPDATE if there is a matching IPAddress value, or INSERT one if there isn't:<br />
<br />
IF EXISTS (SELECT * FROM Location WHERE IPAddress = '192.0.0.1') THEN<br />
UPDATE Location<br />
SET Latitude = '53', Longitude = '122'<br />
WHERE IPAddress = '192.0.0.1';<br />
ELSE<br />
INSERT INTO Location<br />
VALUES ('192.0.0.1', '53', '122');<br />
END IF;<br />
<br />
This doesn't work however and i get the following error message:<br />
<br />
&quot;ERROR 1064 (42000): You have an error in your SQL syntax...... at line 1.<br />
<br />
Any help on why this doesn't work?<br />
<br />
Cheers.]]></description>
            <dc:creator>G C</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 20:26:05 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236771,236771#msg-236771</guid>
            <title>replication may break (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,236771,236771#msg-236771</link>
            <description><![CDATA[ Hi<br />
<br />
I got the warning but not sure how I can fix <br />
<br />
Thank you<br />
<br />
[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.]]></description>
            <dc:creator>Ann Kok</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 17:47:08 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,236770,236770#msg-236770</guid>
            <title>Implicit JOIN precedence switch ? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,236770,236770#msg-236770</link>
            <description><![CDATA[ Hi,<br />
<br />
I know the precedence of implicit JOINs (comma joins) has been downgraded<br />
since version 5.x, however I need to know if there is a switch to revert<br />
this behavior to that used in previous versions.<br />
<br />
We maintain a legacy application of around 500k lines of code. Many queries are<br />
built programmatically, so changing the affected queries is extremely complex<br />
and will require many months of QA to ensure they're working correctly.<br />
<br />
Ideally, I'm hoping for a switch like HIGH_NOT_PRECEDENCE.<br />
<br />
Failing that, my understanding is that the new precedence will only affect queries containing LEFT, RIGHT, OUTER JOINs, and not pure INNER JOIN queries. Have I understood this correctly ? If that's the case it will save us a lot of time.<br />
<br />
Many thanks,<br />
<br />
Russ.]]></description>
            <dc:creator>Russell King</dc:creator>
            <category>General</category>
            <pubDate>Tue, 02 Dec 2008 19:45:59 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?22,236769,236769#msg-236769</guid>
            <title>InnoDB error (no replies)</title>
            <link>http://forums.mysql.com/read.php?22,236769,236769#msg-236769</link>
            <description><![CDATA[ Hello All,<br />
I am pretty new to Windows Servers (Mac guy, have run 2 Xserves for Web and Email though) and I seem to be having an issue with getting 5.1 running on our Windows Server 2003.<br />
<br />
Ran the package installer and everything went OK, but we are unable to get the service to start or login via MySQL Administrator. <br />
<br />
When I attempt to launch the MySQL service, I get this in the Event Viewer:<br />
  ERROR: Plugin 'InnoDB' init function returned error.<br />
  ERROR: Plugin 'InnoDB' registration as a STORAGE ENGINE failed.<br />
  ERROR: Unknown/unsupported table type: INNODB<br />
  ERROR: Aborting<br />
  Information: C:\mysqlPATH\bin\mysqld: Shutdown complete<br />
<br />
<br />
When I attempt to login via MySQL Administrator, I get this error:<br />
  Could not connect to the specified instance.<br />
<br />
  MySQL Error Number 2003<br />
  Can't connect to MySQL server on 'localhost' (10061)<br />
<br />
  If you want to check the network connection, please click the Ping button.<br />
<br />
<br />
I have also received an error about incorrect user/pass in MySQL Admin.<br />
<br />
We only ever use 2 passwords on this server, and neither of them work. We have attempted to reset the password using the mysql-init.txt  and it appears to work (We don't get any errors or anything) but we still can't login.<br />
<br />
I can't seem to find any info on completely removing MySQL from the server so we can literally start from scratch (Without reformatting the server).<br />
<br />
Can anybody assist with this?? Thanks.<br />
<br />
<br />
<br />
<br />
<br />
When I try and login to MySQL Administrator, I get this error:]]></description>
            <dc:creator>Kray Mitchell</dc:creator>
            <category>InnoDB</category>
            <pubDate>Tue, 02 Dec 2008 17:22:05 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?106,236764,236764#msg-236764</guid>
            <title>Partitioning problem (no replies)</title>
            <link>http://forums.mysql.com/read.php?106,236764,236764#msg-236764</link>
            <description><![CDATA[ Hello.<br />
<br />
I get a mysql backup that I try to restore.<br />
Some errors happen and I do not know why, and consequenlty how to solve my problem !<br />
<br />
Here is an instruction from the infoschema file which produce an error :  <br />
 <br />
CREATE TABLE `maTable` (<br />
  `NumberId` int(11) NOT NULL AUTO_INCREMENT,<br />
   `StateOfResource` BINARY(1) DEFAULT NULL,<br />
   `destinationNumber` BINARY(10) NOT NULL,<br />
   PRIMARY KEY  USING HASH (`NumberId`),<br />
   UNIQUE KEY `MyDestinationNumber` USING HASH (`destinationNumber`)<br />
 ) ENGINE=ndbcluster DEFAULT CHARSET=latin1 COLLATE=latin1_bin <br />
PARTITION BY KEY (NumberId) ;<br />
 <br />
Here is what I get :<br />
ERROR 1503 (HY000): A UNIQUE INDEX must include all columns in the table's partitioning function<br />
<br />
thanks<br />
<br />
PS : I use Mysql cluster 5.1.30 under fedora. My backup come from mysql cluster 5.2.2.]]></description>
            <dc:creator>martin mouterde</dc:creator>
            <category>Partitioning</category>
            <pubDate>Tue, 02 Dec 2008 16:21:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?22,236763,236763#msg-236763</guid>
            <title>Delete ibdata1 (no replies)</title>
            <link>http://forums.mysql.com/read.php?22,236763,236763#msg-236763</link>
            <description><![CDATA[ Our database originally was created and used without the individual file per table option for innodb.  Since switching to the one file per table option ibdata has grown from 17Gb to 22Gb in several months.  So something is still using that file, but has remained at 22Gb for several weeks.  <br />
<br />
How safe is it to remove the file?  Will it be re-created?<br />
<br />
Can I rename the file to see if the db still functions and if so then remove?<br />
<br />
How can I be certain its no longer in use to remove?<br />
<br />
Thank you,<br />
<br />
-Steve]]></description>
            <dc:creator>Steven Mills</dc:creator>
            <category>InnoDB</category>
            <pubDate>Tue, 02 Dec 2008 15:59:52 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236762,236762#msg-236762</guid>
            <title>Help a newbie write a trigger -&amp;gt; delete all but 10 latest records (1 reply)</title>
            <link>http://forums.mysql.com/read.php?10,236762,236762#msg-236762</link>
            <description><![CDATA[ Hi,<br />
<br />
Im trying to write a trigger that will delete all but the 10 latest records for a given (non unique) key.<br />
<br />
I have a 'report_history' table with:<br />
id (PK), room, cupboard, shelve, report_date<br />
<br />
The trigger is .. triggered by an insert on the table (or alternatively, before an update on the original table, but that part I figured out)., <br />
<br />
If more than 10 records exist with the same location index (=room + cupboard + shelve) then the oldest one should be deleted  (or updated with the new record). If less than 10 records for that location exist, it should be inserted as normal.<br />
<br />
I can't figure this out :/<br />
<br />
Now I would usually do this in PHP easily  but in this case, i can't. It has be done by a trigger in MySQL, so any help would be greatly appreciated!]]></description>
            <dc:creator>Jan Jansen</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 16:54:24 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?38,236761,236761#msg-236761</guid>
            <title>MySQLMembershipProvider (v 5.2.5) does not handle encrypted passwords (no replies)</title>
            <link>http://forums.mysql.com/read.php?38,236761,236761#msg-236761</link>
            <description><![CDATA[ Hi,<br />
<br />
I am trying to use MySql Connector .NET with mono to build an ASP .NET application and have discovered that the code will not function correctly with encrypted passwords.<br />
<br />
The problem is that the EncodePassword routine uses a 'passwordKey'(*) which, in this implementation, adds on some extra 'salt' to the password *AFTER* it has been encoded and then stores that in the database.<br />
<br />
The effect of this is that calling EncodePassword on the string 'Fred' will lead UnEncodePassword to return something like '&quot;藍坹顺﫴郖䘛fred&quot;.<br />
<br />
HOW TO FIX::<br />
============<br />
To fix this the 'salt' should be added to the array of bytes BEFORE calling encode password.  Also the salt should not need to be stored as a 'PasswordKey'.. this actually weakens your security. Some magic happens inside EncryptPassword that knows to treat the leading bytes as random nonsense.<br />
<br />
If i get around to it i'll post some code here to fix the problem.... just waiting rebuilding my mono development PC at the moment so it might be some time<br />
<br />
<br />
Cheers<br />
<br />
Mozzy<br />
<br />
<br />
<br />
*( This is not really a password key at all, but, instead some 'salt' which is added to the password - the real key is set in the machine.config)]]></description>
            <dc:creator>Simon Moscrop</dc:creator>
            <category>.NET</category>
            <pubDate>Tue, 02 Dec 2008 15:54:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236758,236758#msg-236758</guid>
            <title>mysql replication (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,236758,236758#msg-236758</link>
            <description><![CDATA[ Hi <br />
<br />
I setup the mysql replication. <br />
<br />
I did test, it won't work<br />
A table exists in the master, but I haven't copied to the slave.<br />
<br />
I deleted this table in the master, I see &quot;show slave status&quot; that the table couldn't find <br />
<br />
Then I create another table, that table is also not showing in the slave also.<br />
<br />
I have to fix after I delete all binary log and restart the mysql and copy this table to slave<br />
<br />
Then I create another table in master, the slave can see and works fine<br />
<br />
My question: ls an error happening in replication? this feature won't work anymore. <br />
<br />
Thank you]]></description>
            <dc:creator>Ann Kok</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 15:18:44 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236755,236755#msg-236755</guid>
            <title>group by and sum conditionals (1 reply)</title>
            <link>http://forums.mysql.com/read.php?10,236755,236755#msg-236755</link>
            <description><![CDATA[ Hi, <br />
<br />
I have two tables: users and payments. Commissions can have multiple statuses(rejected, accepted etc)<br />
<br />
How do I create a query that outputs something like:<br />
all_the_user_table_fields, payments_accepted, payments_suspended etc.<br />
<br />
I thought something like select * from users, JOIN payments, group by users.id. <br />
<br />
However I don't know how to say *, sum(amount) as payments_accepted where payments.status = 'accepted', sum(amount) as payments_suspended where payments.status = 'suspended', etc.]]></description>
            <dc:creator>Marcelo Barbudas</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 20:01:57 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?38,236754,236754#msg-236754</guid>
            <title>.NET Connector and Replication (no replies)</title>
            <link>http://forums.mysql.com/read.php?38,236754,236754#msg-236754</link>
            <description><![CDATA[ Hello,<br />
<br />
DDL and DML comands are not stored in the binlog files and not replicated if i am using the .NET connector. With ODBC or the C-API everything is fine.<br />
I am using .NET connector 5.5.5.0 (have tried others to) on an XP Client against MYSQL 4.1.22 on Windows 2003 Server.<br />
Are there any options disable writing to the binlog in the .NET connector?<br />
<br />
Thanks alot and best regards<br />
<br />
Armin]]></description>
            <dc:creator>Armin Lorenz</dc:creator>
            <category>.NET</category>
            <pubDate>Tue, 02 Dec 2008 14:21:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?21,236748,236748#msg-236748</guid>
            <title>myisamchk fails with myisam_sort_buffer_size is too small (no replies)</title>
            <link>http://forums.mysql.com/read.php?21,236748,236748#msg-236748</link>
            <description><![CDATA[ I am trying to optimize my databases by using myisamchk to sort the index and data for selected tables. On most of the tables I have done this on so far, it has worked well and I've seen large performance improvements. However, on one particular (quite large) table, I'm getting this error:<br />
<br />
myisamchk.exe --sort-index --sort-records=3 &lt;table&gt;.MYI<br />
- Sorting records for MyISAM-table '&lt;table&gt;.MYI'<br />
Data records:  39739756   Deleted:         0<br />
- recovering (with sort) MyISAM-table '&lt;table&gt;.MYI'<br />
Data records: 39739756<br />
- Fixing index 1<br />
myisamchk: error: myisam_sort_buffer_size is too small<br />
MyISAM-table '&lt;table&gt;.MYI' is not fixed because of errors<br />
Try fixing it by using the --safe-recover (-o), the --force (-f) option or by not using the --quick (-q) flag<br />
<br />
The myisam_sort_buffer_size was set to 205M. I've tried increasing it to the maximum 4G and re-running the command after restoring the table from a backup, but still get the same error.<br />
<br />
My understanding was that this buffer was used in preference to the key cache for sorting, but if it was not large enough then the key cache would be used instead rather than the command failing entirely.<br />
<br />
Is this a case of a misleading error message, or is it not possible to use this command on a table of this size (6 GB data, 860 MB index)?]]></description>
            <dc:creator>Mark Carrington</dc:creator>
            <category>MyISAM</category>
            <pubDate>Tue, 02 Dec 2008 14:10:18 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?20,236745,236745#msg-236745</guid>
            <title>Creating function gives error (1 reply)</title>
            <link>http://forums.mysql.com/read.php?20,236745,236745#msg-236745</link>
            <description><![CDATA[ create function genregno(p2 INT)<br />
returns INTEGER<br />
Begin<br />
select convert(substr(max(regid),2,7),decimal) into p2 from university<br />
set p2 = p2 + 1<br />
return p2<br />
end;<br />
<br />
<br />
it gives error<br />
<br />
Error Code : 1064<br />
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 'set p2 = p2 + 1<br />
return p2<br />
end' at line 2<br />
(0 ms taken)<br />
<br />
<br />
any helps appreciates]]></description>
            <dc:creator>mukesh hirve</dc:creator>
            <category>General</category>
            <pubDate>Tue, 02 Dec 2008 19:46:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?11,236744,236744#msg-236744</guid>
            <title>Missing mysql.sock file (no replies)</title>
            <link>http://forums.mysql.com/read.php?11,236744,236744#msg-236744</link>
            <description><![CDATA[ I tried to install mysql community server on my MacBookPro (OS X 10.5) but it is saying that its missing mysql.sock file. <br />
<br />
Different forums say it should be in &quot;/etc&quot; folder or &quot;/var&quot; or &quot;usr/local&quot; folders but I dont have them on my computer and when I search for mysql.sock file, nothing comes up. What can I do?<br />
<br />
Notes: I can connect to mysql through the terminal but this is happening when I try to install drupal on my machine.]]></description>
            <dc:creator>Natalie Zhuravleva</dc:creator>
            <category>Install</category>
            <pubDate>Tue, 02 Dec 2008 13:55:13 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236742,236742#msg-236742</guid>
            <title>how to implement paging system in mysql (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,236742,236742#msg-236742</link>
            <description><![CDATA[ hi Everyone,<br />
I want to create paging system through database, if some one have any idea tell me.<br />
i mean i fetch 10 records per page but when i fire next event it will next 10 record <br />
so pls help me.<br />
<br />
pls give me reply.<br />
thanks.]]></description>
            <dc:creator>Dheeraj Gupta</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 13:14:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?11,236741,236741#msg-236741</guid>
            <title>&amp;quot;Host '::ffff:&amp;lt;IP address&amp;gt;' is not allowed to connect to this MySQL server&amp;quot; (1 reply)</title>
            <link>http://forums.mysql.com/read.php?11,236741,236741#msg-236741</link>
            <description><![CDATA[ Hello,<br />
<br />
I have 2 MySQL server installations (MySQL 5.1 &amp; MySQL 6.0.7) on UNIX SUN Solaris machine. MySQL 5.1 is configured on port 3306 and MySQL 6.0.7 is configured on port 3307.<br />
<br />
I am able to connect to MySQL 5.1 server from a remote Windows machine without any problem. But when I try to connect to MySQl 6.0.7 server, I get the error as<br />
  &quot;Host '::ffff:&lt;IP address&gt;' is not allowed to connect to this MySQL server&quot;<br />
<br />
 Locally I can connect without any glitch. But it is failing to connect using hostname, which is required as to connect from windows machine using MySQL GUI (TOAD).<br />
<br />
Also, all the grants for remote access have been granted using the below statement<br />
GRANT ALL PRIVILEGES ON *.* TO root@'sun-mysql-test' IDENTIFIED BY 'test' WITH GRANT OPTION;<br />
<br />
<br />
Is there any other configuration changes which are needed for granting remote access to MySQL 6.0.7 server? Please let me know]]></description>
            <dc:creator>Amol Gaikwad</dc:creator>
            <category>Install</category>
            <pubDate>Tue, 02 Dec 2008 14:15:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,236740,236740#msg-236740</guid>
            <title>UDT on new versions of MySQL? (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,236740,236740#msg-236740</link>
            <description><![CDATA[ Hi,<br />
<br />
I looked into MySQL documentation and searched over google, but couldn't find someone saying that there are UDT(user defined type) on MySQL... but as there are new versions coming around, I would like to know if this have changed.<br />
<br />
I kinda need them and I will have to use mssql untill mysql creates it(if they ever will).<br />
I like mssql but it lacks tools... simple tools like mysql does and well... everything from ms is limited to what they think and I like to use my imagination as I want, thats why I am into MySQL, but can only migrate it when it have UDTs.<br />
<br />
are there UDT in these new MySql versions? is it planned in the near future?<br />
Thanks!<br />
<br />
Joe]]></description>
            <dc:creator>Jonathan Dias</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 02 Dec 2008 12:48:44 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?38,236738,236738#msg-236738</guid>
            <title>MySql Connector/Net 5.1.6 backward compatiblity (no replies)</title>
            <link>http://forums.mysql.com/read.php?38,236738,236738#msg-236738</link>
            <description><![CDATA[ I have developed a number of ASP.Net web apps using the MySql Connector/Net 5.0.5 and our server has that version installed on it.<br />
<br />
Our newer products use MySql Connector/Net 5.1.6 and is running on the same server. When I try to run the app on the server I get the following message:<br />
<br />
&quot;Could not load file or assembly 'MySql.Data, Version=5.1.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)&quot;<br />
<br />
I understand that this means I need to install version 5.1.6. However, when I try to install it, it tells me to uninstall the previous version. If I do that, will the older apps be able to run with the new version of the connector without needing changes. ie is is 5.1.6 backward compatible with 5.0.5. Or is there another way of installing both on the same machine.<br />
<br />
Thanks for your help,<br />
Robin]]></description>
            <dc:creator>Robin Massart</dc:creator>
            <category>.NET</category>
            <pubDate>Tue, 02 Dec 2008 12:20:24 +0000</pubDate>
        </item>
    </channel>
</rss>
