Re: a lesson in query writing and (maybe) a bug report

2011-08-28 Thread Jigal van Hemert

Hi,

On 28-8-2011 4:08, shawn wilson wrote:

On Sat, Aug 27, 2011 at 17:33, Arthur Fullerfuller.art...@gmail.com  wrote:

I agree 110%. It is completely pointless to index a column with that amount
of NULLs. In practical fact I would go further: what is the point of a
NULLable column?


A NULL 'value' is special in most operations. It indicates that the 
value is undefined, unknown, uncertain. In this regard it's actually not 
a value.

SELECT 'Uncertain' = TRUE;
Result: 0
SELECT 'Uncertain' = FALSE;
Result: 1
SELECT 'Uncertain' = NULL;
Result: NULL

SELECT NULL = TRUE;
Result: NULL
SELECT NULL = FALSE;
Result: NULL
SELECT NULL = NULL;
Result: NULL

(Unfortunately someone decided to add the = operator:
SELECT NULL = NULL;
Result: 1
Even stranger is that it is documented as NULL safe !?!?)

The advantage to me for having NULL 'values' is that it is usually 
handled as a truly undefined value. (When you compare an undefined value 
with for example 2, the result cannot be TRUE or FALSE. The undefined 
value might be equal to 2, or might not be equal to 2. The result can 
only be undefined.)
To deal with NULL results inside expressions COALESCE() is a very useful 
function.



how does null effect an index? i had always assumed that, since there
is nothing there, that record wouldn't go into the index hence
wouldn't be processed when utilizing the index.


MySQL can use NULL in indexes when executing a query. If there are not 
enough different values in a column (low cardinality) it might be faster 
to do a full table search instead of first reading the index and then 
having to go through the table anyway.


--
Kind regards / met vriendelijke groet,

Jigal van Hemert.

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



Re: a lesson in query writing and (maybe) a bug report

2011-08-27 Thread Jigal van Hemert

Hi,

On 27-8-2011 1:28, Dave Dyer wrote:


Can you post the EXPLAIN EXTENDED output for your before and after queries?
also, have you recently run an ANALYZE TABLE on the tables?


What was the result of ANALYZE TABLE?

What is the engine of the tables involved?


// before


Used keys:

p2.NULL, g.player2, p1.uid

In your original post you wrote: The according to explain, the query 
used gmtdate as an index, an excellent choice.
The explain output you posted later indicated that this is not the case 
(anymore).

gmtdate isn't listed as possible index, so what has changed?

 It seems odd that the query optimizer would choose to scan a 3.5
 million entry table instead of a 20,000 entry table.

Let's see.
Before: 28653 * 41 * 1 rows to consider = 1.1 M rows
After: 15292 * 67 * 1 rows to consider = 1.0 M rows

Conclusion: the query optimizer didn't choose to scan an entire table. 
In fact it found a way to have to look at 10% less rows.


For the final order by and limit it would be great to have a (partial) 
index to work with.
It's true that planning indexes isn't always an exact science. Generally 
speaking the goal is to construct both the query and the indexes in a 
way that you rule out as many rows as possible early on in the process.


From your query it becomes evident that you want the latest fifty 
matches between two players who both have the status is_robot null.
Try to create indexes which cover as many of the columns which are 
involved in the join, where and order parts, and look at the cardinality 
of those indexes. This will determine how many records can be discarded 
in each join and keeps the number of records MySQL has to scan as low as 
possible.


Another way is a bit tricky, but can speed up queries a lot: you want 
the 50 most recent records, so analyse the data and see if you can 
predict how big your result set will be in a period of time. Let's 
assume that there are always between 10 and 50 of such records per day. 
If you want the top 50 it would be safe to limit the search for the last 
10 to 20 days.
Of course this requires an index which includes gmtdate, but it can make 
the result set before the limit a lot smaller.


--
Kind regards / met vriendelijke groet,

Jigal van Hemert.

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



a lesson in query writing and (maybe) a bug report

2011-08-27 Thread Dave Dyer

The innocuous change was to add an index for is_robot which is true
for 6 out of 20,000 records and null for the rest.

My complaint/question/observation is not how to optimize the query
that went awry, but to be alarmed that a venerable and perfectly 
serviceable query, written years ago and ignored ever since, suddenly
brought the system crashing down after making a seemingly innocuous
change intended to make a marginal improvement on an unrelated query.

I had previously believed that tinkering the schema by adding indexes was a 
safe activity.  It's as though I add a shortcut to my regular commute
and caused a massive traffic jam when the entire traffic flow tried to
follow me.

(Both tables are ok according to analyze table)


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



Re: a lesson in query writing and (maybe) a bug report

2011-08-27 Thread Jigal van Hemert

Hi,

On 27-8-2011 22:52, Dave Dyer wrote:

The innocuous change was to add an index for is_robot which is true
for 6 out of 20,000 records and null for the rest.


Not useful to add an index for that. I also wonder why the value is null 
(meaning: unknown, not certain) for almost all records.


If you want to use such a column in an index it's best to use and index 
base on multiple columns. This makes it more useful for use in queries.



My complaint/question/observation is not how to optimize the query
that went awry, but to be alarmed that a venerable and perfectly
serviceable query, written years ago and ignored ever since, suddenly
brought the system crashing down after making a seemingly innocuous
change intended to make a marginal improvement on an unrelated query.


Adding an index will most likely trigger some maintenance actions to 
make sure the table is healthy before adding the index.

The query optimizer has an extra index to take into account.


I had previously believed that tinkering the schema by adding
indexeswas a safe activity.


A database should be left alone for a long period. It needs monitoring 
and maintenance. Changes in the schema and even changes in the data can 
lead to changes in the behaviour.
You can make suggestions for the indexes to be used and you can even 
force the use of an index if the query optimizer makes the wrong 
decisions in a case.


--
Kind regards / met vriendelijke groet,

Jigal van Hemert.

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



Re: a lesson in query writing and (maybe) a bug report

2011-08-27 Thread Arthur Fuller
I agree 110%. It is completely pointless to index a column with that amount
of NULLs. In practical fact I would go further: what is the point of a
NULLable column? I try to design my tables such that every column is NOT
NULL. In practice this is not realistic, but I try to adhere to this
principle whenever I can. For example, it's possible to add a new Hire while
not yet having determined which department s/he will work in, and hence
which manager s/he will report to, but typically I deal with such scenarios
by creating an Undetermined value in the corresponding lookup table.

Arthur


Re: a lesson in query writing and (maybe) a bug report

2011-08-27 Thread Michael Dykman
It is a general rule that indexes for columns with low cardinality are not
worth it, often making queries more expensive than they would be without
said index.  binary columns all suffer from this.

 - michael dykman


On Sat, Aug 27, 2011 at 4:52 PM, Dave Dyer ddyer-my...@real-me.net wrote:


 The innocuous change was to add an index for is_robot which is true
 for 6 out of 20,000 records and null for the rest.

 My complaint/question/observation is not how to optimize the query
 that went awry, but to be alarmed that a venerable and perfectly
 serviceable query, written years ago and ignored ever since, suddenly
 brought the system crashing down after making a seemingly innocuous
 change intended to make a marginal improvement on an unrelated query.

 I had previously believed that tinkering the schema by adding indexes was a
 safe activity.  It's as though I add a shortcut to my regular commute
 and caused a massive traffic jam when the entire traffic flow tried to
 follow me.

 (Both tables are ok according to analyze table)


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




-- 
 - michael dykman
 - mdyk...@gmail.com

 May the Source be with you.


Re: a lesson in query writing and (maybe) a bug report

2011-08-27 Thread shawn wilson
On Sat, Aug 27, 2011 at 17:33, Arthur Fuller fuller.art...@gmail.com wrote:
 I agree 110%. It is completely pointless to index a column with that amount
 of NULLs. In practical fact I would go further: what is the point of a
 NULLable column? I try to design my tables such that every column is NOT
 NULL. In practice this is not realistic, but I try to adhere to this
 principle whenever I can. For example, it's possible to add a new Hire while
 not yet having determined which department s/he will work in, and hence
 which manager s/he will report to, but typically I deal with such scenarios
 by creating an Undetermined value in the corresponding lookup table.


maybe this should be a new thread, but...

what's the difference between defining a null value (ie, Undetermined
in your example is the same to you as null)? it would seem that this
would take up more space and take longer to process since null is a
built in (not-)value.

how does null effect an index? i had always assumed that, since there
is nothing there, that record wouldn't go into the index hence
wouldn't be processed when utilizing the index.

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



a lesson in query writing and (maybe) a bug report

2011-08-26 Thread Dave Dyer

This is a cautionary tale - adding indexes is not always helpful or harmless.  
I recently added an index to the players table to optimize a common query, 
and as a consequence this other query flipped from innocuous to something that 
takes infinite time.


select 
p1.player_name,g.score1,g.time1,g.color1,p2.player_name,g.score2,g.time2,g.color2,g.gamename,gmtdate
 
 from players as p1, players as p2, gamerecord g 
 where (p1.uid = g.player1 and p2.uid = g.player2) 
   and (p1.is_robot is null and p2.is_robot is null) 
 order by gmtdate desc limit 50


players is a table with 20,000 records, gamerecord is a table with 3.5 
million records, with gmtdate available as an index.   The according to 
explain, the query used gmtdate as an index, an excellent choice.   When I 
added an index to is_robot on the players table, the query flipped to using 
it, and switched from a brisk report to an infinite slog.

I realize that selecting an index is an imprecise science, and I that can 
specify what index to use as a hint, but this particular flip was particularly 
disastrous.  It seems odd that the query optimizer would choose to scan a 3.5 
million entry table instead of a 20,000 entry table.


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



Re: a lesson in query writing and (maybe) a bug report

2011-08-26 Thread Dan Nelson
In the last episode (Aug 26), Dave Dyer said:
 This is a cautionary tale - adding indexes is not always helpful or
 harmless.  I recently added an index to the players table to optimize a
 common query, and as a consequence this other query flipped from innocuous
 to something that takes infinite time.
 
 select 
 p1.player_name,g.score1,g.time1,g.color1,p2.player_name,g.score2,g.time2,g.color2,g.gamename,gmtdate
  
  from players as p1, players as p2, gamerecord g 
  where (p1.uid = g.player1 and p2.uid = g.player2) 
and (p1.is_robot is null and p2.is_robot is null) 
  order by gmtdate desc limit 50
 
 players is a table with 20,000 records, gamerecord is a table with 3.5
 million records, with gmtdate available as an index.  The according to
 explain, the query used gmtdate as an index, an excellent choice.  When
 I added an index to is_robot on the players table, the query flipped to
 using it, and switched from a brisk report to an infinite slog.
 
 I realize that selecting an index is an imprecise science, and I that can
 specify what index to use as a hint, but this particular flip was
 particularly disastrous.  It seems odd that the query optimizer would
 choose to scan a 3.5 million entry table instead of a 20,000 entry table.

Can you post the EXPLAIN EXTENDED output for your before and after queries? 
also, have you recently run an ANALYZE TABLE on the tables?

-- 
Dan Nelson
dnel...@allantgroup.com

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



Re: Re: a lesson in query writing and (maybe) a bug report

2011-08-26 Thread Dave Dyer



Can you post the EXPLAIN EXTENDED output for your before and after queries? 
also, have you recently run an ANALYZE TABLE on the tables?

// before

mysql explain extended select 
p1.player_name,g.score1,g.time1,g.color1,p2.player_name,g.score2,g.time2,g.color2,g.gamename,gmtdate
-   from players as p1, players as p2, gamerecord g
-   where (p1.uid = g.player1 and p2.uid = g.player2)
- and (p1.is_robot is null and p2.is_robot is null)
-   order by gmtdate desc limit 50;
++-+---++-+-+-++---+--+---
---+
| id | select_type | table | type   | possible_keys   | key | key_len | ref 
   | rows  | filtered | Extra
   |
++-+---++-+-+-++---+--+---
---+
|  1 | SIMPLE  | p2| ALL| uid,uidindex| NULL| NULL| 
NULL   | 28653 |   100.00 | Using where; Using temporary; Using fi
lesort |
|  1 | SIMPLE  | g | ref| player2,player1 | player2 | 4   | 
tan2.p2.uid|41 |   100.00 |
   |
|  1 | SIMPLE  | p1| eq_ref | uid,uidindex| uid | 4   | 
tan2.g.player1 | 1 |   100.00 | Using where
   |
++-+---++-+-+-++---+--+---
---+
3 rows in set, 1 warning (0.00 sec)


// after


mysql use tantrix_tantrix;
Database changed
mysql explain extended select 
p1.player_name,g.score1,g.time1,g.color1,p2.player_name,g.score2,g.time2,g.color2,g.gamename,gmtdate
-   from players as p1, players as p2, gamerecord g
-   where (p1.uid = g.player1 and p2.uid = g.player2)
- and (p1.is_robot is null and p2.is_robot is null)
-   order by gmtdate desc limit 50;
++-+---++--+-+-+---+---+--+---
---+
| id | select_type | table | type   | possible_keys| key | 
key_len | ref   | rows  | filtered | Extra
   |
++-+---++--+-+-+---+---+--+---
---+
|  1 | SIMPLE  | p1| ref| uid,uidindex,robot_index | robot_index | 
2   | const | 15292 |   100.00 | Using where; U
sing temporary; Using filesort |
|  1 | SIMPLE  | g | ref| player2,player1  | player1 | 
4   | tantrix_tantrix.p1.uid|67 |   100.00 |
   |
|  1 | SIMPLE  | p2| eq_ref | uid,uidindex,robot_index | uid | 
4   | tantrix_tantrix.g.player2 | 1 |   100.00 | Using where
   |
++-+---++--+-+-+---+---+--+---
---+
3 rows in set, 1 warning (0.11 sec)

mysql 


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



a lesson in query writing and (maybe) a bug report

2011-08-26 Thread Dave Dyer

BTW, the query on the database with the added index doesn't take
forever, it takes a mere 51 minutes (vs. instantaneous).



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



a lesson in query writing and (maybe) a bug report

2011-08-26 Thread Dave Dyer

BTW, the query on the database with the added index doesn't take
forever, it takes a mere 51 minutes (vs. instantaneous).


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



Bug-reporting bug report

2006-11-18 Thread der Mouse
Bit of a problem with MySQL and bug reports.  The README in the source
distribution says to use http://bugs.mysql.com, with no alternatives
given.  On http://dev.mysql.com/doc/refman/5.0/en/bug-reports.html
(which I had to find with google), I see

   If you have no Web access and cannot report a bug by visiting
   http://bugs.mysql.com/, you can use the mysqlbug script to generate a
   bug report (or a report about any problem).

which is, of course, pretty useless if you have no Web access.  Worse,
I had to find it by googling with site:mysql.com.

I had a look at the mysqlbug script in the scripts/ directory in the
source, but it won't run without at least a little of mysql set up; one
of the first things it does is to run something called ccache, which
does not exist anywhere in the source tree, making it of little use if
you haven't succeeded in getting far enough to create it.  But I did
find this address, mysql@lists.mysql.com, embedded in it (by searching
for @).

Might I recommend that the README mention mysql@lists.mysql.com for
those for who don't have Web access, and that it be mentioned
somewhere on or near http://bugs.mysql.com/ for those who (like me)
have Web access if necessary but for whom it is significantly more
difficult and/or unpleasant than sending mail?

The source distribution I looked at is mysql-5.0.27.tar.gz (MD5
584d423440a9d9c859678e3d4f2690b3); the Web pages I looked at over the
hour or two preceding this email (2006-11-19 between roughly 04:00 and
06:00 UTC).

/~\ The ASCII   der Mouse
\ / Ribbon Campaign
 X  Against HTML   [EMAIL PROTECTED]
/ \ Email!   7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

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



Re: bug report

2005-10-05 Thread Gleb Paharenko
Hello.



Please, could you send a more detailed report. Include information

about MySQL and operating system versions. See:

  http://dev.mysql.com/doc/mysql/en/Bug_reports.html



You may want to force a recovery. See:

  http://dev.mysql.com/doc/mysql/en/forcing-recovery.html





Pierre-Henry Perret [EMAIL PROTECTED] wrote:

When starting mysqld, I got the err message (in file)



051005 05:26:47 mysqld started

051005 5:26:47 InnoDB: Database was not shut down normally.

InnoDB: Starting recovery from log files...

InnoDB: Starting log scan based on checkpoint at

InnoDB: log sequence number 0 43902

InnoDB: Doing recovery: scanned up to log sequence number 0 43902

051005 5:26:47 InnoDB: Error: trying to access a stray pointer 88b8fff8

InnoDB: buf pool start is at 8b8, end at 938

InnoDB: Probable reason is database corruption or memory

InnoDB: corruption. If this happens in an InnoDB database recovery,

InnoDB: you can look from section 6.1 at http://www.innodb.com/ibman.html

InnoDB: how to force recovery.

051005 5:26:47 InnoDB: Assertion failure in thread 137490432 in file

../../innobase/include/buf0buf.ic line 261

InnoDB: We intentionally generate a memory trap.

InnoDB: Send a detailed bug report to [EMAIL PROTECTED]

mysqld got signal 11;

This could be because you hit a bug. It is also possible that this binary

or one of the libraries it was linked against is corrupt, improperly built,

or misconfigured. This error can also be caused by malfunctioning hardware.

We will try our best to scrape up some info that will hopefully help

diagnose

the problem, but since we have already crashed, something is definitely

wrong

and this may fail.



key_buffer_size=268435456

read_buffer_size=1044480

Fatal signal 11 while backtracing

051005 05:26:47 mysqld ended



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




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



bug report

2005-10-04 Thread Pierre-Henry Perret
When starting mysqld, I got the err message (in file)

051005 05:26:47 mysqld started
051005 5:26:47 InnoDB: Database was not shut down normally.
InnoDB: Starting recovery from log files...
InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43902
InnoDB: Doing recovery: scanned up to log sequence number 0 43902
051005 5:26:47 InnoDB: Error: trying to access a stray pointer 88b8fff8
InnoDB: buf pool start is at 8b8, end at 938
InnoDB: Probable reason is database corruption or memory
InnoDB: corruption. If this happens in an InnoDB database recovery,
InnoDB: you can look from section 6.1 at http://www.innodb.com/ibman.html
InnoDB: how to force recovery.
051005 5:26:47 InnoDB: Assertion failure in thread 137490432 in file
../../innobase/include/buf0buf.ic line 261
InnoDB: We intentionally generate a memory trap.
InnoDB: Send a detailed bug report to mysql@lists.mysql.com
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose
the problem, but since we have already crashed, something is definitely
wrong
and this may fail.

key_buffer_size=268435456
read_buffer_size=1044480
Fatal signal 11 while backtracing
051005 05:26:47 mysqld ended



--
Pierre-Henry Perret


mySQL Bug Report

2005-08-02 Thread Kari White
After installing mySQL along with a program called articlebot, I tried to
run the application and I keep getting this message:

 

An unhandled exception has occurred in a component in your application.
Click continue and application will ignore this error and attempt to
continue.

 

ERROR [HY000] [MySQL] [ODBC 3.51 Driver]Can't connect to MySQL server on
local host (10061)

ERROR [HY000] [MySQL] [ODBC 3.51 Driver]Can't connect to MySQL server on
local host (10061)

 

I thought I had installed it correctly, but apparently I didn't.  Any idea
what went wrong and how I would go about fixing it?

 

 

 

 

Kari White

Brook Group, LTD

8231 Main Street

Ellicott City, MD  21043

410.465.7805

www.brookgroup.com

 



Re: mySQL Bug Report

2005-08-02 Thread Gleb Paharenko
Hello.





I don't know the relationships between program articlebot and MySQL.

But error message tells me to ask you to check if you have MyODBC 

properly configured and whether your MySQL server is running. See:



  http://dev.mysql.com/doc/mysql/en/can-not-connect-to-server.html



There is a description how to test your settings if you're using

Windows:



  http://dev.mysql.com/doc/mysql/en/dsn-on-windows.html











After installing mySQL along with a program called articlebot, I tried to

run the application and I keep getting this message:



 



An unhandled exception has occurred in a component in your application.

Click continue and application will ignore this error and attempt to

continue.



 



ERROR [HY000] [MySQL] [ODBC 3.51 Driver]Can't connect to MySQL server on

local host (10061)



ERROR [HY000] [MySQL] [ODBC 3.51 Driver]Can't connect to MySQL server on

local host (10061)



 



I thought I had installed it correctly, but apparently I didn't.  Any idea

what went wrong and how I would go about fixing it?



Kari White [EMAIL PROTECTED] wrote:



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




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



Bug Report (LOAD DATA FROM MASTER on MERGE Tables)

2005-06-07 Thread Gordan Bobic
It would appear that LOAD DATA FROM MASTER processes databases and 
tables alphabetically. When a merge table is being copied, and it's name 
is alphabetically before some/any/all of it's components, the process 
fails with a 1017 couldn't find file error.


Has this been fixed? If so, as of which version? Is this a bug on the 
master or the slave side? I ask that because I am replicating from 4.1.x 
to 5.0.x.


Many thanks.

Gordan

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



bug report!!

2004-08-27 Thread IT Arabesque Piatra Neamt
server not starting beginnig two-three days ago. All went well until then, when i had 
some large queries on server, and i think that was the moment when it crashed. I tried 
increasing the amount of innodb_buffer_pool_size from 8 to 16M , it started now, but 
the same list of errors appears in the log.
Notice: same server, exactly same configuration runs as master on a different machine, 
and didn't cause such problems. I had some trouble (sometimes it stucks when i try to 
connect from console with mysql).

i'd like someone who handles bug to take a look on this error log: 


MySQL: ready for connections.
Version: '5.0.0-alpha-max-debug-log'  socket: ''  port: 3306
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\sql_lex.cpp:144'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\mysys\mulalloc.c:51'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\client.c:1824'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\client.c:1825'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\mysys\my_alloc.c:181'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\sql_base.cpp:869'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\mysys\my_alloc.c:99'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\table.cpp:100'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\mysys\my_open.c:132'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\table.cpp:804'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\table.cpp:815'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\table.cpp:834'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\table.cpp:835'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\mysys\my_alloc.c:99'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\table.cpp:834'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\table.cpp:835'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\mysys\my_open.c:91'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\mysys\my_alloc.c:99'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\table.cpp:647'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\ha_innodb.cpp:4766'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\mysys\mulalloc.c:51'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\lock.cpp:414'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\mysys\my_alloc.c:99'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\sql_lex.cpp:152'
Error: Memory allocated at C:\build500\build\mysql-5.0.0-alpha\sql\log_event.cpp:1196 
was overrun, discovered at 'C:\build500\build\mysql-5.0.0-alpha\sql\sql_lex.cpp:153'
Error: Memory allocated at 

Re: Bug-Report: mysqld 4.1.3 crashes on startup

2004-08-01 Thread Sergei Golubchik
Hi!

On Aug 01, Helge Jung wrote:
 Description:
 When I start up my fresh compiled mysqld it crashes immediately, the
 error log file says:

It was reported just a few hours ago at bugs.mysql.com
(which is the recommended way to report bugs, by the way :)

you may follow the progress using

http://bugs.mysql.com/4844
 
Regards,
Sergei

-- 
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, Senior Software Developer
/_/  /_/\_, /___/\___\_\___/  Osnabrueck, Germany
   ___/  www.mysql.com

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



Bug-Report: mysqld 4.1.3 crashes on startup

2004-07-31 Thread Helge Jung
Description:
When I start up my fresh compiled mysqld it crashes immediately, the error log file 
says:

 040801 00:07:28  mysqld restarted
 040801  0:07:29  Warning: Can't open time zone table: Table 
'mysql.time_zone_leap_second' doesn't exist trying to live without them
 mysqld got signal 11;
 This could be because you hit a bug. It is also possible that this binary
 or one of the libraries it was linked against is corrupt, improperly built,
 or misconfigured. This error can also be caused by malfunctioning hardware.
 We will try our best to scrape up some info that will hopefully help diagnose
 the problem, but since we have already crashed, something is definitely wrong
 and this may fail.
 
 key_buffer_size=16777216
 read_buffer_size=131072
 max_used_connections=0
 max_connections=100
 threads_connected=0
 It is possible that mysqld could use up to
 key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 233983 K
 bytes of memory
 Hope that's ok; if not, decrease some variables in the equation.
 
 thd=0x84e8140
 Attempting backtrace. You can use the following information to find out
 where mysqld died. If you see no messages after this, something went
 terribly wrong...
 Cannot determine thread, fp=0xb2e8, backtrace may not be correct.
 Stack range sanity check OK, backtrace follows:
 0x8156843
 0x40174b83
 0x40366093
 0x815849d
 0x403164c0
 0x80d15a1
 New value of fp=(nil) failed sanity check, terminating stack trace!
 Please read http://www.mysql.com/doc/en/Using_stack_trace.html and follow 
instructions on how to resolve the stack trace. Resolved
 stack trace is much more helpful in diagnosing the problem, so please do
 resolve it
 Trying to get some variables.
 Some pointers may be invalid and cause the dump to abort...
 thd-query at (nil)  is invalid pointer
 thd-thread_id=-606348325
 The manual page at http://www.mysql.com/doc/en/Crashing.html contains
 information that should help you find out what is causing the crash.
 
Resolving the stack trace with the symbols generated by nm -D -n /usr/sbin/mysqld 
gives:

matrix ~ # resolve_stack_dump mysqld.sym -n mysqld.stack
0x8156843 handle_segfault + 643
0x40174b83 _end + 936145507
0x40366093 _end + 938182515
0x815849d main + 525
0x403164c0 _end + 937855904
0x80d15a1 _start + 33

debugging gives:

matrix mysql # gdb /usr/sbin/mysqld
GNU gdb 6.1.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i686-pc-linux-gnu...(no debugging symbols found)...Using 
host libthread_db library /lib/libthread_db.so.1.

(gdb) set args --datadir=/var/lib/mysql --skip-stack-trace --gdb
(gdb) run
Starting program: /usr/sbin/mysqld --datadir=/var/lib/mysql --skip-stack-trace --gdb
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIG32, Real-time event 32.
0x401719f3 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb) backtrace full
#0  0x401719f3 in pthread_getconcurrency () from /lib/libpthread.so.0
No symbol table info available.
#1  0x40177b84 in ?? () from /lib/libpthread.so.0
No symbol table info available.
#2  0xb630 in ?? ()
No symbol table info available.
#3  0xb6c8 in ?? ()
No symbol table info available.
#4  0x4017151b in pthread_getconcurrency () from /lib/libpthread.so.0
No symbol table info available.
#5  0xb630 in ?? ()
No symbol table info available.
#6  0x0020 in ?? ()
No symbol table info available.
#7  0xb630 in ?? ()
No symbol table info available.
#8  0x4016ffaa in pthread_mutex_unlock () from /lib/libpthread.so.0
No symbol table info available.
Previous frame inner to this frame (corrupt stack?)
(gdb) n
Single stepping until exit from function pthread_getconcurrency,
which has no line number information.
0x40170d62 in pthread_create () from /lib/libpthread.so.0
(gdb) s
Single stepping until exit from function pthread_create,
which has no line number information.
0x08156ca8 in handle_segfault ()
(gdb) n
Single stepping until exit from function handle_segfault,
which has no line number information.

Program received signal SIG32, Real-time event 32.
0x401719f3 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb) n
Single stepping until exit from function 

Bug Report

2003-12-25 Thread D. Lehnen
Dear Sir/Madame,
Sehr geehrte Damen und Herren,

I got the following message using the mysql-Database with phpMyAdmin:
Ich habe folgende Meldung beim benutzen der mysql-Datenbank mit phpmyadmin
erhalten:





Möglicherweise haben Sie einen Bug im SQL-Parser entgeckt. Bitte überprüfen
Sie Ihre Abfrage genaustens insbesondere auf falsch gesetzte oder nicht
geschlossene Auführungszeichen. Eine weite Ursache könnte darin liegen, dass
Sie versuchen eine Datei mit binären Daten welche nicht von
Auführungszeichen eingeschlossen sind hochzuladen. Sie können alternativ
versuchen Ihre Abfrage über das MySQL-Kommandozeileninterface zu senden. Die
MySQL-Fehlerausgabe, falls vorhanden, kann Ihnen auch bei der Fehleranalyse
helfen. Falls Sie weiterhin Probleme haben sollten oder der Parser dort
versagt wo die Kommandozeile erfolgreich ist, so reduzieren Sie bitte Ihre
Abfrage auf den Befehl, welcher die Probleme verursacht, und senden Sie uns
einen Bugreport mit den Datenausschnitt, den Sie weiter unten auf dieser
Seite finden.:
AUSSCHNITTSANFANG
eNo9kM9Og0AYxO/7FHPocdkui62wiQfEtSXhT12wjacGAloSAkirrT4XD+jWGE/fJDOT+eVTWqda
IrARCEQqkRAeHA7XI1lujImQYJtJzMJK4vjeDsV4rEfWNiUbDgP9hM2EgOBczLk757cQQjpLabsY
+7IsTgLqMmBG4q/sKZJwmHDYQlht/0aeM400o/BXKskptsrM7ZoOocKScbKJfQPDnKtcb642TQ3I
DRPMkDbdx4VEfrKSqGqrOfaW6y48yya/M5mKVJDjvD/344maW3TfxaHFo05jTOe+Hk/1OCHVD0rj
/uU/QP8q2K2VVnjdN9XdAlEYhzk4NX/5AUJXU3c=
AUSSCHNITTSENDE
BEGINN DER AUSGABE
ERROR: C1 C2 LEN: 29 30 89
STR: ´

CVS: $Id: sqlparser.lib.php,v 1.22 2002/08/07 22:36:18 robbat2 Exp $
MySQL: 3.23.52-log
USR OS, AGENT, VER: Win IE 6.0
PMA: 2.3.0
PHP VER,OS: 4.2.2 Linux
LANG: de-iso-8859-1
SQL: SELECT w_wort, w_anzahl FROM ´woerter´ ORDER BY w_anzahl, w_wort WHERE
f_id=5 LIMIT 0, 30
ENDE DER AUSGABE
Fehler
SQL-Befehl :
SELECT w_wort, w_anzahl FROM ´woerter´ ORDER BY w_anzahl, w_wort WHERE
f_id=5 LIMIT 0, 30
MySQL meldet:
You have an error in your SQL syntax near '´woerter´ ORDER BY w_anzahl,
w_wort WHERE f_id=5 LIMIT 0, 30' at line 1
Zurück




I hope to help you, debugging and developing the system.
Ich hoffe Ihnen bei der Weiterentwicklung hilfreich gewesen zu sein.

Sincerely yours
Mit freundlichen Grüßen

Dennis Lehnen


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



bug report

2003-09-08 Thread Eric Aubourg
030905 10:39:38  mysqld started
030905 10:39:40  InnoDB: Database was not shut down normally.
InnoDB: Starting recovery from log files...
InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 2 3128426578
InnoDB: Doing recovery: scanned up to log sequence number 2 3128426578
InnoDB: Last MySQL binlog file position 0 762953481, file name 
./makiki-bin.016
030905 10:39:40  InnoDB: Flushing modified pages from the buffer pool...
030905 10:39:40  InnoDB: Started
/data/upena/soft/mysql/bin/mysqld: ready for connections.
Version: '4.0.14-max-log'  socket: '/tmp/mysql.sock'  port: 3306
030905 20:06:18  InnoDB: Warning: using a partial-field key prefix in 
search
A mysqld process already exists at  Sun Sep 7 00:26:58 HST 2003
A mysqld process already exists at  Sun Sep 7 00:27:59 HST 2003
A mysqld process already exists at  Sun Sep 7 00:28:45 HST 2003
InnoDB: Error: trying to access page number 3422338945 in space 0
InnoDB: which is outside the tablespace bounds.
InnoDB: Byte offset 0, len 16384, i/o type 10
030908 11:27:35  InnoDB: Assertion failure in thread 370700 in file 
fil0fil.c line 1176
InnoDB: Failing assertion: 0
InnoDB: We intentionally generate a memory trap.
InnoDB: Send a detailed bug report to [EMAIL PROTECTED]
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this 
binary
or one of the libraries it was linked against is corrupt, improperly 
built,
or misconfigured. This error can also be caused by malfunctioning 
hardware.
We will try our best to scrape up some info that will hopefully help 
diagnose
the problem, but since we have already crashed, something is definitely 
wrong
and this may fail.

key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=4
max_connections=100
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections 
= 80383 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=0x884f9d8
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
Cannot determine thread, fp=0xbe3faf68, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x80d9a90
0x40039a24
0x82ccda7
0x82a0809
0x82a0c55
0x82937b5
0x82c5e24
0x82c50e6
0x82730d3
0x828d7f5
0x8284dc0
0x8286e3f
0x821c398
0x813b40e
0x8140e6e
0x8143631
0x80e51cb
0x80e7fba
0x80e3483
0x80e2edd
0x80e26ce
0x40036e17
0x40191dda
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read http://www.mysql.com/doc/en/Using_stack_trace.html and 
follow instructions on how to resolve the stack trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do
resolve it

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


Re: bug report

2003-09-08 Thread Heikki Tuuri
Eric,

 Please read http://www.mysql.com/doc/en/Using_stack_trace.html and
 follow instructions on how to resolve the stack trace. Resolved
 stack trace is much more helpful in diagnosing the problem, so please do
 resolve it

please use the resolve_stack_dump program in combination with the mysqld.sym
which are shipped with the MySQL distro.

You may have table corruption. Run CHECK TABLE on your tables. If it prints
something to the .err log, please send the output to me.

If you have problems starting up mysqld or dumping your tables, see
http://www.innodb.com/ibman.html#Forcing_recovery
for help.

What does

uname -a

say about your Linux kernel? You should upgrade to a kernel = 2.4.20 if not
yet running one. Earlier Linux kernels seem to cause corruption in many
computers.

 030905 20:06:18  InnoDB: Warning: using a partial-field key prefix in
 search

Any idea what SQL query might be causing the above warning? Do you use LIKE
'abcd%' ?

Best regards,

Heikki Tuuri
Innobase Oy
http://www.innodb.com
Foreign keys, transactions, and row level locking for MySQL
InnoDB Hot Backup - a hot backup tool for MySQL

Order MySQL technical support from https://order.mysql.com/


- Original Message - 
From: Eric Aubourg [EMAIL PROTECTED]
Newsgroups: mailing.database.myodbc
Sent: Tuesday, September 09, 2003 2:37 AM
Subject: bug report


 030905 10:39:38  mysqld started
 030905 10:39:40  InnoDB: Database was not shut down normally.
 InnoDB: Starting recovery from log files...
 InnoDB: Starting log scan based on checkpoint at
 InnoDB: log sequence number 2 3128426578
 InnoDB: Doing recovery: scanned up to log sequence number 2 3128426578
 InnoDB: Last MySQL binlog file position 0 762953481, file name
 ./makiki-bin.016
 030905 10:39:40  InnoDB: Flushing modified pages from the buffer pool...
 030905 10:39:40  InnoDB: Started
 /data/upena/soft/mysql/bin/mysqld: ready for connections.
 Version: '4.0.14-max-log'  socket: '/tmp/mysql.sock'  port: 3306
 030905 20:06:18  InnoDB: Warning: using a partial-field key prefix in
 search
 A mysqld process already exists at  Sun Sep 7 00:26:58 HST 2003
 A mysqld process already exists at  Sun Sep 7 00:27:59 HST 2003
 A mysqld process already exists at  Sun Sep 7 00:28:45 HST 2003
 InnoDB: Error: trying to access page number 3422338945 in space 0
 InnoDB: which is outside the tablespace bounds.
 InnoDB: Byte offset 0, len 16384, i/o type 10
 030908 11:27:35  InnoDB: Assertion failure in thread 370700 in file
 fil0fil.c line 1176
 InnoDB: Failing assertion: 0
 InnoDB: We intentionally generate a memory trap.
 InnoDB: Send a detailed bug report to [EMAIL PROTECTED]
 mysqld got signal 11;
 This could be because you hit a bug. It is also possible that this
 binary
 or one of the libraries it was linked against is corrupt, improperly
 built,
 or misconfigured. This error can also be caused by malfunctioning
 hardware.
 We will try our best to scrape up some info that will hopefully help
 diagnose
 the problem, but since we have already crashed, something is definitely
 wrong
 and this may fail.

 key_buffer_size=16777216
 read_buffer_size=131072
 max_used_connections=4
 max_connections=100
 threads_connected=1
 It is possible that mysqld could use up to
 key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections
 = 80383 K
 bytes of memory
 Hope that's ok; if not, decrease some variables in the equation.

 thd=0x884f9d8
 Attempting backtrace. You can use the following information to find out
 where mysqld died. If you see no messages after this, something went
 terribly wrong...
 Cannot determine thread, fp=0xbe3faf68, backtrace may not be correct.
 Stack range sanity check OK, backtrace follows:
 0x80d9a90
 0x40039a24
 0x82ccda7
 0x82a0809
 0x82a0c55
 0x82937b5
 0x82c5e24
 0x82c50e6
 0x82730d3
 0x828d7f5
 0x8284dc0
 0x8286e3f
 0x821c398
 0x813b40e
 0x8140e6e
 0x8143631
 0x80e51cb
 0x80e7fba
 0x80e3483
 0x80e2edd
 0x80e26ce
 0x40036e17
 0x40191dda
 New value of fp=(nil) failed sanity check, terminating stack trace!
 Please read http://www.mysql.com/doc/en/Using_stack_trace.html and
 follow instructions on how to resolve the stack trace. Resolved
 stack trace is much more helpful in diagnosing the problem, so please do
 resolve it


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




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



Bug Report

2003-08-22 Thread Nils Wisiol
hi
There is a Bug in the InstallWizard Engine. If I install mysql on my winxp 
professional system WITHOUT sp1, install shield say goodbye when the setup is almost 
ready. i've tried custom and completly installation. maybe its a failied download. the 
mysql version is: mysql-4.0.14b-win.zip
cya


Re: Bug Report

2003-08-22 Thread Jakob Dölling
Nils Wisiol wrote:
 
 hi
 There is a Bug in the InstallWizard Engine. If I install mysql on my winxp 
 professional system WITHOUT sp1, install shield say goodbye when the setup is almost 
 ready. i've tried custom and completly installation. maybe its a failied download. 
 the mysql version is: mysql-4.0.14b-win.zip

Are you allowed to patch the box to SP1a? I am running XP SP1a with MDAC
2.7 latest fix. Should work. On the MySQL download site there was a note
not use tools like GetRight (before the GeoIP days). Did you try to reget
that file? Try to download it into a different dir or delete the possibly
corrupted archive first.

HTH,

Jakob Doelling
^-- 
To Unix or not to Unix. That is the question whether 'tis nobler in the
mind to suffer slings and arrows of vast documentation or to take arms
against a sea of buggy OS and by raping the support lines end then?
;

Contact:
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
 \/Jakob Dölling \/EMail: mailto:[EMAIL PROTECTED]/
 Treuerzipfel 13   ICQ #: 47326203 
 /\D-38678 Clausthal /\SMS #: +49-82668-8918663/\
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 /\Webmaster of http://www.bank-ic.de/ /\
 \/\/

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



Bug report: LIMIT of 1000 rows returned on SELECT (2nd try)

2003-06-06 Thread Johnson, David C
From: [EMAIL PROTECTED]
To:   [EMAIL PROTECTED]
Subject: LIMIT of 1000 rows returned on SELECT (2nd try)

Description:
When doing a query on a table with more than 1000 rows, 
the SELECT * query returns only the first 1000 rows.

How-To-Repeat:
I tried to attach data for the shop table in your Tutorial which 
demonstrates the problem, but got the following reply from you:

Hi. This is the qmail-send program at lists.mysql.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

[EMAIL PROTECTED]:
ezmlm-reject: fatal: Sorry, I don't accept messages larger than 3 bytes
(#5.2.3)

[EMAIL PROTECTED]:

 So what I have done this time is attached the AWK program which
 generated the data.

Fix:
Work-around:add a LIMIT -1 to the SELECT query

Long-term fix:  add words in section 6.4.1 of the manual which:
1. describe the 1000 line limit
2. describe how to use the LIMIT -1 option

Synopsis:   LIMIT of 1000 rows returned on SELECT
Submitter-Id:   none
Originator: [EMAIL PROTECTED]
Organization:   eds
MySQL support:  none
Severity:   non-critical
Priority:   low
Category:   mysql manual
Class:  doc-bug
Release:mysql-3.23.38

Exectutable:   mysqld
Environment:   PC
System:Win2000
Compiler:  VC++ 6.0
Architecture:  i



 
CREATE TABLE shop (
 article INT(4) UNSIGNED ZEROFILL DEFAULT '' NOT NULL,
 dealer  CHAR(20) DEFAULT '' NOT NULL,
 price   DOUBLE(16,2) DEFAULT '0.00' NOT NULL,
 PRIMARY KEY(article, dealer));

INSERT INTO shop VALUES
(1,'A',3.45),(1,'B',3.99),(2,'A',10.99),(3,'B',1.45),(3,'C',1.69),
(3,'D',1.25),(4,'D',19.95);

LOAD DATA LOCAL INFILE nameoffilebelow.txt INTO SHOP;

SELECT * FROM SHOP;# demonstrates limit of 1000 rows
SELECT * FROM SHOP LIMIT -1;   # demonstrates work-around



# genshop.awk
# generate random data for 1500 articles in the dummy MySQL 
# tutorial db table called shop
BEGIN {  
min_article = 200
max_article = 1700

min_data_value = 0.50
max_data_value = 999.50

len_dealer_name = 5

for (a=min_article; a = max_article; a++) {
printf(%04d\t, a)
dealer = 
for (k=1; k = len_dealer_name; k++) {
  dealer = dealer randltr()
}
printf(%s\t%8.2f\n, dealer, randf(min_data_value, max_data_value))
}
  }
function randint (a, b) { return int((b-a+1)*rand()) + a }
function randf (a, b) { return (b-a)*rand() + a }
function randltr () { 
   return substr(ABCDEFGHIJKLMNOPQRSTUVWXYZ, randint(1,26), 1)
}

[EMAIL PROTECTED]
Electronic Data Systems
Plano Solution Centre - Internal Systems
(972) 605-3931(8-837)



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



Re: Bug report: LIMIT of 1000 rows returned on SELECT (2nd try)

2003-06-06 Thread Victoria Reznichenko
Johnson, David C [EMAIL PROTECTED] wrote:
 From: [EMAIL PROTECTED]
 To:   [EMAIL PROTECTED]
 Subject: LIMIT of 1000 rows returned on SELECT (2nd try)
 
 Description:
When doing a query on a table with more than 1000 rows, 
the SELECT * query returns only the first 1000 rows.
 

Do you use SQL_SELECT_LIMIT session variable?


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com





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



Bug Report

2003-03-26 Thread Alejandro Paz
 
 

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Bug Report, timestamp columns

2003-03-26 Thread Alejandro Paz
Hi Mysql,

This is a bug report.

There are two cases, because the bug is quite old, I
detected it the first time
a year ago on a 3.23.44 with MyISAM, but I thought it
would be fixed soon, 
sorry.

This bug happens in 4.0.8 too with MyISAM tables.

Test Case 1
---
Operating System: Linux Intel, SuSE 6.3 (Kernel
2.2.13) 
Processor  : ADM K6-2 400 
System RAM : 128M
Disk Subsystem : SCSI-2 (dpt)
FIle Sytem handler : ext2

MySQL version: mysql-max-3.23.49a-linux-gnu-i686
Table Handler: Derkeley DB.

Symptom : Two colums are updated insted of one.

---the script starts here

create database prueba;
use prueba;
create table pr (a int, b timestamp, c timestamp, d
timestamp, e int) type=bdb;
insert into pr values (0, now(), now(), now(), 1);
select * from pr;
#
# Insert a delay here !!!
#
update pr set c=now();
select * from pr;

the script ends here-

the output from `mysql -t pr1.sqlsal' client is:

+--++++--+
| a| b  | c  | d  
   | e|
+--++++--+
|0 | 20030324145209 | 20030324145209 |
20030324145209 |1 |
+--++++--+
+--++++--+
| a| b  | c  | d  
   | e|
+--++++--+
|0 | 20030324145304 | 2003010110 |
20030324145209 |1 |
+--++++--+

As you can see the colum `b' is updated, too.
Note, you have to insert a delay of almost 1 second
between the first select
and the update, because the column `b' takes the
current time!.

Only happens with timestamp columns not with datetime
ones.

Test Case 2
---
Operating System: Linux Intel, RedHat 7.3 6.3 (Kernel
2.4.18) 
Processor  : ADM K6-2 400 
System RAM : 128M
Disk Subsystem : SCSI-2 (dpt)
FIle Sytem handler : ext2

MySQL version: mysql-standard-4.0.12-pc-linux-i686
Table Handler: InnoDB.

Symptom : Two colums are updated insted of one.

---the script starts here

create database prueba2;
use prueba2;
create table pr (a int, b timestamp, c timestamp, d
timestamp, e int) type=innodb;
insert into pr values (0, now(), now(), now(), 1);
select * from pr;
#
# Insert a delay here !!!
#
update pr set c=now();
select * from pr;

the script ends here-

the output from `mysql -t pr2.sqlsal' client is:

+--++++--+
| a| b  | c  | d  
   | e|
+--++++--+
|0 | 20030324145653 | 20030324145653 |
20030324145653 |1 |
+--++++--+
+--++++--+
| a| b  | c  | d  
   | e|
+--++++--+
|0 | 20030324145739 | 2003010111 |
20030324145653 |1 |
+--++++--+

As you can see the colum `b' is updated, too.
Note, you have to insert a delay of almost 1 second
between the first select
and the update, because the column `b' takes the
current time!.

Only happens with timestamp columns not with datetime
ones.

I hope it will help you to make MySQL better.


For further information, please don't hesitate to
contact me at:

[EMAIL PROTECTED]

Roebrto Alejandro Paz Schmidt
Republica Argentina



__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: Bug Report, timestamp columns

2003-03-26 Thread Keith C. Ivey
On 26 Mar 2003 at 9:23, Alejandro Paz wrote:

 As you can see the colum `b' is updated, too.
 Note, you have to insert a delay of almost 1 second
 between the first select
 and the update, because the column `b' takes the
 current time!.
 
 Only happens with timestamp columns not with datetime
 ones.

You seem to be surprised that b is updated.  Have you read the 
documentation for TIMESTAMP?

|  The TIMESTAMP column type provides a type that you can use to
|  automatically mark INSERT or UPDATE operations with the current
|  date and time. If you have multiple TIMESTAMP columns, only the
|  first one is updated automatically. [explanation continues]
   http://www.mysql.com/doc/en/DATETIME.html

The strange thing about your example is not the updating of b but the 
odd value assigned to c, which seems to be different from NOW(), but 
you say nothing about that.


-- 
Keith C. Ivey [EMAIL PROTECTED]
Tobacco Documents Online
http://tobaccodocuments.org
Phone 202-667-6653


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



Bug report: MySQL Embedded Server v4.0.10

2003-03-05 Thread Matt Solnit


Bug report -- MySQL Embedded Server v4.0.10, binary distribution for
Windows




Machine specs:

Compaq Presario desktop
Windows XP Professional SP1


Problem description:

There are two bugs:
The SHOW PROCESSLIST and KILL statements do not function as documented
when using the MySQL Embedded Server.

The SHOW PROCESSLIST statement returns an empty set.
The KILL statement causes an error 1094.

-
To reproduce:
-
Run the mysql-server.exe included with the MySQL binary distribution.

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.10-gamma-embedded

mysql SHOW PROCESSLIST;
Empty set (0.00 sec)

mysql KILL 1;
ERROR 1094: Unknown thread id: 1

---
My contact information:
---
Matt Solnit [EMAIL PROTECTED]



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



Bug Report: mysql-3.23.38-win

2003-03-02 Thread Keith Engelhardt
I am  attempting to get  mysql-3.23.38-win on a Windows 98 SE box. The
mysql-3.23.38-win.zip install wizard allowed me to install to D:\MYSQL

I have tweaked the my.cfg file as follows:

# Example mysql config file.
# Copy this file to c:\my.cnf to set global options
#
# One can use all long options that the program supports.
# Run the program with --help to get a list of available options

# This will be passed to all mysql clients
[client]
#password=my_password
port=3306
#socket=MySQL

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# The MySQL server
[mysqld]
port=3306
#socket=MySQL
skip-locking
default-character-set=latin1
set-variable = key_buffer=16M
set-variable = max_allowed_packet=1M
set-variable = thread_stack=128K
set-variable = flush_time=1800

# Uncomment the following row if you move the MySQL distribution to another
# location
#basedir =


[mysqldump]
quick
set-variable = max_allowed_packet=16M

[mysql]
no-auto-rehash
basedir = d:/mysql
datadir= d:/mysql/data

[mysqld]
innodb_data_file_path = ibdata:30M
innodb_data_home_dir=\mysql\data


[isamchk]
set-variable= key=16M

[client_fltk]
#help_file= c:\mysql\sql_client\MySQL.help
#client_file= c:\mysql\MySQL.options
history_length=20
database = test
queries_root= d:\mysql\queries
last_database_file= d:\mysql\lastdb
--


When mySQL is launched via D:\mysql\bin\mysqld.exe --basedir D:\mysql

I get the following:

Innobase: Assertion failure in thread 4225946759 in file
M:\mysql-3.23\innobase
os\os0file.c line 187
Innobase: we intentionally generate a memory trap.
Innobase: Send a bug report to [EMAIL PROTECTED]
030302 18:45:05  D:\MYSQL\BIN\MYSQLD.EXE: Got signal 11. Aborting!

030302 18:45:05  Aborting

InnoDB: Warning: shutting down not properly started database
030302 18:45:05  D:\MYSQL\BIN\MYSQLD.EXE: Shutdown Complete

Sincerely,

Keith E.
[EMAIL PROTECTED]



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



Re: Bug Report: mysql-3.23.38-win

2003-03-02 Thread Heikki Tuuri
Keith,

please upgrade to 3.23.55. Your MySQL version is very old.

Best regards,

Heikki Tuuri
Innobase Oy
---
InnoDB - transactions, row level locking, and foreign key support for MySQL
See http://www.innodb.com, download MySQL-Max from http://www.mysql.com

sql query

- Original Message -
From: Keith Engelhardt [EMAIL PROTECTED]
Newsgroups: mailing.database.mysql
Sent: Monday, March 03, 2003 1:52 AM
Subject: Bug Report: mysql-3.23.38-win


 I am  attempting to get  mysql-3.23.38-win on a Windows 98 SE box. The
 mysql-3.23.38-win.zip install wizard allowed me to install to D:\MYSQL

 I have tweaked the my.cfg file as follows:

 # Example mysql config file.
 # Copy this file to c:\my.cnf to set global options
 #
 # One can use all long options that the program supports.
 # Run the program with --help to get a list of available options

 # This will be passed to all mysql clients
 [client]
 #password=my_password
 port=3306
 #socket=MySQL

 # Here is entries for some specific programs
 # The following values assume you have at least 32M ram

 # The MySQL server
 [mysqld]
 port=3306
 #socket=MySQL
 skip-locking
 default-character-set=latin1
 set-variable = key_buffer=16M
 set-variable = max_allowed_packet=1M
 set-variable = thread_stack=128K
 set-variable = flush_time=1800

 # Uncomment the following row if you move the MySQL distribution to
another
 # location
 #basedir =


 [mysqldump]
 quick
 set-variable = max_allowed_packet=16M

 [mysql]
 no-auto-rehash
 basedir = d:/mysql
 datadir= d:/mysql/data

 [mysqld]
 innodb_data_file_path = ibdata:30M
 innodb_data_home_dir=\mysql\data


 [isamchk]
 set-variable= key=16M

 [client_fltk]
 #help_file= c:\mysql\sql_client\MySQL.help
 #client_file= c:\mysql\MySQL.options
 history_length=20
 database = test
 queries_root= d:\mysql\queries
 last_database_file= d:\mysql\lastdb
 --


 When mySQL is launched via D:\mysql\bin\mysqld.exe --basedir D:\mysql

 I get the following:

 Innobase: Assertion failure in thread 4225946759 in file
 M:\mysql-3.23\innobase
 os\os0file.c line 187
 Innobase: we intentionally generate a memory trap.
 Innobase: Send a bug report to [EMAIL PROTECTED]
 030302 18:45:05  D:\MYSQL\BIN\MYSQLD.EXE: Got signal 11. Aborting!

 030302 18:45:05  Aborting

 InnoDB: Warning: shutting down not properly started database
 030302 18:45:05  D:\MYSQL\BIN\MYSQLD.EXE: Shutdown Complete

 Sincerely,

 Keith E.
 [EMAIL PROTECTED]



 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



Please IGNORE my previous bug report. Script errors.

2003-02-06 Thread mwahal
Description:
Please IGNORE my previous bug report. I had another script which was
deleting the data. Stupid user error.
How-To-Repeat:

Fix:


Submitter-Id:  submitter ID
Originator:Mudit Wahal
Organization:
 
MySQL support: [none | licence | email support | extended email support ]
Synopsis:  
Severity:  
Priority:  
Category:  mysql
Class: 
Release:   mysql-4.0.1-alpha-max (Official MySQL-max binary)
Server: /usr/local/mysql/bin/mysqladmin  Ver 8.23 Distrib 4.0.1-alpha, for 
pc-linux-gnu on i686
Copyright (C) 2000 MySQL AB  MySQL Finland AB  TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version  4.0.1-alpha-max
Protocol version10
Connection  Localhost via UNIX socket
UNIX socket /tmp/mysql.sock
Uptime: 3 days 36 min 19 sec

Threads: 1  Questions: 1847948  Slow queries: 0  Opens: 252379  Flush tables: 20  Open 
tables: 42  Queries per second avg: 7.070
Environment:

System: Linux bp6 2.4.20 #8 Wed Jan 29 09:50:06 PST 2003 i686 unknown
Architecture: i686

Some paths:  /home/wmudit/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc 
/usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 2731 (Red Hat Linux 7.1 2.96-98)
Compilation info: CC='gcc'  CFLAGS='-O3 -mpentium '  CXX='gcc'  CXXFLAGS='-O3 
-mpentium  -felide-constructors'  LDFLAGS='-static'
LIBC: 
lrwxrwxrwx1 root root   13 Jan 24 18:13 /lib/libc.so.6 - libc-2.2.4.so
-rwxr-xr-x1 root root  1282588 Sep  4  2001 /lib/libc-2.2.4.so
-rw-r--r--1 root root 27304836 Sep  4  2001 /usr/lib/libc.a
-rw-r--r--1 root root  178 Sep  4  2001 /usr/lib/libc.so
Configure command: ./configure  --prefix=/usr/local/mysql '--with-comment=Official 
MySQL-max binary' --with-extra-charsets=complex --with-server-suffix=-max 
--enable-thread-safe-client --enable-assembler --with-mysqld-ldflags=-all-static 
--with-client-ldflags=-all-static --disable-shared --with-berkeley-db --with-innodb


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug Report: Restrictions on index naming

2003-01-14 Thread Daniel Kasak
Hi all,

I recently had to restore from a backup and discovered that mysql didn't 
want to re-create a table which had the minus symbol (-) in it, eg

DROP TABLE IF EXISTS Postcodes;
CREATE TABLE Postcodes (
  DanPK mediumint(8) unsigned NOT NULL auto_increment,
  MyStamp timestamp(14) NOT NULL,
  Postcode smallint(2) NOT NULL default '0',
  Location varchar(100) default NULL,
  State char(3) default NULL,
  RegionID mediumint(8) unsigned NOT NULL default '0',
  PRIMARY KEY  (DanPK),
  UNIQUE KEY IDX_Postcode-Location (Postcode,Location)
) TYPE=MyISAM;

I had added the index with MySQLCC (I think) and the database had been 
working fine as far as I could tell (minus the crash this morning). The 
table def is from mysqldump --opt, which I use each night, in 
combination with the --log-update option to assist in disaster recovery.

When I tried to restore from the backup (mysqldump output) it gave me a 
syntax error around the -Location bit.

But it _did_ let me create the index like this before. Thinking about it 
more, I probably shouldn't have used a minus. I can see why that would 
be reserved. Any chance of enforcing that in alter table commands (which 
I would have used to get the index there), or is it considered too 
expensive to do these kinds of checks?


--
Daniel Kasak
IT Developer
* NUS Consulting Group*
Level 18, 168 Walker Street
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: www.nusconsulting.com


-
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



Re: Bug Report: Restrictions on index naming

2003-01-14 Thread Jeremy Zawodny
On Wed, Jan 15, 2003 at 11:44:24AM +1100, Daniel Kasak wrote:
 Hi all,
 
 I recently had to restore from a backup and discovered that mysql didn't 
 want to re-create a table which had the minus symbol (-) in it, eg

Yeah, you need to quote such names now.

Upgrade your version of mysqldump and the problem will go away, I
believe.
-- 
Jeremy D. Zawodny |  Perl, Web, MySQL, Linux Magazine, Yahoo!
[EMAIL PROTECTED]  |  http://jeremy.zawodny.com/

MySQL 3.23.51: up 30 days, processed 1,013,700,735 queries (379/sec. avg)

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Bug Report: Restrictions on index naming

2003-01-14 Thread Jennifer Goodie
MySQLCC probably uses the backtick (`) to escape stuff so it issued
UNIQUE KEY `IDX_Postcode-Location` (Postcode,Location)
and not
UNIQUE KEY IDX_Postcode-Location (Postcode,Location)

It has been mentioned on the list a few times in the last couple months that
if you escape strings containing hyphens with a backtick they work.  That
doesn't mean it is a good idea to use them.

You can try running your dump with the quote-names flag, maybe.  I haven't
tried it to see what the output is.  Run mysqldump's help to see what all
the flags are and what they mean.

-Original Message-

Hi all,

I recently had to restore from a backup and discovered that mysql didn't
want to re-create a table which had the minus symbol (-) in it, eg

DROP TABLE IF EXISTS Postcodes;
CREATE TABLE Postcodes (
   DanPK mediumint(8) unsigned NOT NULL auto_increment,
   MyStamp timestamp(14) NOT NULL,
   Postcode smallint(2) NOT NULL default '0',
   Location varchar(100) default NULL,
   State char(3) default NULL,
   RegionID mediumint(8) unsigned NOT NULL default '0',
   PRIMARY KEY  (DanPK),
   UNIQUE KEY IDX_Postcode-Location (Postcode,Location)
) TYPE=MyISAM;

I had added the index with MySQLCC (I think) and the database had been
working fine as far as I could tell (minus the crash this morning). The
table def is from mysqldump --opt, which I use each night, in
combination with the --log-update option to assist in disaster recovery.

When I tried to restore from the backup (mysqldump output) it gave me a
syntax error around the -Location bit.

But it _did_ let me create the index like this before. Thinking about it
more, I probably shouldn't have used a minus. I can see why that would
be reserved. Any chance of enforcing that in alter table commands (which
I would have used to get the index there), or is it considered too
expensive to do these kinds of checks?





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




MySQL v4.0.8 bug report

2003-01-13 Thread Markus Welsch

SEND-PR: -*- send-pr -*-
SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as
SEND-PR: will all comments (text enclosed in `' and `').
SEND-PR:
From: root
To: [EMAIL PROTECTED]
Subject: [50 character or so descriptive subject here (for reference)]

 Description:
 precise description of the problem (multiple lines)
 How-To-Repeat:
 code/input/activities to reproduce the problem (multiple lines)
 Fix:
 how to correct or work around the problem, if known (multiple lines)

 Submitter-Id:  submitter ID
 Originator:root
 Organization:
SEND-PR: -*- send-pr -*-
SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as
SEND-PR: will all comments (text enclosed in `' and `').
SEND-PR:
From: root
To: [EMAIL PROTECTED]
Subject: [50 character or so descriptive subject here (for reference)]

 Description:
 precise description of the problem (multiple lines)
 How-To-Repeat:
 code/input/activities to reproduce the problem (multiple lines)
 Fix:
 how to correct or work around the problem, if known (multiple lines)

 Submitter-Id:  submitter ID
 Originator:root
 Organization:
  organization of PR author (multiple lines)
 MySQL support: [none | licence | email support | extended email support ]
 Synopsis:  synopsis of the problem (one line)
 Severity:  [ non-critical | serious | critical ] (one line)
 Priority:  [ low | medium | high ] (one line)
 Category:  mysql
 Class: [ sw-bug | doc-bug | change-request | support ] (one line)
 Release:   mysql-4.0.8-gamma-standard (Official MySQL-standard binary)

 C compiler:2.95.3
 C++ compiler:  2.95.3
 Environment:
 machine, os, target, libraries (multiple lines)
System: Linux testserver.suk.net 2.4.20-grsec #2 Mon Jan 13 14:27:39 CET 2003
i686 i686 i386 GNU/Linux
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-share
d --enable-threads=posix --disable-checking --host=i386-redhat-linux
--with-system-zlib --enable-__cxa_atexi
t
Thread model: posix
SEND-PR: -*- send-pr -*-
SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as
SEND-PR: will all comments (text enclosed in `' and `').
SEND-PR:
From: root
To: [EMAIL PROTECTED]
Subject: [50 character or so descriptive subject here (for reference)]

 Description:
 I've installed MySQL v4.0.8 chrooted like described in detail
 http://www.linuxquestions.org/questions/showthread.php?threadid=34338

 Operating System is RedHat Linux v8.0 including ALL current available
patches!

 As example I used the my-medium.cnf example configuration file ... and
changed the path variables concluding to the variables ... the mysql root user
did not have a passwort currently. The error occured right after I ran FLUSH
PRIVILEGES (from the console) ... Kernel is v2.4.20 with the grsecurity patchset.
 How-To-Repeat:
 mysql -p
 use mysql;
 useradd ...
 flush privileges;
 (then the crash occurs right after flush privileges)
 Fix:
 how to correct or work around the problem, if known (multiple lines)

 Submitter-Id:  submitter ID
 Originator:root
 Organization:
  organization of PR author (multiple lines)
 MySQL support: [none | licence | email support | extended email support ]
 Synopsis:  synopsis of the problem (one line)
 Severity:  [ non-critical | serious | critical ] (one line)
 Priority:  [ low | medium | high ] (one line)
 Category:  mysql
 Class: [ sw-bug | doc-bug | change-request | support ] (one line)
 Release:   mysql-4.0.8-gamma-standard (Official MySQL-standard binary)

 C compiler:2.95.3
 C++ compiler:  2.95.3
 Environment:
 machine, os, target, libraries (multiple lines)
System: Linux testserver.suk.net 2.4.20-grsec #2 Mon Jan 13 14:27:39 CET 2003
i686 i686 i386 GNU/Linux
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Compilation info: CC='gcc'  CFLAGS='-O2 -mcpu=pentiumpro'  CXX='gcc'
CXXFLAGS='-O2 -mcpu=pentiumpro -felide-constructors'  LDFLAGS=''  ASFLAGS=''
LIBC:
lrwxrwxrwx1 root root   14 Jan 10 15:50 /lib/libc.so.6 -
libc-2.2.93.so
-rwxr-xr-x1 root root  1235468 Sep  6 01:12 /lib/libc-2.2.93.so
-rw-r--r--1 root root  2233342 Sep  6 00:59 /usr/lib/libc.a
-rw-r--r--1 root root  178 Sep  6 00:50 

Bug Report: Signal 11]

2003-01-10 Thread nick
Description:
I keep recieving signal 11 and stack dumps. There are no 
connections going into mysql and no databases besides 
mysql and test. Only user in there is root and the other
 defualt ' ' user.
How-To-Repeat:
Simply started up the server and let it sit there for a
min. or two. It will then proceed to recieve signal 11's
restart, wait a few, signal 11, restart
Fix:

Submitter-Id:  submitter ID
Originator:Nick Stuart
MySQL support: none
Synopsis:  Server keeps getting signal 11
Severity:  critical
Priority:  medium
Category:  mysql
Class: sw-bug
Release:   mysql-4.0.8-gamma-standard (Official MySQL-standard binary)

C compiler:2.95.3
C++ compiler:  2.95.3
Environment:
Pentium 2 400mhz 256m ram
System: Linux vort112.inc.vortechnics.com 2.4.19-16mdk #1 Fri Sep 20 18:15:05 CEST 
2002 i586 unknown unknown GNU/Linux
Architecture: i586

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib 
--mandir=/usr/share/man --infodir=/usr/share/info --enable-shared 
--enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit 
--enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu 
--with-system-zlib
Thread model: posix
gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
Compilation info: CC='gcc'  CFLAGS='-O2 -mcpu=pentiumpro'  CXX='gcc'  CXXFLAGS='-O2 
-mcpu=pentiumpro -felide-constructors'  LDFLAGS=''  ASFLAGS=''
LIBC: 
lrwxr-xr-x1 root root   13 Jan  9 15:31 /lib/libc.so.6 - libc-2.2.5.so
-rwxr-xr-x1 root root  1147848 Aug 19 06:17 /lib/libc-2.2.5.so
-rw-r--r--1 root root  178 Aug 19 06:08 /usr/lib/libc.so
Configure command: ./configure '--prefix=/usr/local/mysql' '--with-comment=Official 
MySQL-standard binary' '--with-extra-charsets=complex' 
'--with-server-suffix=-standard' '--enable-thread-safe-client' '--enable-local-infile' 
'--enable-assembler' '--disable-shared' '--with-client-ldflags=-all-static' 
'--with-mysqld-ldflags=-all-static' '--with-innodb' 'CFLAGS=-O2 -mcpu=pentiumpro' 
'CXXFLAGS=-O2 -mcpu=pentiumpro -felide-constructors' 'CXX=gcc'


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




bug report

2003-01-07 Thread Adam Gillespie
Our db server crashed and this was in the log. One strange thing was that when I went 
to restart, the error log gave me this line:
/usr/local/mysql/bin/mysqld: unrecognized option `--innodb_log_files_in_group=2'
We have not touched /etc/my.cnf and have restarted the server many times. I had to 
change it to:
set-variable=innodb_log_files_in_group=2 to get it to restart (a suggestion by Heikki 
Tuuri)




030107  4:05:57  InnoDB: Assertion failure in thread 11497484 in file btr0sea.c line 
456
InnoDB: We intentionally generate a memory trap.
InnoDB: Send a detailed bug report to [EMAIL PROTECTED]
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked agaist is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail

key_buffer_size=134213632
record_buffer=2093056
sort_buffer=2097144
max_used_connections=65
max_connections=300
threads_connected=2
It is possible that mysqld could use up to
key_buffer_size + (record_buffer + sort_buffer)*max_connections = 1358665 K
bytes of memory
Hope that's ok, if not, decrease some variables in the equation

Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
Stack range sanity check OK, backtrace follows:
0x806bdc5
0x8247a78
0x815450c
0x813fe5e
0x811586b
0x8118704
0x80b6802
0x80b68d0
0x809142d
0x8090b89
0x8090843
0x8089688
0x8072320
0x80755a8
0x80714c4
0x8070997
Stack trace seems successful - bottom reached
Please read http://www.mysql.com/doc/U/s/Using_stack_trace.html and follow 
instructions on how to resolve the stack trace. Res
olved
stack trace is much more helpful in diagnosing the problem, so please do
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd-query at 0xa9935960  is invalid pointer
thd-thread_id=4307634
Successfully dumped variables, if you ran with --log, take a look at the
details of what thread 4307634 did to cause the crash.  In some cases of really
bad corruption, the values shown above may be invalid

The manual page at http://www.mysql.com/doc/C/r/Crashing.html contains
information that should help you find out what is causing the crash

Number of processes running now: 0
030107 04:05:58  mysqld restarted
/usr/local/mysql/bin/mysqld: unrecognized option `--innodb_log_files_in_group=2'
/usr/local/mysql/bin/mysqld  Ver 3.23.53a-max for pc-linux-gnu on i686
Copyright (C) 2000 MySQL AB, by Monty and others
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Starts the MySQL server

Usage: /usr/local/mysql/bin/mysqld [OPTIONS]

  --ansiUse ANSI SQL syntax instead of MySQL syntax
  -b, --basedir=pathPath to installation directory. All paths are
usually resolved relative to this...

the rest of the options follow

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: bug report

2003-01-07 Thread Heikki Tuuri
Adam,

in your earlier message you quoted 3 log files, but below in the printout it
says 2 log files. Best to do

SHOW VARIABLES;

and check from the current directory innodb_log_group_home_dir how many
ib_logfiles there really are.


030107 06:42:58  mysqld started
/usr/local/mysql/bin/mysqld: unrecognized option
`--innodb_log_files_in_group=3'


 /usr/local/mysql/bin/mysqld: unrecognized option `--innodb log files in
group=2'
 We have not touched /etc/my.cnf and have restarted the server many times.
I had
 to change it to:
 set-variable=innodb log files in group=2 to get it to restart (a
suggestion by Heikki
 Tuuri)

If I try the wrong syntax, I get:

heikki@hundin:~/mysql-max-3.23.53a-pc-linux-gnu-i686/bin mysqld
mysqld: unrecognized option `--innodb_log_files_in_group=3'
mysqld  Ver 3.23.53a-max for pc-linux-gnu on i686

I resolved the stack dump:

0x806bdc5 handle_segfault__Fi + 425
0x8247a78 pthread_sighandler + 184
0x815450c btr_search_info_update_slow + 1072
0x813fe5e btr_cur_search_to_nth_level + 3178
0x811586b row_sel_get_clust_rec_for_mysql + 99
0x8118704 row_search_for_mysql + 6836
0x80b6802 general_fetch__11ha_innobasePcUiUi + 322
0x80b68d0 index_next_same__11ha_innobasePcPCcUi + 40
0x809142d join_read_next__FP14st_read_record + 53
0x8090b89 sub_select__FP4JOINP13st_join_tableb + 337
0x8090843 do_select__FP4JOINPt4List1Z4ItemP8st_tableP9Procedure + 407
0x8089688
mysql_select__FP3THDP13st_table_listRt4List1Z4ItemP4ItemP8st_orderT4T3
T4UiP13select_result + 5592
0x8072320 mysql_execute_command__Fv + 812
0x80755a8 mysql_parse__FP3THDPcUi + 72
0x80714c4 do_command__FP3THD + 1316
0x8070997 handle_one_connection__FPv + 655

It is possible that the bug is one which is fixed in the upcoming 3.23.55
and in 4.0.8. It could also be memory corruption. What is your Linux kernel
version?

It is best that you run CHECK TABLE on some tables.


MySQL/InnoDB-3.23.55, February x, 2003

...

  a.. Fixed a bug: an assertion in btr0sea.c, in function
btr_search_info_update_slow could theoretically fail in a race of 3 threads.


Regards,

Heikki
Innobase Oy
sql query



Subject: bug report
From: Adam Gillespie
Date: Tue, 7 Jan 2003 09:29:59 -0800




Our db server crashed and this was in the log. One strange thing was that
when I
went to restart, the error log gave me this line:
/usr/local/mysql/bin/mysqld: unrecognized option `--innodb log files in
group=2'
We have not touched /etc/my.cnf and have restarted the server many times. I
had
to change it to:
set-variable=innodb log files in group=2 to get it to restart (a suggestion
by Heikki
Tuuri)




030107  4:05:57  InnoDB: Assertion failure in thread 11497484 in file
btr0sea.c
line 456
InnoDB: We intentionally generate a memory trap.
InnoDB: Send a detailed bug report to [EMAIL PROTECTED]
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked agaist is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose
the problem, but since we have already crashed, something is definitely
wrong
and this may fail

key buffer size=134213632
record buffer=2093056
sort buffer=2097144
max used connections=65
max connections=300
threads connected=2
It is possible that mysqld could use up to
key buffer size + (record buffer + sort buffer)*max connections = 1358665 K
bytes of memory
Hope that's ok, if not, decrease some variables in the equation

Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
Stack range sanity check OK, backtrace follows:
0x806bdc5
0x8247a78
0x815450c
0x813fe5e
0x811586b
0x8118704
0x80b6802
0x80b68d0
0x809142d
0x8090b89
0x8090843
0x8089688
0x8072320
0x80755a8
0x80714c4
0x8070997
Stack trace seems successful - bottom reached
Please read http://www.mysql.com/doc/U/s/Using stack trace.html and follow
instructions
on how to resolve the stack trace. Res
olved
stack trace is much more helpful in diagnosing the problem, so please do
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd-query at 0xa9935960  is invalid pointer
thd-thread id=4307634
Successfully dumped variables, if you ran with --log, take a look at the
details of what thread 4307634 did to cause the crash.  In some cases of
really
bad corruption, the values shown above may be invalid

The manual page at http://www.mysql.com/doc/C/r/Crashing.html contains
information that should help you find out what is causing the crash

Number of processes running now: 0
030107 04:05:58  mysqld restarted
/usr/local/mysql/bin/mysqld: unrecognized option `--innodb log files in
group=2'
/usr/local/mysql/bin/mysqld  Ver 3.23.53a-max for pc-linux-gnu on i686
Copyright (C) 2000 MySQL AB

Re: Bug report: UNIQUE KEY and DESCRIBE TABLE

2002-12-29 Thread Heikki Tuuri
Matt,

I am forwarding this to MySQL developers.

 Problem description:
 
 MySQL does not return key information about any column after the first
 in a unique multi-column key.  Also, the MUL flag seems to indicate
 that the key is non-unique, when in fact it is.

This output format of DESCRIBE TABLE has been discussed before. It is not
easily understandable, though the above is what Monty intended it to be.

I recommend using

SHOW CREATE TABLE tablename;

to look at a table structure. It contains the foreign key definitions and
all. DESCRIBE TABLE does not contain all information.

Regards,

Heikki

- Original Message -
From: Matt Solnit [EMAIL PROTECTED]
To: Heikki Tuuri [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: Henry Bequet [EMAIL PROTECTED]
Sent: Saturday, December 28, 2002 2:44 AM
Subject: Bug report: UNIQUE KEY and DESCRIBE TABLE


===
Bug report -- MySQL v4.06, binary distribution
===

--
Machine specs:
--
Compaq Presario desktop
512 MB RAM
Windows XP Professional SP1


Problem description:

MySQL does not return key information about any column after the first
in a unique multi-column key.  Also, the MUL flag seems to indicate
that the key is non-unique, when in fact it is.

There is an equivalent symptom in the MySQL C API.  In the flags field
of the MYSQL_FIELD structure returned by mysql_fetch_field(), the
MULTIPLE_KEY_FLAG will only be present in the first column.

-
Test script:
-
mysqlUSE test
mysqlCREATE TABLE mytable (a INT NOT NULL, b INT NOT NULL, c INT NOT
NULL, d INT NOT NULL, PRIMARY KEY (a), UNIQUE KEY (b, c));
mysqlDESCRIBE TABLE mytable;

--
Results:
--
+---+-+--+-+-+---+
| Field | Type| Null | Key | Default | Extra |
+---+-+--+-+-+---+
| a | int(11) |  | PRI | 0   |   |
| b | int(11) |  | MUL | 0   |   |
| c | int(11) |  | | 0   |   |
| d | int(11) |  | | 0   |   |
+---+-+--+-+-+---+


C test program:


/***
Expected output (according to manual section 8.4.1):

Column `a`: primary=1, unique=0, multiple=0
Column `b`: primary=0, unique=1, multiple=0
Column `c`: primary=0, unique=1, multiple=0
Column `d`: primary=0, unique=0, multiple=0

Actual output:

Column `a`: primary=1, unique=0, multiple=0
Column `b`: primary=0, unique=0, multiple=1
Column `c`: primary=0, unique=0, multiple=0
Column `d`: primary=0, unique=0, multiple=0
***/

#include stdafx.h
#include winsock.h
#include mysql.h
#include stdarg.h
#include stdio.h
#include stdlib.h

MYSQL *db_connect(const char *dbname);
void db_disconnect(MYSQL *db);
void db_do_query(MYSQL *db, const char *query);

const char *server_groups[] = {
  test_libmysqld_SERVER, embedded, server, NULL
};

int main(int argc, char* argv[])
{
  MYSQL *one;

  mysql_server_init(argc, argv, (char **)server_groups);
  one = db_connect(test);

  const char* query = SELECT * FROM mytable;
  mysql_query(one, query);
  MYSQL_RES* res = mysql_store_result(one);
  int numFields = mysql_num_fields(res);
  for (int i = 0; i  numFields; i++)
  {
MYSQL_FIELD* fld = mysql_fetch_field(res);
char* name = strdup(fld-name);
bool isPrimary = ((fld-flags  PRI_KEY_FLAG)  0);
bool isUnique = ((fld-flags  UNIQUE_KEY_FLAG)  0);
bool isMulti = ((fld-flags  MULTIPLE_KEY_FLAG)  0);
printf(column `%s`: primary=%d, unique=%d, multiple=%d\n, name,
isPrimary, isUnique, isMulti);
  }

  mysql_close(one);
  mysql_server_end();

  return 0;
}

static void
die(MYSQL *db, char *fmt, ...)
{
  va_list ap;
  va_start(ap, fmt);
  vfprintf(stderr, fmt, ap);
  va_end(ap);
  (void)putc('\n', stderr);
  if (db)
db_disconnect(db);
  exit(EXIT_FAILURE);
}

MYSQL *
db_connect(const char *dbname)
{
  MYSQL *db = mysql_init(NULL);
  if (!db)
die(db, mysql_init failed: no memory);
  /*
   * Notice that the client and server use separate group names.
   * This is critical, because the server will not accept the
   * client's options, and vice versa.
   */
  mysql_options(db, MYSQL_READ_DEFAULT_GROUP, test_libmysqld_CLIENT);
  if (!mysql_real_connect(db, NULL, NULL, NULL, dbname, 0, NULL, 0))
die(db, mysql_real_connect failed: %s, mysql_error(db));

  return db;
}

void
db_disconnect(MYSQL *db)
{
  mysql_close(db);
}

---
My contact information:
---
Matt Solnit [EMAIL PROTECTED]



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e

Bug report: UNIQUE KEY and DESCRIBE TABLE

2002-12-27 Thread Matt Solnit
===
Bug report -- MySQL v4.06, binary distribution
===

--
Machine specs:
--
Compaq Presario desktop
512 MB RAM
Windows XP Professional SP1


Problem description:

MySQL does not return key information about any column after the first
in a unique multi-column key.  Also, the MUL flag seems to indicate
that the key is non-unique, when in fact it is.

There is an equivalent symptom in the MySQL C API.  In the flags field
of the MYSQL_FIELD structure returned by mysql_fetch_field(), the
MULTIPLE_KEY_FLAG will only be present in the first column. 

-
Test script:
-
mysqlUSE test
mysqlCREATE TABLE mytable (a INT NOT NULL, b INT NOT NULL, c INT NOT
NULL, d INT NOT NULL, PRIMARY KEY (a), UNIQUE KEY (b, c));
mysqlDESCRIBE TABLE mytable;

--
Results:
--
+---+-+--+-+-+---+
| Field | Type| Null | Key | Default | Extra |
+---+-+--+-+-+---+
| a | int(11) |  | PRI | 0   |   |
| b | int(11) |  | MUL | 0   |   |
| c | int(11) |  | | 0   |   |
| d | int(11) |  | | 0   |   |
+---+-+--+-+-+---+


C test program:


/***
Expected output (according to manual section 8.4.1):

Column `a`: primary=1, unique=0, multiple=0
Column `b`: primary=0, unique=1, multiple=0
Column `c`: primary=0, unique=1, multiple=0
Column `d`: primary=0, unique=0, multiple=0

Actual output:

Column `a`: primary=1, unique=0, multiple=0
Column `b`: primary=0, unique=0, multiple=1
Column `c`: primary=0, unique=0, multiple=0
Column `d`: primary=0, unique=0, multiple=0
***/

#include stdafx.h
#include winsock.h
#include mysql.h
#include stdarg.h
#include stdio.h
#include stdlib.h

MYSQL *db_connect(const char *dbname);
void db_disconnect(MYSQL *db);
void db_do_query(MYSQL *db, const char *query);

const char *server_groups[] = {
  test_libmysqld_SERVER, embedded, server, NULL
};

int main(int argc, char* argv[])
{
  MYSQL *one;

  mysql_server_init(argc, argv, (char **)server_groups);
  one = db_connect(test);

  const char* query = SELECT * FROM mytable;
  mysql_query(one, query);
  MYSQL_RES* res = mysql_store_result(one);
  int numFields = mysql_num_fields(res);
  for (int i = 0; i  numFields; i++)
  {
MYSQL_FIELD* fld = mysql_fetch_field(res);
char* name = strdup(fld-name);
bool isPrimary = ((fld-flags  PRI_KEY_FLAG)  0);
bool isUnique = ((fld-flags  UNIQUE_KEY_FLAG)  0);
bool isMulti = ((fld-flags  MULTIPLE_KEY_FLAG)  0);
printf(column `%s`: primary=%d, unique=%d, multiple=%d\n, name,
isPrimary, isUnique, isMulti);
  }

  mysql_close(one);
  mysql_server_end();

  return 0;
}

static void
die(MYSQL *db, char *fmt, ...)
{
  va_list ap;
  va_start(ap, fmt);
  vfprintf(stderr, fmt, ap);
  va_end(ap);
  (void)putc('\n', stderr);
  if (db)
db_disconnect(db);
  exit(EXIT_FAILURE);
}

MYSQL *
db_connect(const char *dbname)
{
  MYSQL *db = mysql_init(NULL);
  if (!db)
die(db, mysql_init failed: no memory);
  /*
   * Notice that the client and server use separate group names.
   * This is critical, because the server will not accept the
   * client's options, and vice versa.
   */
  mysql_options(db, MYSQL_READ_DEFAULT_GROUP, test_libmysqld_CLIENT);
  if (!mysql_real_connect(db, NULL, NULL, NULL, dbname, 0, NULL, 0))
die(db, mysql_real_connect failed: %s, mysql_error(db));

  return db;
}

void
db_disconnect(MYSQL *db)
{
  mysql_close(db);
} 

---
My contact information:
---
Matt Solnit [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Bug report: UNIQUE KEY and DESCRIBE TABLE

2002-12-27 Thread Paul DuBois
At 16:44 -0800 12/27/02, Matt Solnit wrote:

===
Bug report -- MySQL v4.06, binary distribution
===

--
Machine specs:
--
Compaq Presario desktop
512 MB RAM
Windows XP Professional SP1


Problem description:

MySQL does not return key information about any column after the first
in a unique multi-column key.  Also, the MUL flag seems to indicate
that the key is non-unique, when in fact it is.


1) Use SHOW KEYS if you want better information about the indexes on
a table.  DESCRIBE (aka SHOW COLUMNS) reports some information about
indexes, but that is not its primary purpose.

2) UNIQUE indexes can in fact hold non-unique values if any of the indexed
columns can be NULL.  (A UNIQUE index is allowed to store multiple NULL
values.)  But you are correct that the index in your particular table
can *not* be non-unique, because neither of the indexed columns can be
NULL.  (A further manifestation of this problem is that UNIQUE indexes
in BDB tables can *never* be non-unique, because BDB allows only one NULL
in a UNIQUE index, in contrast to other table types.)



There is an equivalent symptom in the MySQL C API.  In the flags field
of the MYSQL_FIELD structure returned by mysql_fetch_field(), the
MULTIPLE_KEY_FLAG will only be present in the first column.

-
Test script:
-
mysqlUSE test
mysqlCREATE TABLE mytable (a INT NOT NULL, b INT NOT NULL, c INT NOT
NULL, d INT NOT NULL, PRIMARY KEY (a), UNIQUE KEY (b, c));
mysqlDESCRIBE TABLE mytable;

--
Results:
--
+---+-+--+-+-+---+
| Field | Type| Null | Key | Default | Extra |
+---+-+--+-+-+---+
| a | int(11) |  | PRI | 0   |   |
| b | int(11) |  | MUL | 0   |   |
| c | int(11) |  | | 0   |   |
| d | int(11) |  | | 0   |   |
+---+-+--+-+-+---+



-
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




BUG REPORT MYSQL WITH NSS_LDAP

2002-12-24 Thread Francisco Lozano
Hello.

I'd like to report a bug I've found with MySQL. MySQL, as shipped with Mandrake 
9, gets hanged when starting it with safe_mysqld or service mysql start 
or /etc/rc.d/init.d/mysql ALWAYS WHEN NSS_LDAP IS ENABLED! I'd like to report 
this so that you can try if it's a bug from mysql or mandrake9 by trying it on 
other systems... 

I guess it's a mysql bug as nss_ldap is very standard and used worldwide.

Thank you

-- 
Francisco A. Lozano
Factory Web - I+D
Tlf: 902 365 055
http://www.factoryw.com
Error 152. Windows no encontrado. ¿(A)legrarse, (B)ailar, (F)iesta?

-
Servicios de Correo de Factory Web
http://www.factoryw.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug Report

2002-12-21 Thread Christopher Stephan
Hello,
following problem occurs using MySql.
Can you help me with that Error?

Betriebssystem: [ SuSE Linux 7.3 (i386) ]
MySql Verision: MySql Max 4.0.6
OMEGA.ERR:
021221 14:24:21  InnoDB: Assertion failure in thread 16401 in file
mem0pool.c line 491
InnoDB: We intentionally generate a memory trap.
InnoDB: Send a detailed bug report to [EMAIL PROTECTED]
InnoDB: Thread 10251 stopped in file row0mysql.c line 92
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose
the problem, but since we have already crashed, something is definitely
wrong
and this may fail.

key_buffer_size=16777216
read_buffer_size=131072
sort_buffer_size=524280
max_used_connections=6
max_connections=100
threads_connected=7
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections =
80383 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=0x87cea58
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
Cannot determine thread, fp=0xbd9fe508, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x80da95a
0x40040bc4
0x830e0e5
0x830cbd2
0x8222d0d
0x822784b
0x813ce03
0x813f9cf
0x810cb65
0x8106b39
0x81067e3
0x80ff7b0
0x810c099
0x80e69c6
0x80e8908
0x80e4123
0x80e9df2
0x80e32ff
0x4003df37
0x40199baa
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read http://www.mysql.com/doc/U/s/Using_stack_trace.html and follow
instructions on how to resolve the stack trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd-query at 0x87db350 = INSERT INTO xselected1 ( issueid, accesskey )
SELECT xissue.issueid, '1040477060015' FROM  xissue INNER JOIN xstatus ON
xissue.attributevalue = xstatus.statusid WHERE (((xissue.projectID)=26) AND
(xissue.deleted  'on') AND ((xissue.attributeid=128) And (
((xstatus.statusid)45) And  ((xstatus.statusid)46) And
((xstatus.statusid)42) And  ((xstatus.statusid)42) And
((xstatus.statusid)43) And  ((xstatus.statusid)44) And
((xstatus.statusid)42) And  ((xstatus.statusid)42) And
((xstatus.statusid)42) And  ((xstatus.statusid)42) And
((xstatus.statusid)46) And  ((xstatus.statusid)42) And
((xstatus.statusid)42) And  ((xstatus.statusid)42) And
((xstatus.statusid)49) And  ((xstatus.statusid)49) And
((xstatus.statusid)46) And  ((xstatus.statusid)43) And
((xstatus.statusid)48) And  ((xstatus.statusid)48) And
((xstatus.statusid)45) And  ((xstatus.statusid)45)) Or
(((xissue.attributeid)=128) And ((xstatus.name) Like'%closed%' GROUP BY
xissue.issueid
thd-thread_id=7

Successfully dumped variables, if you ran with --log, take a look at the
details of what thread 7 did to cause the crash.  In some cases of really
bad corruption, the values shown above may be invalid.

The manual page at http://www.mysql.com/doc/C/r/Crashing.html contains
information that should help you find out what is causing the crash.



Christopher Stephan
[EMAIL PROTECTED]
http://www.xudoo.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Bug Report

2002-12-21 Thread Heikki Tuuri
Christopher,

- Original Message -
From: Christopher Stephan [EMAIL PROTECTED]
Newsgroups: mailing.database.mysql
Sent: Saturday, December 21, 2002 6:00 PM
Subject: Bug Report


 Hello,
 following problem occurs using MySql.
 Can you help me with that Error?

this is memory corruption, possibly a memory overrun by the memory buffer
which is being freed when the assertion fails.

Can you repeat the crash? It would be very valuable to trace a memory
corruption bug. I can send a special memory debug version of mysqld which
makes it easier. I have now also added diagnostic code to this assertion in
4.0.7.

What distro of MySQL-Max-4.0.6 you are using? Please do the following to
resolve the stack dump: go to the directory where the MySQL binaries are
and:

shell gzip -d mysqld.sym.gz

shell resolve_stack_dump mysqld.sym
paste the stack dump here

Now it should print a resolved stack dump. If it was a memory overrun, the
stack dump would be very valuable.

Regards,

Heikki
Innobase Oy

sql query

 Betriebssystem: [ SuSE Linux 7.3 (i386) ]
 MySql Verision: MySql Max 4.0.6
 OMEGA.ERR:
 021221 14:24:21  InnoDB: Assertion failure in thread 16401 in file
 mem0pool.c line 491
 InnoDB: We intentionally generate a memory trap.
 InnoDB: Send a detailed bug report to [EMAIL PROTECTED]
 InnoDB: Thread 10251 stopped in file row0mysql.c line 92
 mysqld got signal 11;
 This could be because you hit a bug. It is also possible that this binary
 or one of the libraries it was linked against is corrupt, improperly
built,
 or misconfigured. This error can also be caused by malfunctioning
hardware.
 We will try our best to scrape up some info that will hopefully help
 diagnose
 the problem, but since we have already crashed, something is definitely
 wrong
 and this may fail.

 key_buffer_size=16777216
 read_buffer_size=131072
 sort_buffer_size=524280
 max_used_connections=6
 max_connections=100
 threads_connected=7
 It is possible that mysqld could use up to
 key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections =
 80383 K
 bytes of memory
 Hope that's ok; if not, decrease some variables in the equation.

 thd=0x87cea58
 Attempting backtrace. You can use the following information to find out
 where mysqld died. If you see no messages after this, something went
 terribly wrong...
 Cannot determine thread, fp=0xbd9fe508, backtrace may not be correct.
 Stack range sanity check OK, backtrace follows:
 0x80da95a
 0x40040bc4
 0x830e0e5
 0x830cbd2
 0x8222d0d
 0x822784b
 0x813ce03
 0x813f9cf
 0x810cb65
 0x8106b39
 0x81067e3
 0x80ff7b0
 0x810c099
 0x80e69c6
 0x80e8908
 0x80e4123
 0x80e9df2
 0x80e32ff
 0x4003df37
 0x40199baa
 New value of fp=(nil) failed sanity check, terminating stack trace!
 Please read http://www.mysql.com/doc/U/s/Using_stack_trace.html and follow
 instructions on how to resolve the stack trace. Resolved
 stack trace is much more helpful in diagnosing the problem, so please do
 resolve it
 Trying to get some variables.
 Some pointers may be invalid and cause the dump to abort...
 thd-query at 0x87db350 = INSERT INTO xselected1 ( issueid, accesskey )
 SELECT xissue.issueid, '1040477060015' FROM  xissue INNER JOIN xstatus ON
 xissue.attributevalue = xstatus.statusid WHERE (((xissue.projectID)=26)
AND
 (xissue.deleted  'on') AND ((xissue.attributeid=128) And (
 ((xstatus.statusid)45) And  ((xstatus.statusid)46) And
 ((xstatus.statusid)42) And  ((xstatus.statusid)42) And
 ((xstatus.statusid)43) And  ((xstatus.statusid)44) And
 ((xstatus.statusid)42) And  ((xstatus.statusid)42) And
 ((xstatus.statusid)42) And  ((xstatus.statusid)42) And
 ((xstatus.statusid)46) And  ((xstatus.statusid)42) And
 ((xstatus.statusid)42) And  ((xstatus.statusid)42) And
 ((xstatus.statusid)49) And  ((xstatus.statusid)49) And
 ((xstatus.statusid)46) And  ((xstatus.statusid)43) And
 ((xstatus.statusid)48) And  ((xstatus.statusid)48) And
 ((xstatus.statusid)45) And  ((xstatus.statusid)45)) Or
 (((xissue.attributeid)=128) And ((xstatus.name) Like'%closed%' GROUP
BY
 xissue.issueid
 thd-thread_id=7

 Successfully dumped variables, if you ran with --log, take a look at the
 details of what thread 7 did to cause the crash.  In some cases of really
 bad corruption, the values shown above may be invalid.

 The manual page at http://www.mysql.com/doc/C/r/Crashing.html contains
 information that should help you find out what is causing the crash.



 Christopher Stephan
 [EMAIL PROTECTED]
 http://www.xudoo.com


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual

re: Fw: Bug report Null Set Returned in versions greater than 4.0.1-alpha

2002-12-11 Thread Victoria Reznichenko
On Wednesday 11 December 2002 01:46, Christopher M. Keslin wrote:

 The following sql query works very well in version 4.0.1-alpha-nt.  However
 it returns a null set with the data provided in aBetterLimo.sql in all
 later versions (the last one tried was 4.0.5-beta.  I hope that this is
 enough information.  If you would like anymore please feel free to contact
 me.

 I have tested it under the following systems...

 Windows 2000 Server
 Windows XP Professional
 Windows .NET 2003 Beta

 I am accessing the information using

 MyODBC 2.50.39
 ODBC.NET
 .NET Framework

 an example can be found at
 http://vpn.in.keslininc.com/aBetterLimoService/srs.asmx

 choose getBilling
 use the dates

 start 11/11/2001
 end 11/11/2005
 billed true

 The only thing I have to do to make it work is revert back to Mysql
 4.0.1-alpha-nt

 My attempt to attach a mysqldump file failed for this list.  Therefore if
 anyone is going to test this bug and would like a copy of the data from
 mysqldump that generates the data for this query please feel free to e-mail
 me.

Could you send me dump file for testing? (if dump file is too big, send an 
archive)


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Bug report: Embedded MySQL version 4.05a

2002-12-11 Thread Henry Bequet
Hi Paul!
Thank you for the quick response. Indeed, we expect it to work
otherwise. In our application, users are authenticated by the operating
system, but we were hoping to use the built-in authorization of MySql
instead of developing our own. Our strategy is to automatically add
users to MySql as they are given to us by the OS and assign permissions
to tables using these users. Does that seem reasonable?
Thank you!
Henry.

-Original Message-
From: Paul DuBois [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 10, 2002 9:09 PM
To: Matt Solnit; Heikki Tuuri; [EMAIL PROTECTED]
Cc: Henry Bequet
Subject: Re: Bug report: Embedded MySQL version 4.05a

At 15:39 -0800 12/10/02, Matt Solnit wrote:
===
Bug report -- MySQL v4.05a, binary distribution
===

--
Machine specs:
--
Compaq Presario desktop
Windows XP Professional SP1
.NET Framework SP2


Problem description:

The security features of MySQL do not seem to work with Embedded MySQL.
Instead, every user is given full permissions.

Would you expect otherwise?  If you have the embedded server linked
into an application, it's expected that the application will have full
control over the server and can do anything with any of its databases.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug report: Embedded MySQL version 4.05a

2002-12-10 Thread Matt Solnit
===
Bug report -- MySQL v4.05a, binary distribution
===

--
Machine specs:
--
Compaq Presario desktop
Windows XP Professional SP1
.NET Framework SP2


Problem description:

The security features of MySQL do not seem to work with Embedded MySQL.
Instead, every user is given full permissions.

-
Setup script:
-
USE mysql
DELETE FROM user WHERE user='';
DELETE FROM user WHERE user='root' AND host!='localhost';

USE test
CREATE TABLE mytable (a int);
GRANT SELECT ON mytable TO joe@localhost;
GRANT USAGE ON mytable TO jay@localhost;

FLUSH PRIVILEGES;

--
Observed behavior:
--
Running the mysql.exe client, anonymous users cannot connect to the
database, user 'joe' has read-only access to the table test.mytable, and
user 'jay' as no privileges.

Running the mysql-server.exe host, all users have full privileges.

Additionally, the GRANT statement in mysql-server.exe returns error 1047
(Unknown command).

---
Possible cause:
---
The function acl_init() which loads the ACL's for each user on startup,
includes a parameter, dont_read_acl_tables, that can be set to true to
skip this step.  The purpose of this parameter according to the comments
is to support the --skip-grant command-line option.  However, the
mysql_server_init() function hard-codes this parameter value to 1, so
the ACL's never get loaded and every access succeeds.

---
My contact information:
---
Matt Solnit [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Fw: Bug report Null Set Returned in versions greater than 4.0.1-alpha

2002-12-10 Thread Christopher M. Keslin
Hello,

The following sql query works very well in version 4.0.1-alpha-nt.  However
it returns a null set with the data provided in aBetterLimo.sql in all later
versions (the last one tried was 4.0.5-beta.  I hope that this is enough
information.  If you would like anymore please feel free to contact me.

I have tested it under the following systems...

Windows 2000 Server
Windows XP Professional
Windows .NET 2003 Beta

I am accessing the information using

MyODBC 2.50.39
ODBC.NET
.NET Framework

an example can be found at
http://vpn.in.keslininc.com/aBetterLimoService/srs.asmx

choose getBilling
use the dates

start 11/11/2001
end 11/11/2005
billed true

The only thing I have to do to make it work is revert back to Mysql
4.0.1-alpha-nt

My attempt to attach a mysqldump file failed for this list.  Therefore if
anyone is going to test this bug and would like a copy of the data from
mysqldump that generates the data for this query please feel free to e-mail
me.

--Chris Keslin

SELECT reservation.rsrvID as ReservationID, reservationType.display as
ReservationType, customer.userName as CustomerID, paymentType.display as
PaymentType, address.phone as Phone, address.street as Street, address.city
as City, address.state as State, address.zip as Zip, payment.pymtID as
PaymentID, payment.discount as Discount, payment.rate as Rate,
payment.gratuity as Gratuity, (1 - payment.discount) * (payment.rate +
payment.gratuity) as Total, payment.billingDate as BillingDate,
payment.billed as Billed, payment.nameOnCard as NameOnCard,
payment.acctNumber as AccountNumber, payment.cardExpiration as
CardExpiration, payment.miscNumber1 as Misc1, payment.miscNumber2 as Misc2,
payment.miscNumber3 as Misc3, payment.miscNumber4 as Misc4,
payment.lastModTime as LastModTime, payment.lastModBy as LastModBy FROM
reservation, customer, payment, paymentType, address, reservationType WHERE
reservation.pymtID = payment.pymtID AND reservation.custID = customer.custID
AND reservation.rtypID = reservationType.rtypID AND payment.addrID =
address.addrID AND payment.ptypID = paymentType.ptypID AND
payment.billingDate = 20011101 AND payment.billingDate = 20051101 ORDER BY
payment.billingDate DESC

===
Christopher M. Keslin, Senior IT Consultant
Keslin Engineering, Inc.
6212 W. Monee-Manhattan Road
Monee, IL  60449
P. (708) 235-1150
F. (708) 235-1148


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Bug report: Embedded MySQL version 4.05a

2002-12-10 Thread Paul DuBois
At 15:39 -0800 12/10/02, Matt Solnit wrote:

===
Bug report -- MySQL v4.05a, binary distribution
===

--
Machine specs:
--
Compaq Presario desktop
Windows XP Professional SP1
.NET Framework SP2


Problem description:

The security features of MySQL do not seem to work with Embedded MySQL.
Instead, every user is given full permissions.


Would you expect otherwise?  If you have the embedded server linked
into an application, it's expected that the application will have full
control over the server and can do anything with any of its databases.


-
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: InnoDB: a detailed bug report

2002-12-06 Thread Willie D. Leiva
On Thu, 5 Dec 2002, Heikki Tuuri wrote:

 the table definition below does not match the index records below. In the
 index records one of the datetime columns seems to appear twice.

Heikki, you are right. The old definition of that MySQl table had two
columns twice. When I REgenerated the table, with the definition sent
to you, I deleted the second insertion of those columns.

Thanks for detecting the reason of this error.

Kind regards,
Willie


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Bug Report: Replication in 4.0.5beta

2002-12-05 Thread Heikki Tuuri
Michael,

I was able to repeat the bug on Linux now.

It seems to happen if I set max_binlog_size to 2M in the SLAVE. The relay
binlog gets split into several 2 MB pieces. It does not happen always, but I
have a randomized test which produces the error in 1 minute.

I was not able to repeat the bug when I had not set the max binlog size in
the slave, in which case I think it defaults to 1 GB.

heikki@hundin:~/mysql-4.0/sql
mysqld --defaults-file=/home/heikki/slavemy.cnf
021204 23:55:45  InnoDB: Started
mysqld: ready for connections
021204 23:55:45  Slave I/O thread: connected to master
'slaveuser@hundin:3307',
 replication started in log 'FIRST' at position 4
021204 23:57:42  Error in Log_event::read_log_event(): 'Event too big',
data_len
=1447971143,event_type=115
021204 23:58:03  Slave SQL thread: I/O error reading event(errno: -1
cur_log-e
rror: 12)
021204 23:58:03  Error reading relay log event: Aborting slave SQL thread
becaus
e of partial event read
021204 23:58:03  Could not parse log event entry, check the master for
binlog co
rruption
This may also be a network problem, or just a bug in the master or slave
code.
021204 23:58:03  Error running query, slave SQL thread aborted. Fix the
problem,
 and restart the slave SQL thread with SLAVE START. We stopped at log
'binlog.
002' position 13659061

heikki@hundin:~/data ls -l
total 51832
-rw-rw1 heikki   users24086965 Dec  4 23:57 binlog.001
-rw-rw1 heikki   users28925234 Dec  4 23:58 binlog.002
-rw-rw1 heikki   users  26 Dec  4 23:57 binlog.index
-rw-rw1 heikki   users   5 Dec  4 23:55 hundin.pid
drwxr-xr-x2 heikki   users 619 Sep  5 20:51 mysql
drwxr-xr-x2 heikki   users 513 Dec  4 23:57 test
heikki@hundin:~/data



Also, I observed that if I do a big LOAD DATA INFILE when autocommit=1, then
the master splits the master binlog into 2 MB pieces as I have instructed,
and since I have set max packet size to 1M in both master and the slave, the
slave complains:

heikki@hundin:~/mysql-4.0/sql
mysqld --defaults-file=/home/heikki/slavemy.cnf
021204 23:48:21  InnoDB: Started
mysqld: ready for connections
021204 23:48:21  Slave I/O thread: connected to master
'slaveuser@hundin:3307',
 replication started in log 'FIRST' at position 4
021204 23:52:08  Error reading packet from server: log event entry exceeded
max_
allowed_packet; Increase max_allowed_packet on master (server_errno=1236)
021204 23:52:08  Got fatal error 1236: 'log event entry exceeded
max_allowed_pac
ket; Increase max_allowed_packet on master' from master when reading data
from b
inary log
021204 23:52:08  Slave I/O thread exiting, read up to log 'binlog.002',
position
 4

This does NOT happen if I set AUTOCOMMIT=0.

I think the above should also be fixed. The slave should read the binlog in
smaller pieces, also in the case where AUTOCOMMIT=1.

Yet another problem:

When LOAD DATA INFILE failed in the master (AUTOCOMMIT=1):

mysql load data infile '/home/heikki/rtdump' into table replt3;
ERROR 1114: The table 'replt3' is full
mysql

the slave failed like this:

heikki@hundin:~/mysql-4.0/sql mysqld --defaults-file=~/slavemy.cnf
021204 21:45:35  InnoDB: Started
mysqld: ready for connections
021204 21:45:35  Slave I/O thread: connected to master
'slaveuser@hundin:3307',
 replication started in log 'FIRST' at position 4
021204 22:04:22  Slave: Could not open file '/tmp/SQL_LOAD-2-1-4.data',
error_co
de=2
021204 22:04:22  Error running query, slave SQL thread aborted. Fix the
problem,
 and restart the slave SQL thread with SLAVE START. We stopped at log
'binlog.
026' position 27

I am forwarding these to the replication developer of MySQL AB. I hope he
can fix these to 4.0.6.

Best regards,

Heikki Tuuri
Innobase Oy
---
InnoDB - transactions, row level locking, and foreign key support for MySQL
See http://www.innodb.com, download MySQL-Max from http://www.mysql.com

sql query

- Original Message -
From: Heikki Tuuri [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 12:24 AM
Subject: Re: Bug Report: Replication in 4.0.5beta


 Michael,

 I have been running tests on 4.0.6 with big insert transactions on Linux.
I
 set max_binlog_size to 2M and max_packet_size to 16M. So far no errors
with
 tables up to 400 MB in size.

 Looks like MySQL always writes a big transaction as one big block to the
 current binlog file, and does not cut the binlog file into 2 MB pieces.
 Thus, it looks like the binlog file rotation cannot be the source of the
bug
 you have observed.

 If you look in the datadir with

 ls -l

 the actual sizes of the master's binlogs, could it be that there really is
a
 1.3 GB file there?

 Can you make a script which would always repeat the replication failure?

 What is the CREATE TABLE statement of your table?

 What is your my.cnf like?

 Regards,

 Heikki

 - Original Message -
 From: Heikki Tuuri [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL

Re: InnoDB: a detailed bug report

2002-12-05 Thread Willie D. Leiva
On Wed, 4 Dec 2002, Heikki Tuuri wrote:

 what MySQL version you are running? On what OS?

Version 3.23.53-max-nt-log on Windows Professional 2000

 What does SHOW CREATE TABLE tabdocumentoconsultado; print?

I created again all the tables of the database called bdatena.

Now that the table is no more corrupt, it prints

Create Table: CREATE TABLE `tabdocumentoconsultado` (
  `IdDocConsultado` int(11) NOT NULL auto_increment,
  `IdAprendiz` varchar(15) NOT NULL default '',
  `codcurso` int(11) NOT NULL default '0',
  `IdP` int(11) NOT NULL default '0',
  `DiaHoraInicial` datetime NOT NULL default '-00-00 00:00:00',
  `Tipo` enum('Cur','Top','UE') NOT NULL default 'Top',
  `DiaHoraFinal` datetime default NULL,
  `EmPausa` enum('S','N') NOT NULL default 'N',
  PRIMARY KEY  (`IdDocConsultado`),
  UNIQUE KEY `umDoc` (`IdAprendiz`,`codcurso`,`IdP`,
   `DiaHoraInicial`,`Tipo`,`DiaHoraFinal`,`EmPausa`),
  KEY `DoConsInd` (`IdAprendiz`,`codcurso`),
  FOREIGN KEY (`IdAprendiz`, `codcurso`)
  REFERENCES `bdatena.cursa` (`idaluno`, `codcurso`)
) TYPE=InnoDB

 Have you used an InnoDB version = 3.23.43 and stored characters with code 
 127 in the table? E.g., accent characters? The ordering of such characters
 in the latin1 charset changed in 3.23.44.

In other tables, I stored accent characters.

In tabdocumentoconsultado (in English, something like
ConsultedDocumentTable), I don't store characters with code  127.

How do I discover the InnoDB version? I don't know its version.

 What kind of operations you did to the table? INSERT, UPDATE, DELETE?

INSERT and UPDATE.

 Can you repeat the corruption starting from a fresh table?

The corruption didn't happen again with a fresh table.

 You can repair the corruption by dump + DROP + CREATE + import of the table.

Thanks for the hint!

Regards,
Willie D. Leiva



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




InnoDB: a detailed bug report

2002-12-04 Thread Willie D. Leiva
MySQL generated the following error messages about a corrupted table:

/
021127 15:48:01  InnoDB: Started
InnoDB: error in sec index entry update in
InnoDB: index umDoc table bdatena/tabdocumentoconsultado
InnoDB: tuple  0: len 8; hex 6c616e6472616465; asc landrade;; 1: len 4;
hex 800b; asc ;; 2: len 4; hex 8014; asc ;; 3: len 8;
hex 800012358ca4940c; asc ...5;; 4: len 1; hex 02; asc .;; 5: len 8;
hex 800012358ca4d9c4; asc ...5..Ù.;; 6: len 1; hex 02; asc .;; 7: len 8;
hex 800012358ca4d9c4; asc ...5..Ù.;; 8: len 1; hex 01; asc .;; 9: len 4;
hex 802b; asc ...+;;
InnoDB: record RECORD: info bits 0 0: len 8; hex 6c616e6472616465; asc
landrade;; 1: len 4; hex 800b; asc ;; 2: len 4; hex 8014;
asc ;; 3: len 8; hex 800012358ca4940c; asc ...5;; 4: len 1; hex
02; asc .;; 5: len 8; hex 800012358ca4d9c4; asc ...5..Ù.;; 6: len 1; hex
02; asc .;; 7: len 8; hex 800012358ca49424; asc ...5...$;; 8: len 1; hex
01; asc .;; 9: len 4; hex 802b; asc ...+;;
TRANSACTION 0 672018, ACTIVE 0 sec, OS thread id 2532 updating or
deleting
3 lock struct(s), heap size 320, undo log entries 1
MySQL thread id 75, query id 17086 localhost 127.0.0.1 atena updating
UPDATE tabdocumentoconsultado SET EmPausa='N' WHERE
IdAprendiz='landrade' AND Tipo='Top' AND codcurso='11' AND
IdP='20'

InnoDB: Make a detailed bug report and send it
InnoDB: to [EMAIL PROTECTED]
InnoDB: error in sec index entry update in
InnoDB: index umDoc table bdatena/tabdocumentoconsultado
InnoDB: tuple  0: len 8; hex 6c616e6472616465; asc landrade;; 1: len 4;
hex 800b; asc ;; 2: len 4; hex 8014; asc ;; 3: len 8;
hex 800012358ca4c6fe; asc ...5;; 4: len 1; hex 02; asc .;; 5: len 8;
hex 800012358ca4d9c4; asc ...5..Ù.;; 6: len 1; hex 02; asc .;; 7: len 8;
hex 800012358ca4d9c4; asc ...5..Ù.;; 8: len 1; hex 01; asc .;; 9: len 4;
hex 802c; asc ...,;;
InnoDB: record RECORD: info bits 0 0: len 8; hex 6c616e6472616465; asc
landrade;; 1: len 4; hex 800b; asc ;; 2: len 4; hex 8014;
asc ;; 3: len 8; hex 800012358ca4c6fe; asc ...5;; 4: len 1; hex
02; asc .;; 5: len 8; hex 800012358ca4d9c4; asc ...5..Ù.;; 6: len 1; hex
02; asc .;; 7: SQL NULL; 8: len 1; hex 01; asc .;; 9: len 4; hex
802c; asc ...,;;
TRANSACTION 0 672018, ACTIVE 0 sec, OS thread id 2532 updating or
deleting
6 lock struct(s), heap size 1024, undo log entries 2
MySQL thread id 75, query id 17086 localhost 127.0.0.1 atena updating
UPDATE tabdocumentoconsultado SET EmPausa='N' WHERE
IdAprendiz='landrade' AND Tipo='Top' AND codcurso='11' AND
IdP='20'

InnoDB: Make a detailed bug report and send it
InnoDB: to [EMAIL PROTECTED]
InnoDB: error in sec index entry update in
InnoDB: index umDoc table bdatena/tabdocumentoconsultado
InnoDB: tuple  0: len 8; hex 6c616e6472616465; asc landrade;; 1: len 4;
hex 800b; asc ;; 2: len 4; hex 8014; asc ;; 3: len 8;
hex 800012358ca4c6ff; asc ...5;; 4: len 1; hex 02; asc .;; 5: len 8;
hex 800012358ca4d9c4; asc ...5..Ù.;; 6: len 1; hex 02; asc .;; 7: len 8;
hex 800012358ca4d9c4; asc ...5..Ù.;; 8: len 1; hex 01; asc .;; 9: len 4;
hex 802d; asc ...-;;
InnoDB: record RECORD: info bits 0 0: len 8; hex 6c616e6472616465; asc
landrade;; 1: len 4; hex 800b; asc ;; 2: len 4; hex 8014;
asc ;; 3: len 8; hex 800012358ca4c6ff; asc ...5;; 4: len 1; hex
02; asc .;; 5: len 8; hex 800012358ca4d9c4; asc ...5..Ù.;; 6: len 1; hex
02; asc .;; 7: SQL NULL; 8: len 1; hex 01; asc .;; 9: len 4; hex
802d; asc ...-;;
TRANSACTION 0 672018, ACTIVE 0 sec, OS thread id 2532 updating or
deleting
6 lock struct(s), heap size 1024, undo log entries 3
MySQL thread id 75, query id 17086 localhost 127.0.0.1 atena updating
UPDATE tabdocumentoconsultado SET EmPausa='N' WHERE
IdAprendiz='landrade' AND Tipo='Top' AND codcurso='11' AND
IdP='20'

InnoDB: Make a detailed bug report and send it
InnoDB: to [EMAIL PROTECTED]
InnoDB: error in sec index entry update in
InnoDB: index umDoc table bdatena/tabdocumentoconsultado
InnoDB: tuple  0: len 8; hex 6c616e6472616465; asc landrade;; 1: len 4;
hex 800b; asc ;; 2: len 4; hex 8014; asc ;; 3: len 8;
hex 800012358ca4940c; asc ...5;; 4: len 1; hex 02; asc .;; 5: len 8;
hex 800012358ca4da6e; asc ...5..Ún;; 6: len 1; hex 02; asc .;; 7: len 8;
hex 800012358ca4da6e; asc ...5..Ún;; 8: len 1; hex 01; asc .;; 9: len 4;
hex 802b; asc ...+;;
InnoDB: record RECORD: info bits 0 0: len 8; hex 6c616e6472616465; asc
landrade;; 1: len 4; hex 800b; asc ;; 2: len 4; hex 8014;
asc ;; 3: len 8; hex 800012358ca4940c; asc ...5;; 4: len 1; hex
02; asc .;; 5: len 8; hex 800012358ca4da6e; asc ...5..Ún;; 6: len 1; hex
02; asc .;; 7: len 8; hex 800012358ca4d9c4; asc ...5..Ù.;; 8: len 1; hex
01; asc .;; 9: len 4; hex 802b; asc ...+;;
TRANSACTION 0 672061, ACTIVE 0 sec, OS thread id 2324 updating or
deleting
3 lock struct(s), heap size 320, undo log entries 1
MySQL thread id 76

Re: InnoDB: a detailed bug report

2002-12-04 Thread Heikki Tuuri
Willie,

what MySQL version you are running? On what OS?

What does

SHOW CREATE TABLE tabdocumentoconsultado;

print?

Have you used an InnoDB version = 3.23.43 and stored characters with code 
127 in the table? E.g., accent characters? The ordering of such characters
in the latin1 charset changed in 3.23.44.

What kind of operations you did to the table? INSERT, UPDATE, DELETE?

Can you repeat the corruption starting from a fresh table?

You can repair the corruption by dump + DROP + CREATE + import of the table.

Regards,

Heikki
Innobase Oy

.

List: mysql
Subject:  InnoDB: a detailed bug report
From: Willie D. Leiva [EMAIL PROTECTED]
Date: 2002-12-04 9:36:24


MySQL generated the following error messages about a corrupted table:

/
021127 15:48:01  InnoDB: Started
InnoDB: error in sec index entry update in
InnoDB: index umDoc table bdatena/tabdocumentoconsultado
InnoDB: tuple  0: len 8; hex 6c616e6472616465; asc landrade;; 1: len 4;
hex 800b; asc ;; 2: len 4; hex 8014; asc ;; 3: len 8;
hex 800012358ca4940c; asc ...5;; 4: len 1; hex 02; asc .;; 5: len 8;
hex 800012358ca4d9c4; asc ...5..Ù.;; 6: len 1; hex 02; asc .;; 7: len 8;
hex 800012358ca4d9c4; asc ...5..Ù.;; 8: len 1; hex 01; asc .;; 9: len 4;
hex 802b; asc ...+;;
InnoDB: record RECORD: info bits 0 0: len 8; hex 6c616e6472616465; asc
landrade;; 1: len 4; hex 800b; asc ;; 2: len 4; hex 8014;
asc ;; 3: len 8; hex 800012358ca4940c; asc ...5;; 4: len 1; hex
02; asc .;; 5: len 8; hex 800012358ca4d9c4; asc ...5..Ù.;; 6: len 1; hex
02; asc .;; 7: len 8; hex 800012358ca49424; asc ...5...$;; 8: len 1; hex
01; asc .;; 9: len 4; hex 802b; asc ...+;;
TRANSACTION 0 672018, ACTIVE 0 sec, OS thread id 2532 updating or
deleting
3 lock struct(s), heap size 320, undo log entries 1
MySQL thread id 75, query id 17086 localhost 127.0.0.1 atena updating
UPDATE tabdocumentoconsultado SET EmPausa='N' WHERE
IdAprendiz='landrade' AND Tipo='Top' AND codcurso='11' AND
IdP='20'



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Bug Report: Replication in 4.0.5beta

2002-12-04 Thread Heikki Tuuri
Michael,

I have been running tests on 4.0.6 with big insert transactions on Linux. I
set max_binlog_size to 2M and max_packet_size to 16M. So far no errors with
tables up to 400 MB in size.

Looks like MySQL always writes a big transaction as one big block to the
current binlog file, and does not cut the binlog file into 2 MB pieces.
Thus, it looks like the binlog file rotation cannot be the source of the bug
you have observed.

If you look in the datadir with

ls -l

the actual sizes of the master's binlogs, could it be that there really is a
1.3 GB file there?

Can you make a script which would always repeat the replication failure?

What is the CREATE TABLE statement of your table?

What is your my.cnf like?

Regards,

Heikki

- Original Message -
From: Heikki Tuuri [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 1:27 PM
Subject: Re: Bug Report: Replication in 4.0.5beta


 Michael,

 - Original Message -
 From: Michael Ryan [EMAIL PROTECTED]
 Newsgroups: mailing.database.mysql
 Sent: Thursday, November 28, 2002 12:34 PM
 Subject: Bug Report: Replication in 4.0.5beta


  The environment info was copied from the mysqlbug command by our
 external
  hosting company who truncated the lines therefore the last couple of
  characters from each line is not there however it was a Solaris 2.8
binary
  download of 4.0.5beta so you would have all of the info anyway.
 
  Description:
  I am using MySQL 4.0.5beta on Solaris 2.8 from a binary version
  downloaded from www.mysql.com on the 19th of November 2002. I have one
  database set up as the master database and 2 databases set up as slave
  databases. Each database is on a separate SUN server. I am performing
  intense load testing on MySQL replicated databases using InnoDB tables
and
  transactions and I have come across what is most likely a bug.
 
  The replication is failing on the slaves with the following error (this
  appears both slaves error logs at the same time) :-
 
  021127 13:48:28  Error in Log_event::read_log_event(): 'Event too big',
  data_len=1397639424,event_type=111
  021127 13:55:36  Error in Log_event::read_log_event(): 'Event too big',
  data_len=1397639424,event_type=111


 this definitely looks like a bug in replication.

 From New Zealand we got the following bug report, which might be connected
 to this:

 02 18:32:54  Error reading packet from server: log
  event entry
 exceeded max_allowed_packet - increase
  max_allowed_packet on master
 (server_errno=2000)

 Above errors might happen if the pointer to the binlog becomes displaced.
It
 will then read garbage from the event length field.

 I think a transaction can consist of many log events.

 I will run tests on our SunOS-5.8 computer to see if I can repeat this
bug.


 Best regards,

 Heikki Tuuri
 Innobase Oy
 ---
 InnoDB - transactions, hot backup, and foreign key support for MySQL
 See http://www.innodb.com, download MySQL-Max from http://www.mysql.com

 sql query

 ...
 
  BBCi at http://www.bbc.co.uk/
 





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug Report: Replication in 4.0.5beta

2002-11-28 Thread Michael Ryan
The environment info was copied from the mysqlbug command by our external
hosting company who truncated the lines therefore the last couple of
characters from each line is not there however it was a Solaris 2.8 binary
download of 4.0.5beta so you would have all of the info anyway.

Description:
I am using MySQL 4.0.5beta on Solaris 2.8 from a binary version
downloaded from www.mysql.com on the 19th of November 2002. I have one
database set up as the master database and 2 databases set up as slave
databases. Each database is on a separate SUN server. I am performing
intense load testing on MySQL replicated databases using InnoDB tables and
transactions and I have come across what is most likely a bug. 

The replication is failing on the slaves with the following error (this
appears both slaves error logs at the same time) :-

021127 13:48:28  Error in Log_event::read_log_event(): 'Event too big',
data_len=1397639424,event_type=111
021127 13:55:36  Error in Log_event::read_log_event(): 'Event too big',
data_len=1397639424,event_type=111

As you can see the data_len is 1.3G. The master log position at this time
was less than 300Meg so a single event, even if I did about 500,000 inserts
in a transaction block, could not be larger than 300Meg. I have
MAX_BINLOG_SIZE set to 2Meg on the master database and the slaves. As it is
I know that the transactions were small as the records were being inserted
on the slave machines which only happens after the commit takes place on the
master.

I have run this test several times and it falls over after a different
number of records have been replicated each time (I performed reset master
and reset slave on the databases between tests to ensure a clean run) but
the reported error is the same i.e. data_len being 1.3G.

I feel the master log file switching has somehow corrupted the binary log
file. I had previously loaded 1,000,000 records on this replicated server
and it worked fine. However the binary log files were never switched because
the server was under too much load. I then changed my method of allocating
sequential keys which slowed things down enough for the log switching to
occur at the size specified in MAX_BINLOG_SIZE and I got the error.

How-To-Repeat:

Re-run the test after performing a reset master and reset slave on
the appropriate databases.

Fix:
If I take out the setting of MAX_BINLOG_SIZE to let it use the
default size of 1Gig and re-run my test it works OK.


Submitter-Id:  [EMAIL PROTECTED]
Originator:MySQL owner
Organization: BBC
MySQL support: none (until we go live)
Synopsis:  Bug in binary log and/or replication
Severity:  serious
Priority:  
Category:  mysql
Class: [ sw-bug | doc-bug | change-request | support ] (one line)
Release:   mysql-4.0.5-beta-standard (Official MySQL-standard binary)

Environment:
machine, os, target, libraries (multiple lines)
System: SunOS db1.mh.bbc.co.uk 5.8 Generic_108528-15 sun4u sparc
SUNW,Sun-Fire-480R
Architecture: sun4

Some paths:  /usr/bin/perl /usr/local/bin/make

Compilation info: CC='gcc'  CFLAGS='-O3 -fno-omit-frame-pointer'  CXX='gcc'
CXXFLAGS='-O3 -fno-om
structors -fno-exceptions -fno-rtti'  LDFLAGS=''  ASFLAGS=''
LIBC:
lrwxrwxrwx   1 root root  11 Nov 15 15:21 /lib/libc.so -
./libc.so.1
-rwxr-xr-x   1 root bin  1146204 Jun  3 08:46 /lib/libc.so.1
lrwxrwxrwx   1 root root  11 Nov 15 15:21 /usr/lib/libc.so -
./libc.so.1
-rwxr-xr-x   1 root bin  1146204 Jun  3 08:46 /usr/lib/libc.so.1
Configure command: ./configure --prefix=/usr/local/mysql
'--with-comment=Official MySQL-standard b
=complex --with-server-suffix=-standard --enable-thread-safe-client
--enable-local-infile --enable
bs=no --disable-shared --with-innodb CC=gcc 'CFLAGS=-O3
-fno-omit-frame-pointer' 'CXXFLAGS=-O3 -fn
-constructors -fno-exceptions -fno-rtti' CXX=gcc
Perl: This is perl, version 5.005_03 built for sun4-solaris



BBCi at http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain 
personal views which are not the views of the BBC unless specifically 
stated.
If you have received it in error, please delete it from your system, do 
not use, copy or disclose the information in any way nor act in 
reliance on it and notify the sender immediately. Please note that the 
BBC monitors e-mails sent or received. Further communication will 
signify your consent to this.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Bug Report: Replication in 4.0.5beta

2002-11-28 Thread Heikki Tuuri
Michael,

- Original Message -
From: Michael Ryan [EMAIL PROTECTED]
Newsgroups: mailing.database.mysql
Sent: Thursday, November 28, 2002 12:34 PM
Subject: Bug Report: Replication in 4.0.5beta


 The environment info was copied from the mysqlbug command by our
external
 hosting company who truncated the lines therefore the last couple of
 characters from each line is not there however it was a Solaris 2.8 binary
 download of 4.0.5beta so you would have all of the info anyway.

 Description:
 I am using MySQL 4.0.5beta on Solaris 2.8 from a binary version
 downloaded from www.mysql.com on the 19th of November 2002. I have one
 database set up as the master database and 2 databases set up as slave
 databases. Each database is on a separate SUN server. I am performing
 intense load testing on MySQL replicated databases using InnoDB tables and
 transactions and I have come across what is most likely a bug.

 The replication is failing on the slaves with the following error (this
 appears both slaves error logs at the same time) :-

 021127 13:48:28  Error in Log_event::read_log_event(): 'Event too big',
 data_len=1397639424,event_type=111
 021127 13:55:36  Error in Log_event::read_log_event(): 'Event too big',
 data_len=1397639424,event_type=111


this definitely looks like a bug in replication.

From New Zealand we got the following bug report, which might be connected
to this:

02 18:32:54  Error reading packet from server: log
 event entry
exceeded max_allowed_packet - increase
 max_allowed_packet on master
(server_errno=2000)

Above errors might happen if the pointer to the binlog becomes displaced. It
will then read garbage from the event length field.

I think a transaction can consist of many log events.

I will run tests on our SunOS-5.8 computer to see if I can repeat this bug.


Best regards,

Heikki Tuuri
Innobase Oy
---
InnoDB - transactions, hot backup, and foreign key support for MySQL
See http://www.innodb.com, download MySQL-Max from http://www.mysql.com

sql query

...

 BBCi at http://www.bbc.co.uk/





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug report: Embedded MySQL v4.04b

2002-11-27 Thread Matt Solnit
===
Bug report -- MySQL v4.04b, source distribution
===


Machine specs (build machine and test machine are same machine):

Compaq Presario desktop
Windows XP Professional SP1
.NET Framework SP2

--
Build description:
--
libmysqld.dll was built using Microsoft Visual C++ 6.0 SP5 and Microsoft
Visual C++ Processor Pack SP5 (used for ASM files).  We build our own
version because we need to make a change so that the DLL will work with
C# clients (see below for more info).


Problem description:

A C# client was built using Microsoft Visual Studio.NET.  The client
calls mysql_server_init(), passing in the command-line argument
--datadir=path, then attempts to open a connection using
mysql_init() and mysql_real_connect().  A database that is known to
exist is passed in to the mysql_real_connect() function.  The function
call fails and mysql_error() returns Unknown database 'name'.

Behavior is identical using debug and release builds of libmysqld.dll.

The problem does not occur using a C++ client.

---
Possible cause:
---
Stepping into MySQL, I find that the variable mysql_data_home is set
to the correct value when mysql_server_init() returns.  However, when
mysql_init() is entered, the value has become corrupted.


C# code:


/**/
/* you will need to customize the datadir and database name   */
/**/

using System;
using System.Security;
using System.Runtime.InteropServices;

namespace ConsoleApplication1
{
  class Test
  {
[STAThread]
static void Main(string[] args)
{
  TestDirectToDLL();
}

private static void TestDirectToDLL()
{
  string[] args = new string[] {thisappname,
--datadir=c:/iter/source/ADCData};
  MySqlAPI.ServerInit(args.Length, args, null);
  IntPtr cnn = MySqlAPI.Init(IntPtr.Zero);
  IntPtr result = MySqlAPI.Connect(cnn, null, null, null,
iteration, 0, null, 0);
  if (result == IntPtr.Zero)
throw new Exception(MySqlAPI.Error(cnn));
  MySqlAPI.Close(cnn);
  MySqlAPI.ServerEnd();
}
  }

  class MySqlAPI
  {
[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll,
   CharSet=System.Runtime.InteropServices.CharSet.Ansi,
   EntryPoint=mysql_server_init, ExactSpelling=true)]
public static extern int ServerInit(int icArgs, string [] strArgs,
string [] strGroups);

[DllImport(libmysqld.dll,
   EntryPoint=mysql_server_end, ExactSpelling=true)]
public static extern void ServerEnd();

[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll, EntryPoint=mysql_init,
ExactSpelling=true)]
public static extern IntPtr Init(IntPtr ihConnection);

[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll,
   CharSet=System.Runtime.InteropServices.CharSet.Ansi,
   EntryPoint=mysql_real_connect, ExactSpelling=true)]
public static extern IntPtr Connect(IntPtr ihConnection,
  [In] string strHost, [In] string strUser, [In] string strPassword,
  [In] string strDatabaseName,
  uint iPort, [In] string strSocketName, uint iFlags
  );

[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll, EntryPoint=mysql_close,
ExactSpelling=true)]
public static extern void Close(IntPtr ihConnection);

[DllImport(libmysqld.dll,
   EntryPoint=mysql_errno, ExactSpelling=true)]
public static extern uint ErrNo(IntPtr ihConnection);

[DllImport(libmysqld.dll,
   CharSet=System.Runtime.InteropServices.CharSet.Ansi,
   EntryPoint=mysql_error, ExactSpelling=true)]
public static extern string Error(IntPtr ihConnection);
  }
}

-
C++ code:
-

/**/
/* plug this into the file test_dll.cpp that ships with MySQL */
/**/

/**/
/* you will need to customize the datadir and database name   */
/**/

int main(int argc, char* argv[])
{
  MYSQL *one;

  const char *simulatedArgs[] = {thisappname,
--datadir=c:/iter/source/ADCData};
  const int simulatedArgCount = 2;

  mysql_server_init(simulatedArgCount, (char**)simulatedArgs, NULL);

  one = db_connect(iteration);
  db_do_query(one, show tables);
  mysql_close(one);

  mysql_server_end();
  return 0;
}

---
MySQL binaries:
---
Upon request, I can supply our debug and release builds of
libmysqld.dll.

---
Source code change description

Re: Bug report: Embedded MySQL v4.04b

2002-11-27 Thread Heikki Tuuri
Matt,

thank you for the bug report.

I do not have C# in my computer. Did I understand correctly the bug does not
appear if you use the Embedded Server Library inside C++?

My first note is that you should define USE_TLS in all MySQL modules, like
Monty instructed a week ago. But I guess that cannot cause the corruption of
mysql_data_home.

I looked at the source code, and it looks like mysql_data_home should be a
pointer to a 512-character buffer called mysql_real_data_home, if you define
a datadir, and that is not the default dir (that is, .\) of the running
program. Could it be that mysql_data_home starts to point into some random
location?

I am forwarding this bug report to MySQL developers who know the mysqld
option processing best.

Best regards,

Heikki Tuuri
Innobase Oy
---
InnoDB - transactions, hot backup, and foreign key support for MySQL
See http://www.innodb.com, download MySQL-Max from http://www.mysql.com

sql query

- Original Message -
From: Matt Solnit [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: Henry Bequet [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 7:12 PM
Subject: Bug report: Embedded MySQL v4.04b


===
Bug report -- MySQL v4.04b, source distribution
===


Machine specs (build machine and test machine are same machine):

Compaq Presario desktop
Windows XP Professional SP1
.NET Framework SP2

--
Build description:
--
libmysqld.dll was built using Microsoft Visual C++ 6.0 SP5 and Microsoft
Visual C++ Processor Pack SP5 (used for ASM files).  We build our own
version because we need to make a change so that the DLL will work with
C# clients (see below for more info).


Problem description:

A C# client was built using Microsoft Visual Studio.NET.  The client
calls mysql_server_init(), passing in the command-line argument
--datadir=path, then attempts to open a connection using
mysql_init() and mysql_real_connect().  A database that is known to
exist is passed in to the mysql_real_connect() function.  The function
call fails and mysql_error() returns Unknown database 'name'.

Behavior is identical using debug and release builds of libmysqld.dll.

The problem does not occur using a C++ client.

---
Possible cause:
---
Stepping into MySQL, I find that the variable mysql_data_home is set
to the correct value when mysql_server_init() returns.  However, when
mysql_init() is entered, the value has become corrupted.


C# code:


/**/
/* you will need to customize the datadir and database name   */
/**/

using System;
using System.Security;
using System.Runtime.InteropServices;

namespace ConsoleApplication1
{
  class Test
  {
[STAThread]
static void Main(string[] args)
{
  TestDirectToDLL();
}

private static void TestDirectToDLL()
{
  string[] args = new string[] {thisappname,
--datadir=c:/iter/source/ADCData};
  MySqlAPI.ServerInit(args.Length, args, null);
  IntPtr cnn = MySqlAPI.Init(IntPtr.Zero);
  IntPtr result = MySqlAPI.Connect(cnn, null, null, null,
iteration, 0, null, 0);
  if (result == IntPtr.Zero)
throw new Exception(MySqlAPI.Error(cnn));
  MySqlAPI.Close(cnn);
  MySqlAPI.ServerEnd();
}
  }

  class MySqlAPI
  {
[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll,
   CharSet=System.Runtime.InteropServices.CharSet.Ansi,
   EntryPoint=mysql_server_init, ExactSpelling=true)]
public static extern int ServerInit(int icArgs, string [] strArgs,
string [] strGroups);

[DllImport(libmysqld.dll,
   EntryPoint=mysql_server_end, ExactSpelling=true)]
public static extern void ServerEnd();

[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll, EntryPoint=mysql_init,
ExactSpelling=true)]
public static extern IntPtr Init(IntPtr ihConnection);

[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll,
   CharSet=System.Runtime.InteropServices.CharSet.Ansi,
   EntryPoint=mysql_real_connect, ExactSpelling=true)]
public static extern IntPtr Connect(IntPtr ihConnection,
  [In] string strHost, [In] string strUser, [In] string strPassword,
  [In] string strDatabaseName,
  uint iPort, [In] string strSocketName, uint iFlags
  );

[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll, EntryPoint=mysql_close,
ExactSpelling=true)]
public static extern void Close(IntPtr ihConnection);

[DllImport(libmysqld.dll,
   EntryPoint=mysql_errno, ExactSpelling=true)]
public static extern uint ErrNo(IntPtr ihConnection);

[DllImport(libmysqld.dll

RE: Bug report: Embedded MySQL v4.04b

2002-11-27 Thread Matt Solnit
I am looking into USE_TLS.  But yes, I see that mysql_real_data_home is
not corrupted, only mysql_data_home is.

Thanks for your response.

-- Matt

-Original Message-
From: Heikki Tuuri [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 27, 2002 11:40 AM
To: Matt Solnit; [EMAIL PROTECTED]
Cc: Henry Bequet
Subject: Re: Bug report: Embedded MySQL v4.04b 

Matt,

thank you for the bug report.

I do not have C# in my computer. Did I understand correctly the bug does
not
appear if you use the Embedded Server Library inside C++?

My first note is that you should define USE_TLS in all MySQL modules,
like
Monty instructed a week ago. But I guess that cannot cause the
corruption of
mysql_data_home.

I looked at the source code, and it looks like mysql_data_home should be
a
pointer to a 512-character buffer called mysql_real_data_home, if you
define
a datadir, and that is not the default dir (that is, .\) of the running
program. Could it be that mysql_data_home starts to point into some
random
location?

I am forwarding this bug report to MySQL developers who know the mysqld
option processing best.

Best regards,

Heikki Tuuri
Innobase Oy
---
InnoDB - transactions, hot backup, and foreign key support for MySQL
See http://www.innodb.com, download MySQL-Max from http://www.mysql.com

sql query

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




BUG REPORT : key creation

2002-11-19 Thread Angeloluca . Barba

I have a problem with key creation :

Server version: 4.0.4-beta-max-nt  Binary version
PC : DELL OPTIPLEX GX100
OS : Windows 2000 Professional
RAM: 256 Mb




C:\mysql\binmysql

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.0.4-beta-max-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql use repos

Database changed

mysql CREATE TABLE property (
-   serialno int(11) NOT NULL default '0',
-   ns_id int(11),
-   name varchar(255) NOT NULL default '',
-   value text,
-   KEY serialidx (serialno),
-   KEY nvidx (name,value(245))
- ) TYPE=MyISAM;

ERROR 1005: Can't create table '.\repos\property.frm' (errno: 140)


mysql CREATE TABLE property (
-   serialno int(11) NOT NULL default '0',
-   ns_id int(11),
-   name varchar(255) NOT NULL default '',
-   value text,
-   KEY serialidx (serialno),
-   KEY nvidx (name,value(236))
- ) TYPE=MyISAM;

Query OK, 0 rows affected (0.05 sec)



mysql

236 Is the maximum permitted length , I don't know why.

Bye,

Luca Barba




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




re: BUG REPORT : key creation

2002-11-19 Thread Egor Egorov
Angeloluca,
Tuesday, November 19, 2002, 12:21:58 PM, you wrote:

AdBamdc I have a problem with key creation :

AdBamdc Server version: 4.0.4-beta-max-nt  Binary version
AdBamdc PC : DELL OPTIPLEX GX100
AdBamdc OS : Windows 2000 Professional
AdBamdc RAM: 256 Mb

[skip]

AdBamdc 236 Is the maximum permitted length , I don't know why.

I got the same result on the 4.0.4, but it works fine on the latest
tree.




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




bug report: Embedded MySQL v4.04b

2002-11-15 Thread Matt Solnit
===
Bug report -- MySQL v4.04b, source distribution
===


Machine specs (build machine and test machine are same machine):

Dell Inspiron 8200 laptop
Windows XP Professional SP1
.NET Framework SP2

--
Build description:
--
libmysqld.dll was built using Microsoft Visual C++ 6.0 SP5 and Microsoft
Visual C++ Processor Pack SP5 (used for ASM files).  We build our own
version because we need to make a change so that the DLL will work with
C# clients (see below for more info).


Problem description:

A C# client was built using Microsoft Visual Studio.NET.  The client
calls mysql_server_init(), mysql_server_end(), and mysql_server_init()
again.  On second call to mysql_server_init(), the exception
System.NullReferenceException is thrown.

From an equivalent C++ program, an access violation occurs at the same
point.

Behavior is identical using debug and release builds of libmysqld.dll.


C# code:


using System;
using System.Runtime.InteropServices;
using System.Security;

namespace Reproduce_Embedded_MySQL_crash
{

  class Class1
{

[STAThread]
static void Main(string[] args)
{
  MySqlAPI.ServerInit(0, null, null);
  MySqlAPI.ServerEnd();
  MySqlAPI.ServerInit(0, null, null);
  MySqlAPI.ServerEnd();
}
}

  class MySqlAPI
  {

[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll,
   CharSet=System.Runtime.InteropServices.CharSet.Ansi,
   EntryPoint=mysql_server_init, ExactSpelling=true)]
public static extern int ServerInit(int icArgs, string [] strArgs,
string [] strGroups);


[DllImport(libmysqld.dll,
   EntryPoint=mysql_server_end, ExactSpelling=true)]
public static extern void ServerEnd();

  }
}

-
C++ code:
-

//
/* modified from test_dll.cpp that ships with MySQL */
//

#include stdafx.h
#include winsock.h
#include mysql.h
#include stdarg.h
#include stdio.h
#include stdlib.h

const char *server_groups[] = {
  test_libmysqld_SERVER, embedded, server, NULL
};

int main(int argc, char* argv[])
{
  mysql_server_init(argc, argv, (char **)server_groups);
  mysql_server_end();
  mysql_server_init(argc, argv, (char **)server_groups);
  mysql_server_end();

  return 0;
}


---
MySQL binaries:
---
Upon request, I can supply our debug and release builds of
libmysqld.dll.

---
Source code change description:
---
There is only one change we make to the MySQL 4.04b source distribution.
We define USE_TLS for the mysys project.  The reason is that it's
required for clients that use LoadLibrary(), which includes all C#
clients.  More information can be found in the VC++ documentation
article Rules and Limitations for TLS.

---
My contact information:
---
Matt Solnit [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: bug report: Embedded MySQL v4.04b

2002-11-15 Thread Heikki Tuuri
Matt,
since you are using InnoDB, you cannot call server_end() and server_init()
again during the lifetime of the process. InnoDB does not clean up its
internal data structures in server_end().

Is there some special reason you would need to shut down the server and
open it again?
Regards,
Heikki
Innobase Oy
sql query
...
===
Bug report -- MySQL v4.04b, source distribution
===


Machine specs (build machine and test machine are same machine):

Dell Inspiron 8200 laptop
Windows XP Professional SP1
.NET Framework SP2

--
Build description:
--
libmysqld.dll was built using Microsoft Visual C++ 6.0 SP5 and Microsoft
Visual C++ Processor Pack SP5 (used for ASM files).  We build our own
version because we need to make a change so that the DLL will work with
C# clients (see below for more info).


Problem description:

A C# client was built using Microsoft Visual Studio.NET.  The client
calls mysql server init(), mysql server end(), and mysql server init()
again.  On second call to mysql server init(), the exception
System.NullReferenceException is thrown.

From an equivalent C++ program, an access violation occurs at the same
point.

Behavior is identical using debug and release builds of libmysqld.dll.


C# code:


using System;
using System.Runtime.InteropServices;
using System.Security;

namespace Reproduce Embedded MySQL crash
{

  class Class1
{

[STAThread]
static void Main(string[] args)
{
  MySqlAPI.ServerInit(0, null, null);
  MySqlAPI.ServerEnd();
  MySqlAPI.ServerInit(0, null, null);
  MySqlAPI.ServerEnd();
}
}

  class MySqlAPI
  {

[SuppressUnmanagedCodeSecurity]
[DllImport(libmysqld.dll,
   CharSet=System.Runtime.InteropServices.CharSet.Ansi,
   EntryPoint=mysql server init, ExactSpelling=true)]
public static extern int ServerInit(int icArgs, string [] strArgs,
string [] strGroups);


[DllImport(libmysqld.dll,
   EntryPoint=mysql server end, ExactSpelling=true)]
public static extern void ServerEnd();

  }
}

-
C++ code:
-

//
/* modified from test dll.cpp that ships with MySQL */
//

#include stdafx.h
#include winsock.h
#include mysql.h
#include stdarg.h
#include stdio.h
#include stdlib.h

const char *server groups[] = {
  test libmysqld SERVER, embedded, server, NULL
};

int main(int argc, char* argv[])
{
  mysql server init(argc, argv, (char **)server groups);
  mysql server end();
  mysql server init(argc, argv, (char **)server groups);
  mysql server end();

  return 0;
}


---
MySQL binaries:
---
Upon request, I can supply our debug and release builds of
libmysqld.dll.

---
Source code change description:
---
There is only one change we make to the MySQL 4.04b source distribution.
We define USE TLS for the mysys project.  The reason is that it's
required for clients that use LoadLibrary(), which includes all C#
clients.  More information can be found in the VC++ documentation
article Rules and Limitations for TLS.

---
My contact information:
---
Matt Solnit [EMAIL PROTECTED]




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Re: Bug report

2002-10-21 Thread Egor Egorov
Hello Douglas,
Saturday, October 19, 2002, 2:47:06 PM, you wrote:

D cd /home/mysql/mysql/data
D touch ibdata1
D How do I control that size?

It means that you already have file ibdata1 and this file has another
size that you are specifying in my.cnf ... 

D - Original Message -
D From: Egor Egorov [EMAIL PROTECTED]
D To: [EMAIL PROTECTED]
D Sent: Saturday, October 19, 2002 6:35 AM
D Subject: re: Bug report


 Douglas,
 Saturday, October 19, 2002, 1:08:14 AM, you wrote:

 D INNODB: Error:datafile /home/mysql/mysql/data/ibdata1 is of a different
D size
 D INNODB: than specified in the my.cnf file!
 D INNODB:Assertion failure in thread 138207232 in file os0file.c
 D send bug report to [EMAIL PROTECTED]
 D mysqld got signal 11
 D key_buffer_size = 16773120
 D read_buffer_size = 131072
 D sort_buffer_size = 0
 D max_used_connections = 0
 D threads_connected = 0
 D It is possible that mysqld could use up to
 D key_buffer_size + (read_buffersize + sort_buffer_size) *
 D max_connections  = 29180 bytes of memory
 D Hope that's OK; if not, decrease some variables in the equation

 D 021018 17:50:31 mysqld ended

 Douglas, did you carefully read error message?
  INNODB: Error:datafile /home/mysql/mysql/data/ibdata1 is of a different
D size
   INNODB: than specified in the my.cnf file!



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




re: Bug report

2002-10-19 Thread Egor Egorov
Douglas,
Saturday, October 19, 2002, 1:08:14 AM, you wrote:

D INNODB: Error:datafile /home/mysql/mysql/data/ibdata1 is of a different size
D INNODB: than specified in the my.cnf file!
D INNODB:Assertion failure in thread 138207232 in file os0file.c
D send bug report to [EMAIL PROTECTED]
D mysqld got signal 11
D key_buffer_size = 16773120
D read_buffer_size = 131072
D sort_buffer_size = 0
D max_used_connections = 0
D threads_connected = 0
D It is possible that mysqld could use up to
D key_buffer_size + (read_buffersize + sort_buffer_size) *
D max_connections  = 29180 bytes of memory
D Hope that's OK; if not, decrease some variables in the equation

D 021018 17:50:31 mysqld ended

Douglas, did you carefully read error message?
 INNODB: Error:datafile /home/mysql/mysql/data/ibdata1 is of a different size
  INNODB: than specified in the my.cnf file!



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug report

2002-10-18 Thread Douglas
021018 17:50:30  mysqld started

INNODB: Error:datafile /home/mysql/mysql/data/ibdata1 is of a different size
INNODB: than specified in the my.cnf file!
INNODB:Assertion failure in thread 138207232 in file os0file.c
send bug report to [EMAIL PROTECTED]
mysqld got signal 11
key_buffer_size = 16773120
read_buffer_size = 131072
sort_buffer_size = 0
max_used_connections = 0
threads_connected = 0
It is possible that mysqld could use up to
key_buffer_size + (read_buffersize + sort_buffer_size) *
max_connections  = 29180 bytes of memory
Hope that's OK; if not, decrease some variables in the equation

021018 17:50:31 mysqld ended


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug report

2002-10-18 Thread Douglas
Using  FreeBSD-4.2.6, apache+modssl, and mod_php4
Intel pentium 4  @ 1.5G
256M of memory
1st hard drive 19 G ide
2nd hard drive 40 G ide  (mysql installed here)

Mysqld got signal 11

021018 17:50:30  mysqld started

INNODB: Error:datafile /home/mysql/mysql/data/ibdata1 is of a different size
INNODB: than specified in the my.cnf file!
INNODB:Assertion failure in thread 138207232 in file os0file.c
send bug report to [EMAIL PROTECTED]
mysqld got signal 11
key_buffer_size = 16773120
read_buffer_size = 131072
sort_buffer_size = 0
max_used_connections = 0
threads_connected = 0
It is possible that mysqld could use up to
key_buffer_size + (read_buffersize + sort_buffer_size) *
max_connections  = 29180 bytes of memory
Hope that's OK; if not, decrease some variables in the equation

021018 17:50:31 mysqld ended


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug report

2002-10-18 Thread Douglas
Using  FreeBSD-4.2.6, apache+modssl, and mod_php4
Intel pentium 4  @ 1.5G
256M of memory
1st hard drive 19 G ide
2nd hard drive 40 G ide  (mysql  installed on drive 2)

mysql-max-4.0.3-beta-unknown-freebsdelf4.6.2-i386
downloaded from ftp I believe San Diego USA

Mysqld got signal 11

021018 17:50:30  mysqld started

INNODB: Error:datafile /home/mysql/mysql/data/ibdata1 is of a different size
INNODB: than specified in the my.cnf file!
INNODB:Assertion failure in thread 138207232 in file os0file.c
send bug report to [EMAIL PROTECTED]
mysqld got signal 11
key_buffer_size = 16773120
read_buffer_size = 131072
sort_buffer_size = 0
max_used_connections = 0
threads_connected = 0
It is possible that mysqld could use up to
key_buffer_size + (read_buffersize + sort_buffer_size) *
max_connections  = 29180 bytes of memory
Hope that's OK; if not, decrease some variables in the equation

021018 17:50:31 mysqld ended


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




bug report

2002-10-07 Thread Quasimodo

This occured while using phpmyadmin 2.3.0-rc4:


You seem to have found a bug in the SQL parser.
Please submit a bug report with the data chunk below:
--BEGIN CUT--
JElkOiBzcWxwYXJzZXIubGliLnBocCx2IDEuMTUgMjAwMi8wNy8yNiAxODozMDo1OSBsZW05
IEV4
cCAkPGJyIC8+CldoeSBkaWQgd2UgZ2V0IGhlcmU/IDE0MiAxNDMgMTkzMTxiciAvPgpMZWZ0
b3Zl
cjog3zxiciAvPgpBOiAxNDIgMTQzPGJyIC8+ClNRTDogQ1JFQVRFIFRBQkxFIGRkcF9rdW5k
ZW4g
KA0KICBLdW5kZW5udW1tZXIgbWVkaXVtaW50KDUpIE5PVCBOVUxMIGRlZmF1bHQgJzAnLA0K
ICBG
aXJtYSB0ZXh0IE5PVCBOVUxMLA0KICBBbnNwcmVjaHBhcnRuZXIgdGV4dCBOT1QgTlVMTCwN
CiAg
U3RyYd9lIHRleHQgTk9UIE5VTEwsDQogIFBMWiBpbnQoNSkgTk9UIE5VTEwgZGVmYXVsdCAn
MCcs
DQogIE9ydCB0ZXh0IE5PVCBOVUxMLA0KICBUZWxlZm9uIHRleHQgTk9UIE5VTEwsDQogIEZh
eCB0
ZXh0IE5PVCBOVUxMLA0KICBlTWFpbCB0ZXh0IE5PVCBOVUxMLA0KICBIb21lcGFnZSB0ZXh0
IE5P
VCBOVUxMLA0KICBQYXNzd29ydCB2YXJjaGFyKDI4KSBOT1QgTlVMTCBkZWZhdWx0ICcnLA0K
ICBQ
UklNQVJZIEtFWSAgKEt1bmRlbm51bW1lcikNCikgVFlQRT1NeUlTQU07DQoNCiMNCiMgRGF0
ZW4g
ZvxyIFRhYmVsbGUgYGRkcF9rdW5kZW5gDQojDQoNCklOU0VSVCBJTlRPIGRkcF9rdW5kZW4g
VkFM
VUVTICg0ODI3OSwgJ0p1Z2VuZG5ldHogQmFkZW4tV/xydHRlbWJlcmcnLCAnSm9oYW5uZXMg
R2ll
bmdlcicsICdNYWxlcmJ1Y2tlbCA4JywgNzEyNjMsICdXZWlsIGRlciBTdGFkdCcsICcwNzAz
MyAv
IDEzODczNycsICcnLCAnaW50ZXJuYXRpb25hbEBqdWdlbmRuZXR6LmRlJywgJ2h0dHA6Ly93
d3cu
aW50ZXJuYXRpb25hbC5qdWdlbmRuZXR6LmRlJywgJycpOw0KSU5TRVJUIElOVE8gZGRwX2t1
bmRl
biBWQUxVRVMgKDU0ODk3LCAnSnVnZW5kYWdlbnR1ciBDYWx3JywgJ1dvbGZnYW5nIEJvcmtl
bnN0
ZWluJywgJ1ZvZ3RlaXN0cmHfZSA0NCcsIDc1MzY1LCAnQ2FsdycsICcwNzA1MSAvIDE2MC00
Nzcn
LCAnMDcwNTEgLyA3OTUtNDc3JywgJzQzLkJvcmtlbnN0ZWluQGtyZWlzLWNhbHcuZGUnLCAn
aHR0
cDovL3d3dy5qdWdlbmRhZ2VudHVyLWNhbHcuZGUnLCAnJyk7DQpJTlNFUlQgSU5UTyBkZHBf
a3Vu
ZGVuIFZBTFVFUyAoMjQ2NTUsICdNVFMtSGFuZHlzaG9wJywgJ1R1bmNheSBH9mtz/Gf8cics
ICdF
dWdlbi1aZXloZXItU3RyYd9lIDEnLCA3NTM4MiwgJ0FsdGhlbmdzdGV0dCcsICcwNzA1MSAv
IDc5
OTc3MFxyXG4nLCAnMDcwNTEgLyA3OTk3NzJcclxuJywgJ2luZm9AbXRzLWhhbmR5c2hvcC5k
ZScs
ICdodHRwOi8vd3d3Lm10cy1oYW5keXNob3AuZGUnLCAnJyk7DQpJTlNFUlQgSU5UTyBkZHBf
a3Vu
ZGVuIFZBTFVFUyAoOTQ2NTMsICdWZXJzaWNoZXJ1bmdzbWFrbGVyIEJvcm5zY2hlaW4nLCAn
Jywg
J0hlaWRld2VnIDMnLCA3NTM3OCwgJ0JhZCBMaWViZW56ZWxsIC0gVUgnLCAnMDcwNTIgLyA1
NDcw
JywgJzA3MDUyIC8gNTQ3OVxyXG4nLCAnJywgJ2h0dHA6Ly93d3cuYm9ybnNjaGVpbi5kZScs
ICcn
KTsNCklOU0VSVCBJTlRPIGRkcF9rdW5kZW4gVkFMVUVTICgzNzg5NywgJ0ludGVybmF0aW9u
YWxl
cyBGb3J1bSBCdXJnIExpZWJlbnplbGwnLCAnR2VydHJ1ZCBHYW5kZW5iZXJnZXInLCAnUG9z
dGZh
Y2ggMTIyOCcsIDc1Mzc4LCAnQmFkIExpZWJlbnplbGwnLCAnMDcwNTIgLyA5MjQ1LTI0Jywg
JzA3
MDUyIC8gOTI0NS0xOCcsICdnYW5kZW5iZXJnZXJASW50ZXJuYXRpb25hbGVzRm9ydW0uZGUn
LCAn
aHR0cDovL3d3dy5pbnRlcm5hdGlvbmFsZXNmb3J1bS5kZScsICcnKTsNCklOU0VSVCBJTlRP
IGRk
cF9rdW5kZW4gVkFMVUVTICg2NTE0OCwgJ1NjaG1pZGjkdXNsZXIgLSBDb21wdXRlcnNlcnZp
Y2Ug
JiBXZXJiZXRlY2huaWsnLCAnR/xudGhlciBTY2htaWRo5HVzbGVyJywgJ1Bvc3RmYWNoIDEz
NDYn
LCA3MzA1MCwgJ0Vpc2xpbmdlbicsICcwNzE2MSAvIDgyMTUzNicsICcwNzE2MSAvIDgyMTUz
NyAn
LCAnaW5mb0BzY2htaWRoYWV1c2xlci5kZScsICdodHRwOi8vd3d3LnNjaG1pZGhhZXVzbGVy
LmRl
JywgJycpOw0KSU5TRVJUIElOVE8gZGRwX2t1bmRlbiBWQUxVRVMgKDEsICcnLCAnJywgJycs
IDAs
ICcnLCAnJywgJycsICcnLCAnJywgJzEnKTs=
---END CUT---


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: bug report

2002-10-07 Thread Mark Matthews

Quasimodo wrote:

This occured while using phpmyadmin 2.3.0-rc4:


You seem to have found a bug in the SQL parser.
Please submit a bug report with the data chunk below:
--BEGIN CUT--
JElkOiBzcWxwYXJzZXIubGliLnBocCx2IDEuMTUgMjAwMi8wNy8yNiAxODozMDo1OSBsZW05
[snip]

This is reporting a bug in phpMyAdmin's SQL parser, not MySQL's. You 
need to file this bug report at phpMyAdmin's sourceforge bug page:

http://sourceforge.net/tracker/?group_id=23067atid=377408

-Mark

-- 
For technical support contracts, visit https://order.mysql.com/?ref=mmma

__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /  Mark Matthews [EMAIL PROTECTED]
  / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer - JDBC/Java
 /_/  /_/\_, /___/\___\_\___/ Flossmoor (Chicago), IL USA
___/ www.mysql.com



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Bug report

2002-09-27 Thread gerald_clark

This is documented behavior.
Indexes are not used with DESC.
Ver 4.X does, however support DESC with an index.

Grigoriy Vinogradov wrote:

Bug Report:

Version: 3.23.51-max
OS: Windows ME

Problem:
Synopsis: Does not use index when ordering records on datetime field in
the descending order, even though though this field is NOT NULL.

I created the following table:

CREATE TABLE Threads (threadID int NOT NULL PRIMARY KEY,
  forumID int NOT NULL REFERENCES Forums(forumID),
  discussion char(100),
  starter char(40),
  num_replies int,
  last_modified datetime NOT NULL,
  INDEX (forumID, last_modified));

When I execute the following query with explain word I notice that index
is not used:

explain select * from Threads
where forumID = 1 order by last_modified desc;

If I want to select these records in the ascending order, than the index
IS used.

Thanks,
Greg Vinogradov


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail 
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


  




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug report

2002-09-26 Thread Grigoriy Vinogradov

Bug Report:

Version: 3.23.51-max
OS: Windows ME

Problem:
Synopsis: Does not use index when ordering records on datetime field in
the descending order, even though though this field is NOT NULL.

I created the following table:

CREATE TABLE Threads (threadID int NOT NULL PRIMARY KEY,
  forumID int NOT NULL REFERENCES Forums(forumID),
  discussion char(100),
  starter char(40),
  num_replies int,
  last_modified datetime NOT NULL,
  INDEX (forumID, last_modified));

When I execute the following query with explain word I notice that index
is not used:

explain select * from Threads
where forumID = 1 order by last_modified desc;

If I want to select these records in the ascending order, than the index
IS used.

Thanks,
Greg Vinogradov


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: You seem to have found a bug in the SQL parser. Please submit a bug report with the

2002-08-15 Thread Egor Egorov

John,
Wednesday, August 14, 2002, 12:26:29 PM, you wrote:

JMH data chunk below.

Description:
JMH Bug in SQL parser.

JMH --BEGIN CUT--
JMH 
eNotjs0KgkAYRfc9xV20itBxzMqhHyImCoxIA9eJX41hOY1m9YI+Vz+4u+dwFre7SQXKe66PpiRj
JMH 
5VliaaX7NRzL8cAZ4zYb2XwIZyxcJjwfOV19yJdGd5IY2LNOrN5IsxRPwpkqKDI0B4cLd9AWAZ2q
JMH oiYj0LRmIX5FC9E+EIhkI5cH9LAKd1s8vmcQr2Uo/3N6KdTtAz8HMRA=
JMH ---END CUT--- 
Fix:

What is the format of the data above?





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




You seem to have found a bug in the SQL parser. Please submit a bug report with the

2002-08-14 Thread John Mørck Hansen

data chunk below.

Description:
Bug in SQL parser.

--BEGIN CUT--
eNotjs0KgkAYRfc9xV20itBxzMqhHyImCoxIA9eJX41hOY1m9YI+Vz+4u+dwFre7SQXKe66PpiRj
5VliaaX7NRzL8cAZ4zYb2XwIZyxcJjwfOV19yJdGd5IY2LNOrN5IsxRPwpkqKDI0B4cLd9AWAZ2q
oiYj0LRmIX5FC9E+EIhkI5cH9LAKd1s8vmcQr2Uo/3N6KdTtAz8HMRA=
---END CUT--- 
Fix:


Submitter-Id:  submitter ID
Originator:John Mørck Hansen
Organization:
 
MySQL support: none [none | licence | email support | extended email support ]
Synopsis:  Just a query.
Severity:  critical 
Priority:  high 
Category:  mysql
Class: sw-bug 
Release:   mysql-3.23.49 (Source distribution) (Debian 3.0r0 .deb)

Environment:

System: Linux malga 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   13 Aug 13 10:50 /lib/libc.so.6 - libc-2.2.5.so
-rwxr-xr-x1 root root  1153784 Aug  2 05:36 /lib/libc-2.2.5.so
-rw-r--r--1 root root  2390922 Aug  2 05:37 /usr/lib/libc.a
-rw-r--r--1 root root  178 Aug  2 05:37 /usr/lib/libc.so
-rw-r--r--1 root root   716080 Jan 13  2002 /usr/lib/libc-client.so.2001
Configure command: ./configure  --prefix=/usr --exec-prefix=/usr 
--libexecdir=/usr/sbin --datadir=/usr/share --sysconfdir=/etc/mysql 
--localstatedir=/var/lib/mysql --includedir=/usr/include --infodir=/usr/share/info 
--mandir=/usr/share/man --enable-shared --with-libwrap --enable-assembler 
--with-berkeley-db --with-innodb --enable-static --enable-shared --enable-local-infile 
--with-raid --enable-thread-safe-client --without-readline 
--with-unix-socket-path=/var/run/mysqld/mysqld.sock --with-mysqld-user=mysql 
--without-bench --with-client-ldflags=-lstdc++ --with-extra-charsets=all


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: BUG report (CREATE TEMPORARY TABLES problem) 4.0.2/4.0.3-bk snapshot

2002-08-03 Thread Sinisa Milivojevic

Sergey S. Kostyliov writes:
 Description:
 Any grant at a tables level make 'CREATE TEMPORARY TABLE' privilege
 not working
 ERROR 1142
 
 How-To-Repeat:
   1) (under root)
   mysql GRANT CREATE TEMPORARY TABLES ON *.* TO
   test_user@localhost IDENTIFIED BY 'test_pass';
   Query OK, 0 rows affected (0.01 sec)
   
   2) (under test_user)
   mysql CREATE TEMPORARY TABLE tmp_table(i INT);
   Query OK, 0 rows affected (0.00 sec)
   
   3) (under root)
   mysql CREATE TABLE t (i INT);
   Query OK, 0 rows affected (0.00 sec)
   mysql GRANT SELECT ON test.t TO test_user@localhost;
   Query OK, 0 rows affected (0.00 sec)
   
   4) (under test_user)
   mysql CREATE TEMPORARY TABLE tmp_table(i INT);
   ERROR 1142: create command denied to user: 'test_user@localhost' for table 
 
 'tmp_table'
 

Hi!

Thank you for your bug report.

Thanks to it, the above bug was fixed and fix will come up in 4.0.3.

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




BUG report (CREATE TEMPORARY TABLES problem) 4.0.2/4.0.3-bk snapshot

2002-07-30 Thread Sergey S. Kostyliov

Description:
Any grant at a tables level make 'CREATE TEMPORARY TABLE' privilege
not working
ERROR 1142

How-To-Repeat:
1) (under root)
mysql GRANT CREATE TEMPORARY TABLES ON *.* TO
test_user@localhost IDENTIFIED BY 'test_pass';
Query OK, 0 rows affected (0.01 sec)

2) (under test_user)
mysql CREATE TEMPORARY TABLE tmp_table(i INT);
Query OK, 0 rows affected (0.00 sec)

3) (under root)
mysql CREATE TABLE t (i INT);
Query OK, 0 rows affected (0.00 sec)
mysql GRANT SELECT ON test.t TO test_user@localhost;
Query OK, 0 rows affected (0.00 sec)

4) (under test_user)
mysql CREATE TEMPORARY TABLE tmp_table(i INT);
ERROR 1142: create command denied to user: 'test_user@localhost' for table 
 
'tmp_table'

Fix:
mysql DELETE FROM mysql.tables_priv;
mysqadmin relad

Submitter-Id:
Originator:Sergey S. Kostyliov
Organization:
eHouse (http://www.ehouse.ru)
MySQL support: none
Synopsis:  'CREATE TEMPORARY TABLE' privilege broken by any per-tables grant
Severity:   serious
Priority:  medium
Category:  mysql
Class: sw-bug
Release:   mysql-4.0.3-alpha (Source distribution)
Server: /usr/bin/mysqladmin  Ver 8.35 Distrib 4.0.3-alpha, for pc-linux-gnu 
on i686
Copyright (C) 2000 MySQL AB  MySQL Finland AB  TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version  4.0.3-alpha-log
Protocol version10
Connection  Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: 22 hours 39 min 52 sec

Threads: 2  Questions: 6558765  Slow queries: 0  Opens: 481  Flush tables: 1  
Open tables: 234  Queries per second avg: 80.385
Environment:
System: Linux white.unishop.org.ru 2.4.19-rc3aa3 #1 SMP ðÎÄ éÀÌ 29 12:01:56 
MSD 2002 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc 
/usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 2731 (Red Hat Linux 7.3 2.96-110)
Compilation info: CC='/usr/local/gcc-3.1/bin/gcc'  CFLAGS='-O4 -march=pentium3 
-mcpu=pentium3 -msse -pipe'  CXX='/usr/local/gcc-3.1/bin/gcc'  CXXFLAGS='-O4 
-march=pentium3 -mcpu=pentium3 -msse -pipe -felide-constructors 
-fno-exceptions -fno-rtti -DUSE_MYSYS_NEW'  LDFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   13 éÀÌ  8 20:18 /lib/libc.so.6 - 
libc-2.2.5.so
-rwxr-xr-x1 root root  1260480 éÀÎ 18 18:45 /lib/libc-2.2.5.so
-rw-r--r--1 root root  2312370 éÀÎ 18 18:13 /usr/lib/libc.a
-rw-r--r--1 root root  178 éÀÎ 18 17:58 /usr/lib/libc.so
lrwxrwxrwx1 root root   10 éÀÌ  8 23:35 /usr/lib/libc-client.a 
- c-client.a
Configure command: ./configure  --prefix=/usr --libexecdir=/usr/sbin 
--localstatedir=/var/lib/mysql --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-assembler 
--with-mysqld-ldflags=-all-static --with-mysql-user=mysql --with-innodb 
--with-unix-socket-path=/var/lib/mysql/mysql.sock 
--with-extra-charsets=latin1,koi8_ru,cp1251 --enable-thread-safe-client


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: fulltext searching / BUG report

2002-07-27 Thread Marko Djukic

sergei,

no i meant loading it up from raw data again. in the sense, i empty the
database, then i have a script which takes a directory full of files and reads
them into the database. each time i do that the database ends up corrupted.

is there any way to figure out where the corruption is? is it the files?
different character sets (some are italian, some english, etc)? or maybe
something that my script is doing?


thanks,

marko


Quoting Sergei Golubchik [EMAIL PROTECTED]:

 Hi!
 
 On Jul 26, Marko Djukic wrote:
  Sergei,
  
  finally managed to try out this solution, resolved my out of disk
  space problem...
  
  and it works now! just as you found out the boolean searches work fine
  now...
  
  any idea what causes the corruption in the first place? different
  charsets?  because this happens every time i load up the database from
  zero. it's not a horrible thing, but still a bit weird having to tell
  customers that they need to repair the database each time they load it
  up.
 
 Strange.
 I dumped the whole table with mysqldump, and loaded it up again.
 No bug - works fine for me.
 
 Regards,
 Sergei
 
 -- 
 MySQL Development Team
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik [EMAIL PROTECTED]
  / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
 /_/  /_/\_, /___/\___\_\___/  Osnabrueck, Germany
___/
 




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: BUG report (select distinct...) 4.0.2 and latest bk snapshot

2002-07-24 Thread Sinisa Milivojevic

Sergey S. Kostyliov writes:
 At first I want to thank you for a fast answer,
 
 On Tuesday 23 July 2002 21:45, Peter Zaitsev wrote:
  On Tuesday 23 July 2002 19:39, Sergey S. Kostyliov wrote:
   Description:
  
 ERROR 2013: Lost connection to MySQL server during query.
 snip
 Note:
 The same results with oficial mysql-4.0.2 and latest bk snapshot,
 mysql was compiled with both gcc-3.1 and gcc-295.3
 
  Unfortunately we can't test this bug report as we do not have tables to run
  this query with.
 
  Please check tables you have at first to eliminate corrupted table is the
  source of the problem and if problem persist upload them into secret
  directory at ftp://support.mysql.com
 
 Sorry, but it doesn't looks like a table corruption.
 To be sure i've tested this with fresh tables created from a sql script.
 I can also add that this is easily reproducable on two of my boxes (UP  SMP)
 
  If you are able to create small repeatable case you may send it in the
  mail.
 
 Unfortunately it's a kind of big test case (1.2Mb)
 
 I had uploaded a test case with name select_distinct-ssk.tar.gz to 
 ftp://support.mysql.com/pub/mysql/secret
 
 -- 
 
Best regards,
Sergey S. Kostyliov [EMAIL PROTECTED]
Public PGP key: http://sysadminday.org.ru/rathamahata.asc
 

If the table names are :

product_supplier
route
supplier
shop_product_supplier


then I have got them. I will test your case today.

Is it one bug or two ?? 

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: BUG report (select distinct...) 4.0.2 and latest bk snapshot

2002-07-24 Thread Sergey S. Kostyliov

On Wednesday 24 July 2002 17:23, Sinisa Milivojevic wrote:
 Sergey S. Kostyliov writes:
  At first I want to thank you for a fast answer,
 
  On Tuesday 23 July 2002 21:45, Peter Zaitsev wrote:
   On Tuesday 23 July 2002 19:39, Sergey S. Kostyliov wrote:
Description:
   
ERROR 2013: Lost connection to MySQL server during query.

cut

  I had uploaded a test case with name select_distinct-ssk.tar.gz to
  ftp://support.mysql.com/pub/mysql/secret

cut

 If the table names are :

 product_supplier
 route
 supplier
 shop_product_supplier

Yes they are. 4 tables, names are right.

 then I have got them. I will test your case today.

 Is it one bug or two ??

It'is a one bug AFAIK.

-- 

   Best regards,
   Sergey S. Kostyliov [EMAIL PROTECTED]
   Public PGP key: http://sysadminday.org.ru/rathamahata.asc

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




BUG report (select distinct...) 4.0.2 and latest bk snapshot

2002-07-23 Thread Sergey S. Kostyliov

Description:
ERROR 2013: Lost connection to MySQL server during query.
How-To-Repeat:

select distinct s.supplier_id, s.who_pay, r.name as rname, s.name,
s.nick, s.address, s.contact_person, s.email, s.fax,
s.comment
from supplier s, product_supplier ps, shop_product_supplier sps
use index(product_supplier_id)
left join route r on r.route_id=s.route_id
where ps.product_supplier_id=sps.product_supplier_id and
sps.shop_id=10 and ps.supplier_id=s.supplier_id
order by name
limit 0, 10


Result:
ERROR 2013: Lost connection to MySQL server during query
Note:
The same results with oficial mysql-4.0.2 and latest bk snapshot,
mysql was compiled with both gcc-3.1 and gcc-295.3

Fix:
Don't use distinct.
Submitter-Id:  submitter ID
Originator:Sergey S. Kostyliov
Organization:
eHouse (http://www.ehouse.ru)
MySQL support: none
Synopsis:  SELECT DISTINCT ... failed
Severity:   serious
Priority:  medium
Category:  mysql
Class: sw-bug
Release:   mysql-4.0.3-alpha (Source distribution)
Server: /usr/bin/mysqladmin  Ver 8.35 Distrib 4.0.3-alpha, for pc-linux-gnu 
on i686
Copyright (C) 2000 MySQL AB  MySQL Finland AB  TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version  4.0.3-alpha
Protocol version10
Connection  Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: 56 sec

Threads: 1  Questions: 1  Slow queries: 0  Opens: 6  Flush tables: 1  Open 
tables: 0  Queries per second avg: 0.018
Environment:
machine, os, target, libraries (multiple lines)
System: Linux white.unishop.org.ru 2.4.19-rc2aa1 #1 SMP Thu Jul 18 10:53:30 
MSD 2002 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc 
/usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 2731 (Red Hat Linux 7.3 2.96-110)
Compilation info: CC='/usr/local/gcc-3.1/bin/gcc'  CFLAGS='-O4 -march=pentium3 
-mcpu=pentium3 -msse -pipe'  CXX='/usr/local/gcc-3.1/bin/gcc'  CXXFLAGS='-O4 
-march=pentium3 -mcpu=pentium3 -msse -pipe -felide-constructors 
-fno-exceptions -fno-rtti -DUSE_MYSYS_NEW'  LDFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   13 éÀÌ  8 20:18 /lib/libc.so.6 - 
libc-2.2.5.so
-rwxr-xr-x1 root root  1260480 éÀÎ 18 18:45 /lib/libc-2.2.5.so
-rw-r--r--1 root root  2312370 éÀÎ 18 18:13 /usr/lib/libc.a
-rw-r--r--1 root root  178 éÀÎ 18 17:58 /usr/lib/libc.so
lrwxrwxrwx1 root root   10 éÀÌ  8 23:35 /usr/lib/libc-client.a 
- c-client.a
Configure command: ./configure  --prefix=/usr --libexecdir=/usr/sbin 
--localstatedir=/var/lib/mysql --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-assembler 
--with-mysqld-ldflags=-all-static --with-mysql-user=mysql --with-innodb 
--with-unix-socket-path=/var/lib/mysql/mysql.sock 
--with-extra-charsets=latin1,koi8_ru,cp1251 --enable-thread-safe-client


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: BUG report (select distinct...) 4.0.2 and latest bk snapshot

2002-07-23 Thread Peter Zaitsev

On Tuesday 23 July 2002 19:39, Sergey S. Kostyliov wrote:
 Description:

   ERROR 2013: Lost connection to MySQL server during query.

 How-To-Repeat:

   select distinct s.supplier_id, s.who_pay, r.name as rname, s.name,
 s.nick, s.address, s.contact_person, s.email, s.fax,
 s.comment
 from supplier s, product_supplier ps, shop_product_supplier sps
 use index(product_supplier_id)
 left join route r on r.route_id=s.route_id
 where ps.product_supplier_id=sps.product_supplier_id and
 sps.shop_id=10 and ps.supplier_id=s.supplier_id
 order by name
 limit 0, 10


 Result:
 ERROR 2013: Lost connection to MySQL server during query
   Note:
   The same results with oficial mysql-4.0.2 and latest bk snapshot,
   mysql was compiled with both gcc-3.1 and gcc-295.3



Unfortunately we can't test this bug report as we do not have tables to run 
this query with. 

Please check tables you have at first to eliminate corrupted table is the 
source of the problem and if problem persist upload them into secret 
directory at ftp://support.mysql.com

If you are able to create small repeatable case you may send it in the mail.


-- 
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /Mr. Peter Zaitsev [EMAIL PROTECTED]
  / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Full-Time Developer
 /_/  /_/\_, /___/\___\_\___/   Moscow, Russia
___/   www.mysql.com   M: +7 095 725 4955


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: BUG report (select distinct...) 4.0.2 and latest bk snapshot

2002-07-23 Thread Sergey S. Kostyliov

At first I want to thank you for a fast answer,

On Tuesday 23 July 2002 21:45, Peter Zaitsev wrote:
 On Tuesday 23 July 2002 19:39, Sergey S. Kostyliov wrote:
  Description:
 
  ERROR 2013: Lost connection to MySQL server during query.
snip
  Note:
  The same results with oficial mysql-4.0.2 and latest bk snapshot,
  mysql was compiled with both gcc-3.1 and gcc-295.3

 Unfortunately we can't test this bug report as we do not have tables to run
 this query with.

 Please check tables you have at first to eliminate corrupted table is the
 source of the problem and if problem persist upload them into secret
 directory at ftp://support.mysql.com

Sorry, but it doesn't looks like a table corruption.
To be sure i've tested this with fresh tables created from a sql script.
I can also add that this is easily reproducable on two of my boxes (UP  SMP)

 If you are able to create small repeatable case you may send it in the
 mail.

Unfortunately it's a kind of big test case (1.2Mb)

I had uploaded a test case with name select_distinct-ssk.tar.gz to 
ftp://support.mysql.com/pub/mysql/secret

-- 

   Best regards,
   Sergey S. Kostyliov [EMAIL PROTECTED]
   Public PGP key: http://sysadminday.org.ru/rathamahata.asc

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: fulltext searching / BUG report

2002-07-02 Thread Thomas Spahni

On Tue, 2 Jul 2002, Erlend Hopsø Strømsvik wrote:

 Download the 4.0.2 source and compile it. 
 Things seem to work a lot better with the 4.0.2. And it won't crash with
 special combinations of words :)

Hi,

Some things with BOOLEAN MODE seem still broken. Especially the '*' 
jokers. I have 4.0.2 taken from the source tree yesterday. I'm querying
against a table with 14579 documents containing 187621564 bytes of data
and a fulltext index.

Table structure is:
CREATE TABLE `plaintext` (
  `id` int(11) NOT NULL auto_increment,
  `doc` varchar(16) NOT NULL default '',
  `code` int(10) unsigned NOT NULL default '0',
  `part` tinyint(4) NOT NULL default '0',
  `bgetxt` text,
  PRIMARY KEY  (`id`),
  KEY `doc` (`doc`),
  KEY `code` (`code`),
  FULLTEXT KEY `bgetxt` (`bgetxt`)
) TYPE=MyISAM

Bug example:

select doc from plaintext \
where match(bgetxt) against ('integrität');

yields:

171 rows in set (0.02 sec)

and:

SELECT doc FROM plaintext \
WHERE MATCH(BGETXT) AGAINST ('integrität adäquanz');

yields:

198 rows in set (0.02 sec)

6 of these rows contain both words:

SELECT doc FROM plaintext \
WHERE MATCH(BGETXT) AGAINST ('+integrität +adäquanz' IN BOOLEAN MODE);

yields:

+---+
| doc   |
+---+
| 112 V 30  |
| 115 V 133 |
| 117 V 359 |
| 117 V 369 |
| 118 V 286 |
| 119 V 335 |
+---+
6 rows in set (0.01 sec)

but now look at this:

There are lots of possible endings for my search words:

integrität integritätsschaden adäquat adäquanz adäquate ... (many more)

SELECT doc FROM plaintext \
WHERE MATCH (bgetxt) AGAINST ('integr*' IN BOOLEAN MODE);

gives:

997 rows in set (0.11 sec)

this looks is still good! Many additional hits are found.

Therefore I do:

SELECT doc FROM plaintext \
WHERE MATCH (bgetxt) AGAINST ('integr* adäqu*' IN BOOLEAN MODE);

and I get:

+--+
| doc  |
+--+
| 117 V 71 |
+--+
1 row in set (2.46 sec)

The text which has been found contains text beginning with:

quote--
10. Urteil vom 11. Januar 1991 i.S. X gegen Bundesamt für
Militärversicherung und Versicherungsgericht des Kantons Solothurn 

Regeste

Art. 23 Abs. 1 und Art. 25 Abs. 1 MVG: Bemessung des
Integritätsschadens und Beginn der Integritätsrente.

- Bemessung des Integritätsschadens (Zusammenfassung der
Rechtsprechung; Erw. 3a).

- Die Beeinträchtigung der Integrität bemisst sich an den Folgen,
welche die geschädigte Gesundheit auf primäre Lebensfunktionen hat
(Erw. 3a/bb/aaa).

- Der Integritätsschadensgrad kann 60% übersteigen, richtet sich
jedoch
weder direkt noch analogieweise nach den Ansätzen gemäss Anhang 3 zur UVV
(Bestätigung der Rechtsprechung; Erw. 3c/aa).

- Bemessung des Integritätsschadens bei mehreren körperlichen snip
-unquote---

Conclusion:

combinations of 2 words with asterisk joker IN BOOLEAN MODE
do not work.

Thomas Spahni
-- 
sql, query


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: fulltext searching / BUG report

2002-07-02 Thread Sergei Golubchik

Hi!

On Jul 02, Thomas Spahni wrote:
 On Tue, 2 Jul 2002, Erlend Hops? Str?msvik wrote:
 
  Download the 4.0.2 source and compile it. 
  Things seem to work a lot better with the 4.0.2. And it won't crash with
  special combinations of words :)
 
 Hi,
 
 Some things with BOOLEAN MODE seem still broken. Especially the '*' 
 jokers. I have 4.0.2 taken from the source tree yesterday. I'm querying
 against a table with 14579 documents containing 187621564 bytes of data
 and a fulltext index.
 
...

 SELECT doc FROM plaintext \
 WHERE MATCH (bgetxt) AGAINST ('integr* ad?qu*' IN BOOLEAN MODE);
 
 Conclusion:
 
 combinations of 2 words with asterisk joker IN BOOLEAN MODE
 do not work.

Hmm...
According to the mysql-test/t/fulltext.test it DOES work:
select * from t1 where MATCH a,b AGAINST (+call* +coll* IN BOOLEAN MODE);

I've also tried the same query w/o '+' (to make it similar to yours) -
it worked also.

Could you try to create a test case for the bug ?

Regards,
Sergei

-- 
MySQL Development Team
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
/_/  /_/\_, /___/\___\_\___/  Osnabrueck, Germany
   ___/

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




BUG REPORT FOR MYSQL

2002-06-27 Thread Wan YU

Hi,

I'm doing research on DBMS recently and have found
some bugs in mysql's source codes.I think it will be
more convenient to point out them directly than using
mysqlbug.The following are my finds.

mysqladmin -version output:

mysqladmin  Ver 8.22 Distrib 3.23.44, for pc-linux-gnu
on i686
Copyright (C) 2000 MySQL AB  MySQL Finland AB  TCX
DataKonsult AB

BUGS REPORT:

1. file:innobase/os/os0sync.c
   function: os_event_wait_time
   line:237 
   
   This function uses Windows API
WaitForSingleObject while passing a wrong parameter
to it. Because WaitForSingleObject wants the second
parameter to be quantity of milliseconds while it
actually gets the quantity of seconds.

FIX RECOMMENDATION: Maybe it should be modified this
way,
   
err = WaitForSingleObject(event, time);

2. file: innobase/log/log0log.c
   function: log_archive_do
   line: 2171

   There will be a deadlock obviously! 

FIX RECOMMENTDATION: Comment this statement.



Please check these places and I'm expecting your
answer. 
Good luck,

sincerely,

YBETTER



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: BUG REPORT FOR MYSQL

2002-06-27 Thread Heikki Tuuri

 Hi!
 
 - Original Message -
 From: Wan YU [EMAIL PROTECTED]
 Newsgroups: mailing.database.mysql
 Sent: Thursday, June 27, 2002 8:25 PM
 Subject: BUG REPORT FOR MYSQL
 
 
  Hi,
 
  I'm doing research on DBMS recently and have found
  some bugs in mysql's source codes.I think it will be
  more convenient to point out them directly than using
  mysqlbug.The following are my finds.
 
  mysqladmin -version output:
 
  mysqladmin  Ver 8.22 Distrib 3.23.44, for pc-linux-gnu
  on i686
  Copyright (C) 2000 MySQL AB  MySQL Finland AB  TCX
  DataKonsult AB
 
  BUGS REPORT:
 
  1. file:innobase/os/os0sync.c
 function: os_event_wait_time
 line:237
 
 This function uses Windows API
  WaitForSingleObject while passing a wrong parameter
  to it. Because WaitForSingleObject wants the second
  parameter to be quantity of milliseconds while it
  actually gets the quantity of seconds.
 
 The parameter to os_event_wait_time function is in microseconds. To get
 milliseconds we divide it by 1000.
 
  FIX RECOMMENDATION: Maybe it should be modified this
  way,
 
  err = WaitForSingleObject(event, time);
 
  2. file: innobase/log/log0log.c
 function: log_archive_do
 line: 2171
 
 There will be a deadlock obviously!
 
 These lines of code are not used in MySQL. But I do not see a deadlock
 either: the thread just waits that an event becomes signaled again.
 
  FIX RECOMMENTDATION: Comment this statement.
 
 
 
  Please check these places and I'm expecting your
  answer.
  Good luck,
 
  sincerely,
 
  YBETTER
 
 Regards,
 
 Heikki
 Innobase Oy
 (sql database)



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: [Fwd: Bug Report]

2002-05-17 Thread Egor Egorov

hugh,
Friday, May 17, 2002, 5:06:46 AM, you wrote:

h Description: /usr/libexec/mysqld: error while loading shared libraries: cannot open 
shared object file: cannot open shared object file: No such file or directory.

h How-To-Repeat:
h /usr/libexec/mysqld -u root
h /usr/bin/safe_mysqld
h Fix:
h how to correct or work around the problem, if known (multiple lines)

What exactly shared library MySQL can't open? Please, show me the full
error message and the output of the following: 

ldd /usr/libexec/mysqld 






-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




[Fwd: Bug Report]

2002-05-16 Thread hugh



 Original Message 
Subject: Bug Report
Date: Thu, 16 May 2002 21:28:21 -0400
From: hugh [EMAIL PROTECTED]
Organization: The Dualies
To: [EMAIL PROTECTED]

SEND-PR: -*- send-pr -*-
SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as
SEND-PR: will all comments (text enclosed in `' and `').
SEND-PR:
From: root
To: [EMAIL PROTECTED]
Subject: Error while loading shared libraries: cannot open shared object
file: cannot open shared object file: No such file or directory.

Description: /usr/libexec/mysqld: error while loading shared libraries: cannot open 
shared object file: cannot open shared object file: No such file or directory.


How-To-Repeat:
/usr/libexec/mysqld -u root
/usr/bin/safe_mysqld
Fix:
how to correct or work around the problem, if known (multiple lines)

Submitter-Id:  submitter ID
Originator:
Organization:
 organization of PR author (multiple lines)
MySQL support: [none | licence | email support | extended email support ]
Synopsis:  synopsis of the problem (one line)
Severity:  [ non-critical | serious | critical ] (one line)
Priority:  [ low | medium | high ] (one line)
Category:  mysql
Class: [ sw-bug | doc-bug | change-request | support ] (one line)
Release:   mysql-3.23.39 (Source distribution)

Environment:
Slackware current from mysql.tgz
System: Linux shadowman 2.2.19 #24 Wed Jun 20 18:24:16 PDT 2001 i586
unknown
Architecture: i586

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc
/usr/bin/cc
GCC: Reading specs from
/usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS='' 
LDFLAGS=''
LIBC: 
lrwxrwxrwx   1 root root   13 Apr 24 21:54 /lib/libc.so.6 -
libc-2.2.3.so
-rwxr-xr-x   1 root root  1013224 Mar 21  2000
/lib/libc-2.1.3.so
-rwxr-xr-x   1 root root  4783716 May 25  2001
/lib/libc-2.2.3.so
-rw-r--r--   1 root root 24721042 May 25  2001 /usr/lib/libc.a
-rw-r--r--   1 root root  178 May 25  2001 /usr/lib/libc.so
lrwxrwxrwx   1 root root   29 Apr 23 03:09
/usr/lib/libc.so.1 - /usr/i486-sysv4/lib/libc.so.1
Configure command: ./configure  --prefix=/usr --with-mysqld-user=mysql
--with-unix-socket-path=/var/run/mysql/mysql.sock
--localstatedir=/var/lib/mysql --with-pthread
--enable-thread-safe-client --enable-assembler --with-raid
--with-libwrap --without-bench i386-slackware-linux

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug-Report

2002-05-12 Thread schmieder, holger


 Hallo,
 
 i tried to use MySQL together with MySQL-ODBC 3.51.02 für an MS-Project
 Database. While storing the following error comes up.
 
  ... 
 
 When the error occures the programm has written 19 tables with entrys.
 
 Is it realy a bug or is do you now a solution to work with MS-Project ???
 
 Thank you for every info.
 
 Best regards
 
 Holger Schmieder
 
 mailto:[EMAIL PROTECTED]


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Followup: Mysql Bug Report, Random crashes, reason unknown

2002-04-26 Thread Gavin Woodhatch

Hello All

Many Thanks specialy goto Egor Egorov.

We changed the RAM in the Server .. MySQL has now been Running
(without Crash) for over 48 h .. Problem solved !


Thanks again for your Support !

Cheers

Gavin Woodhatch

NetZone Ltd.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Mysql Bug Report, Random crashes, reason unknown

2002-04-22 Thread Gavin Woodhatch

Description:
MySQL Crashes often.
How-To-Repeat:
Don't know
Fix:
Don't know

Submitter-Id:  Gavin Woodhatch
Originator:
Organization:  NetZone Ltd.
MySQL support: [none]
Synopsis:  Random MySQL crashes (1-2 every 24h)
Severity:  [ serious ]
Priority:  [ medium ]
Category:  mysql
Class: [ sw-bug ]
Release:   mysql-3.23.49a (Official MySQL Binary)

Environment:
System: Linux db1 2.4.10-4GB #1 Tue Sep 25 12:33:54 GMT 2001 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)
Compilation info: CC='gcc'  CFLAGS='-Wimplicit -Wreturn-type -Wid-clash-51 -Wswi
tch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec
-Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mcpu=penti
umpro -O3 -fno-omit-frame-pointer'  CXX='gcc'  CXXFLAGS='-Wimplicit -Wreturn-typ
e -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wi
mplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings
 -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy
 -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mcpu=pentium
pro -O3 -fno-omit-frame-pointer'  LDFLAGS=''
LIBC:
-rwxr-xr-x1 root root  1384168 Sep 20  2001 /lib/libc.so.6
-rw-r--r--1 root root 25215580 Sep 20  2001 /usr/lib/libc.a
-rw-r--r--1 root root  178 Sep 20  2001 /usr/lib/libc.so
Configure command: ./configure --prefix=/usr/local/mysql --enable-assembler --wi
th-extra-charsets=complex --enable-thread-safe-client --with-mysqld-ldflags=-all
-static --with-client-ldflags=-all-static --with-other-libc=/usr/local/mysql-gli
bc '--with-comment=Official MySQL Binary' --prefix=/usr/local/mysql --with-extra
-charset=complex --enable-thread-safe-client --enable-local-infile 'CFLAGS=-Wimp
licit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subsc
ripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compa
re -Wwrite-strings -Wunused -mcpu=pentiumpro -O3 -fno-omit-frame-pointer' 'CXXFL
AGS=-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wc
har-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Ws
ign-compare -Wwrite-strings -Woverloaded-virtual -Wextern-inline -Wsign-promo -W
reorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-excepti
ons -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-pointer' CXX=gcc


Attached Here are the last two Stack Traces, and logfile entrys i dont know if there 
right, i
grabbed the mysqld.sym from the server.rpm, but am using the tar.gz
binary package. I did not find the mysqld.sym.gz in the tar.gz
archiv.

here is the bit of the log file for our last crash:

mysqld got signal 4;
snip
key_buffer_size=16773120
record_buffer=1044480
sort_buffer=4194296
max_used_connections=29
max_connections=150
threads_connected=19
It is possible that mysqld could use up to
key_buffer_size + (record_buffer + sort_buffer)*max_connections = 783778 K
snip
Stack range sanity check OK, backtrace follows:
0x806db54
0x811c328
0x806afdd
0x808fb1d
0x8092cb8
0x808c1db
0x807472a
0x8078828
0x8073904
0x8072cb7
Stack trace seems successful - bottom reached
snip
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd-query at 0x83a9c78 = SELECT id FROM dvdone_rented WHERE id_movie = '10089'
and state != 'back'
thd-thread_id=23860

And here is the resolved Stack Trace .. (hope its right ..)

db1:/tmp # /usr/local/mysql/bin/resolve_stack_dump -s /tmp/mysqld.sym -n 
/tmp/mysql.stack1
0x806db54 server_init__Fv + 8
0x811c328 pthread_mutex_trylock + 8
0x806afdd mysql_lock_tables__FP3THDPP8st_tableUi + 573
0x808fb1d make_join_select__FP4JOINP10SQL_SELECTP4Item + 713
0x8092cb8 create_myisam_tmp_table__FP8st_tableP15TMP_TABLE_PARAMUi + 336
0x808c1db 
mysql_select__FP3THDP13st_table_listRt4List1Z4ItemP4ItemP8st_orderT4T3T4UiP13select_result
 + 3611
0x807472a do_command__FP3THD + 3466
0x8078828 
add_table_to_list__FP11Table_identP10lex_stringb13thr_lock_typePt4List1Z6StringT4 + 280
0x8073904 mysql_table_dump__FP3THDPcT1i + 260
0x8072cb7 check_for_max_user_connections__FPCciT0 + 311

Here is some more info on the 2nd last crash

mysqld got signal 11;
snip
key_buffer_size=16773120
record_buffer=1044480
sort_buffer=4194296
max_used_connections=28
max_connections=150
threads_connected=19
It is possible that mysqld could use up to
key_buffer_size + (record_buffer + sort_buffer)*max_connections = 783778 K
bytes of memory
Hope that's ok, if not, decrease some variables in the equation
snip
Stack range sanity check OK, backtrace follows:
0x806db54
0x811c328
0xb3
0x806981c
0x8069726
0x80679f2
0x809827d
0x8092f76
0x8092c80
0x808c1db
0x807472a
0x8078828
0x8073904
0x8072cb7
Stack trace seems 

Re: Mysql Bug Report, Random crashes, reason unknown

2002-04-22 Thread Egor Egorov

Gavin,
Monday, April 22, 2002, 6:29:08 PM, you wrote:

GW Description:
GW MySQL Crashes often.
GW How-To-Repeat:
GW Don't know
GW Fix:
GW Don't know

GWSubmitter-Id:  Gavin Woodhatch
GWOriginator:
GWOrganization:  NetZone Ltd.
GWMySQL support: [none]
GWSynopsis:  Random MySQL crashes (1-2 every 24h)
GWSeverity:  [ serious ]
GWPriority:  [ medium ]
GWCategory:  mysql
GWClass: [ sw-bug ]
GWRelease:   mysql-3.23.49a (Official MySQL Binary)

GWEnvironment:
GW System: Linux db1 2.4.10-4GB #1 Tue Sep 25 12:33:54 GMT 2001 i686 unknown
GW Architecture: i686


GW I hope someone can help us on this one .. i guess i am lost.
GW The distribution  we are using is SuSE 7.3

Signal 4 means illegal instruction, when your binary is not
compatible with your architecture... Signal 11 means Segmentation fault, when 
the program cames out of it's address space. 

In your case, the combination of these two most likely means broken hardware as SIGILL 
is _very_ unlikely to happen, if not impossible.

GW Thanks for your Help in advance.
GW Gavin Woodhatch
GW NetZone Ltd.





-- 
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: bug report with functions

2002-04-04 Thread Egor Egorov

Patrice,
Thursday, April 04, 2002, 4:41:24 AM, you wrote:

P MySQL Version: 3.23.49
P OS: Win 98

P Query 1: select length ('abc') returns
P You have an error in your SQL syntax near '('abc')' at
P line 1

P Query2: select length('abc') returns 3: OK

P Note the space between the 'h' and '(' in Query 1. The
P parser does not like this space...

P The same problem occurs with all the functions.

It's a well-known feature. You can run MySQL in ANSI mode to have any
number of spaces between function name and brackets, look at:
   http://www.mysql.com/doc/A/N/ANSI_mode.html

P Thanks,
P Patrice Khawam.





-- 
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




bug report with functions

2002-04-03 Thread Patrice

MySQL Version: 3.23.49
OS: Win 98

Query 1: select length ('abc') returns
You have an error in your SQL syntax near '('abc')' at
line 1

Query2: select length('abc') returns 3: OK

Note the space between the 'h' and '(' in Query 1. The
parser does not like this space...

The same problem occurs with all the functions.

Thanks,
Patrice Khawam.




__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Re: Feature idea inspired by bug report

2002-03-12 Thread Michael Widenius


Hi!

 Ken == Ken Menzel [EMAIL PROTECTED] writes:

Ken Hi Monty and Sasha,
Ken Just a quick not to say that's such a great idea that Monty even
Ken thought of it before!  Monty and I discussed this last September,  I
Ken hope we could get something like this in 4.1 

Ken Just a vote!

I have added this to our worklog and this should be added to 4.1

Regards,
Monty

-- 
For technical support contracts, goto https://order.mysql.com/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Michael Widenius [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, CTO
/_/  /_/\_, /___/\___\_\___/   Helsinki, Finland
   ___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




  1   2   >