MyODBC

2002-01-25 Thread Mike Nelson
Any plans to upgrade the MyODBC driver to support .NET? I downloaded a copy of MySQL and tested it with a .NET app and received an error that this version of ODBC wasn't supported. Just wondering if this is on the development horizon.

need some help

2002-01-25 Thread get86
i have Mac OS X Server and i think MySQL is preinstalled, but it's not running so i tried to start it and got the typical socket error 2002. then i tried this: [mbase:~] ted% safe_mysqld touch: /usr/var/mbase.err: No such file or directory chown: mysql: invalid user name Starting mysqld daemon wit

need some help

2002-01-25 Thread get86
i have Mac OS X Server and i think MySQL is preinstalled, but it's not running so i tried to start it and got the typical socket error 2002. then i tried this: [mbase:~] ted% safe_mysqld touch: /usr/var/mbase.err: No such file or directory chown: mysql: invalid user name Starting mysqld daemon wit

Re: MySQL monitoring tools

2002-01-25 Thread Bruce Ferrell
I just ran across mtop on freshmeat. Looks kind of nice to me. -- Bruce One day at a time... One second if that's what it takes "Gorantla, Aruna" wrote: > > Hi All, > Does anybody know if there are any monitoring tools for MySQL database? > > Thanks, > Aruna. > > -

Re: SOME ITEMS THAT YOU MAY BE INTERESTED IN OR BE ABLE TO ADVISE ME ON

2002-01-25 Thread Doug Thompson
Rants: 2 Spam: 1 Looks like you're ahead on this one. On Fri, 25 Jan 2002 15:29:04 +0100, Marjolein Katsma wrote: >And this nitwit ... Life is tough. Life is tougher when you're stupid. - John Wayne (database, sql, bat whiskers) --

Re: weighted random record select?

2002-01-25 Thread laszlo
If you have a field 'weight', you could SELECT *, RAND()*weight AS r FROM table_name ORDER BY r (Or you can complicate the expression more :-) laszlo Ed Lazor wrote: Ed Lazor wrote: > I found this: > SELECT * FROM table_name ORDER BY RAND() > > Is there a way to weight the random selection so

WebStream Announces move into the WebCasting arena

2002-01-25 Thread info
This is an Official WebStream Press Release Release date: January 25, 2002 For more information contact: Crawford Grimsley, Vice President of WebCasting Services [EMAIL PROTECTED] 954-730-7127 Ext. 217 WebStream Announces move into the WebCasting arena FOR IMMEDIATE RELEASE WebStream In

weighted random record select?

2002-01-25 Thread Ed Lazor
I found this: SELECT * FROM table_name ORDER BY RAND() Is there a way to weight the random selection so that certain records are more likely to come up? It's for a banner exchange program. The idea is to somehow give precedence to help promote certain sites. Thanks! =) -Ed

Re: Confused About JDBC Driver

2002-01-25 Thread Shankar Unni
Paul DuBois wrote: > I think that MM.MySQL used to be packaged as a tar file, but not is > distributed > as a JAR. Use the newer one, you'll be better off. And do as the filename > indicates: un-jar it. You'll end up with a directory that contains the > actual driver file plus a bunch of othe

Re: Indexing hash tables

2002-01-25 Thread Jeremy Zawodny
On Fri, Jan 25, 2002 at 04:02:23PM -0800, Bruce Sandell wrote: > > So does this mean that you should or should not bother using indexes > on a heap table? You should use an index on a heap table column just like you would for any other table. It's just that the index isn't a B-Tree like with MyI

RE: Indexing hash tables

2002-01-25 Thread Bruce Sandell
So does this mean that you should or should not bother using indexes on a heap table? Thank you very much for you help on this matter. Bruce -Original Message- From: Jeremy Zawodny [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 3:48 PM To: Bruce Sandell Cc: [EMAIL PROTECTED]

Re: Indexing hash tables

2002-01-25 Thread Jeremy Zawodny
On Fri, Jan 25, 2002 at 03:44:07PM -0800, Bruce Sandell wrote: > > Is the index for a hash table stored on disk or in memory? You mean for HEAP tables, which used hashed indexes? > I have a hash table that I am constantly adding data to, which means > the index is constantly being updated. If I

RE: Indexing hash tables

2002-01-25 Thread Bruce Sandell
Sorry, thats a heap table, not a hash table. -Original Message- From: Bruce Sandell [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 3:44 PM To: [EMAIL PROTECTED] Subject: Indexing hash tables Is the index for a hash table stored on disk or in memory? I have a hash table that

Indexing hash tables

2002-01-25 Thread Bruce Sandell
Is the index for a hash table stored on disk or in memory? I have a hash table that I am constantly adding data to, which means the index is constantly being updated. If I keep the size of the key buffer sufficiently large, will the new index values be there upon creation, or not until they are

Re: mysql authorization

2002-01-25 Thread Jeremy Zawodny
On Fri, Jan 25, 2002 at 04:26:51PM -0500, Don Smith wrote: > > is it possible for mysql to use a different service for > authentication such as ldap or a passwd file? Not without modifying the source code, nope. -- Jeremy D. Zawodny, <[EMAIL PROTECTED]> Technical Yahoo - Yahoo Finance Desk: (408

Re: mysql authorization

2002-01-25 Thread Don Smith
Does anyone know about any projects or future plans to do this, one of the reasons we actually chose sequel server is that it can authenticate from our windows nt user list. If mysql could have authenticated off of an ldap server this would have been a big win many thanks don smith Jeremy Zaw

Re: MySQL monitoring tools

2002-01-25 Thread Jeremy Zawodny
On Fri, Jan 25, 2002 at 03:40:37PM +0200, Sinisa Milivojevic wrote: > Gorantla, Aruna writes: > > > > Hi All, > > Does anybody know if there are any monitoring tools for MySQL database? > > > > Thanks, > > Aruna. > > > > Hi! > > There is a wide choice. > > You can use either admin modul

Re: Hierarchical recordsets

2002-01-25 Thread DL Neil
Hi Jon, > I have a query that is returning 15 records per page. For each record, I > may do up to 2 subselects - this is done by issuing seperate queries inside > the 15 record recordset (depending on the level of detail chosen by the > user). The problem is that things slow down quite a bit wh

Re: MySQL monitoring tools

2002-01-25 Thread Sinisa Milivojevic
Gorantla, Aruna writes: > > Hi All, > Does anybody know if there are any monitoring tools for MySQL database? > > Thanks, > Aruna. > Hi! There is a wide choice. You can use either admin modules of mysqlgui or mysql module in MOODSS. Depends on what exactly you need, and on your taste .

Re: Confused About JDBC Driver

2002-01-25 Thread Paul DuBois
At 16:11 -0600 1/25/02, Paul DuBois wrote: >At 16:59 -0500 1/25/02, Rahadul Kabir wrote: >>I'm a bit confused here. can some please tell me what is the difference >>between this two files >> >>-- mm.mysql.jdbc-1.2c.tar.gz ( Includes mysql_comp.jar and >>mysql_uncomp.jar) >>-- mm.mysql-2.0.10-you

MySQL monitoring tools

2002-01-25 Thread Gorantla, Aruna
Hi All, Does anybody know if there are any monitoring tools for MySQL database? Thanks, Aruna. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the lis

Re: Confused About JDBC Driver

2002-01-25 Thread Paul DuBois
At 16:59 -0500 1/25/02, Rahadul Kabir wrote: >I'm a bit confused here. can some please tell me what is the difference >between this two files > >-- mm.mysql.jdbc-1.2c.tar.gz ( Includes mysql_comp.jar and >mysql_uncomp.jar) >-- mm.mysql-2.0.10-you-must-unjar-me.jar > >For JDBC driver to run with

Confused About JDBC Driver

2002-01-25 Thread Rahadul Kabir
I'm a bit confused here. can some please tell me what is the difference between this two files -- mm.mysql.jdbc-1.2c.tar.gz ( Includes mysql_comp.jar and mysql_uncomp.jar) -- mm.mysql-2.0.10-you-must-unjar-me.jar For JDBC driver to run with mysql which one do I need? I thought you only need .

RE: MySQL Checkbox table field

2002-01-25 Thread Paul DuBois
At 14:26 -0700 1/25/02, Matthew Walker wrote: >Say I have a similar enum field that shows up in many tables. Right now, >if I want to change it, I have to change it everywhere. What I'd like is >a way to have a 1 column table that contains a list of the possible >values for the enum field, and hav

mysql authorization

2002-01-25 Thread Don Smith
is it possible for mysql to use a different service for authentication such as ldap or a passwd file? many thanks don smith - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mys

RE: MySQL Checkbox table field

2002-01-25 Thread Matthew Walker
Say I have a similar enum field that shows up in many tables. Right now, if I want to change it, I have to change it everywhere. What I'd like is a way to have a 1 column table that contains a list of the possible values for the enum field, and have the enum automatically build itself based on tha

Hierarchical recordsets

2002-01-25 Thread Jon Wahl
Hi all, I have a query that is returning 15 records per page. For each record, I may do up to 2 subselects - this is done by issuing seperate queries inside the 15 record recordset (depending on the level of detail chosen by the user). The problem is that things slow down quite a bit when doing

Re: MySQL Checkbox table field

2002-01-25 Thread David Shields
Alright then! > database,sql,query,table Which field type do I use for a simply checkbox Y,N? Thanks Any objection to this ? cbcolumn enum ('Y', 'N') NOT NULL DEFAULT 'Y' May not be the most space efficient, but its clear, self-documented and unambiguous. It does what it says on the tin. Da

RE: MySQL Checkbox table field

2002-01-25 Thread Paul DuBois
At 14:04 -0700 1/25/02, Matthew Walker wrote: >This brings to mind a question I've had for a while. Is there any way to >automatically build and update an enum based on another very simple (1 >column) table? What does that mean, exactly? > >Matthew Walker >Ecommerce Project Manager >Mountain Top

RE: MySQL Checkbox table field

2002-01-25 Thread Matthew Walker
This brings to mind a question I've had for a while. Is there any way to automatically build and update an enum based on another very simple (1 column) table? Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: James E. Hicks III [mailto:[EMAIL PROTECTED

RE: MySQL Checkbox table field

2002-01-25 Thread James E. Hicks III
I've been using enum ("Y","N"). James -Original Message- From: Vernon A Webb [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 10:58 AM To: [EMAIL PROTECTED] Subject: Re: MySQL Checkbox table field Alright then! > database,sql,query,table Which field type do I use for a simp

using mysqld_multi to start multiple versions of MySQL

2002-01-25 Thread Robin McMillon
Hi, I am running MySQL-3.22.32 and MySQL-3.23.47 on Solaris 8. In reading through your documentation for 3.23.47, I noticed that in section "4.1.4 Running Multiple MySQL Servers on the Same Machine" it is written: "If you want to run multiple servers, the easiest way is to compile the servers wi

Re: optimize for SELECTs on multiple large tables

2002-01-25 Thread Florin Andrei
On Wed, 2001-12-05 at 16:33, Arjen G. Lentz wrote: > > - Original Message - > From: "Florin Andrei" <[EMAIL PROTECTED]> > > > SELECT event.cid, iphdr.ip_src, iphdr.ip_dst, tcphdr.tcp_dport FROM > > event, iphdr, tcphdr WHERE event.cid = iphdr.cid AND event.cid = > > tcphdr.cid AND tcphdr

Re: mysql warnings when write locking compressed table

2002-01-25 Thread Sinisa Milivojevic
=?iso-8859-2?Q?Martin_MOKREJ=A9?= writes: > On Fri, 25 Jan 2002, Sinisa Milivojevic wrote: > > Hi, > sorry, I didn't get it. As far as I know there's no way yet how to > uncompress table my using SQL command. I have to uncompress using > `myisamchk --unpack *.MYI`, right? > > > -- > Martin M

Re: mysql warnings when write locking compressed table

2002-01-25 Thread Martin MOKREJŠ
On Fri, 25 Jan 2002, Sinisa Milivojevic wrote: Hi, sorry, I didn't get it. As far as I know there's no way yet how to uncompress table my using SQL command. I have to uncompress using `myisamchk --unpack *.MYI`, right? > =?iso-8859-2?Q?Martin_MOKREJ=A9?= writes: > > Hi, > > when I'm trying

RE: Selecting the row with largest number in a column

2002-01-25 Thread Butch Bean
The fastest way I found would be: SELECT MAX(age) FROM contacts good luck bb -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 26, 2002 12:14 PM To: Richard Morton; [EMAIL PROTECTED] Subject: Re: Selecting the row with largest number in a column Hello

Re: How to unjar a package!

2002-01-25 Thread Paul DuBois
At 13:08 -0600 1/25/02, Paul DuBois wrote: >At 13:32 -0500 1/25/02, Rahadul Kabir wrote: >>can some one please tell me how to unjar a package, like a package which >>comes with .jar extension (executable file). >>thanks > >Just as tar tars and untars, jar jars and unjars. :-) > >jar xf jarfile.jar

alternate authorization for mysql

2002-01-25 Thread Don Smith
Is it possible to authorize mysql from an alternative source, ie ldap, passwd file, etc... many thanks don smith - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

RE: mysqld & freebsd

2002-01-25 Thread Alok K. Dhir
> WITH_LINUXTHREADS=yes Use the linuxthreads pthread library. > This is _NOT_ recommended for production > servers. Expect problems when enabled. How fresh or stale is this information? Are there in fact problems under hea

Re: Record-level locking

2002-01-25 Thread Gary E Bickford
A couple hundred netapps? Man, you must have a big operation. What sort of business is it? I'm also interested on a technical level. I'm flogging a business plan right now that will involve installation of a lot of remote microservers, and a central facility that will maintain replication

Re: foreign key?

2002-01-25 Thread DL Neil
Hi David, > > First of all, whever you have a primary key on your table, do all updates > > according to the primary key.. > > So whatever the primary key for the person you wanna do update, do > > something like: > > update Contributors set Contact_ID = 1, Volunteer_ID = 13 where > > Contribut

Double foreign key references?

2002-01-25 Thread Philip Molter
I have a table with two fields that reference the same field in another table. Is this allowed (I'm not sure if it is). mysql 3.23.46 allows this, but apparently, mysql 3.23.47 does not. Create it with just one key and it's fine. Reference different tables and it's fine. mysql-3.23.47 InnoDB

RE: foreign key?

2002-01-25 Thread Rick Emery
select Item.Item_Description, Item.Retail_Value, Item.Bid_Description, Contributors.Name from Item, Contributors where Contributors.Contributor_ID > 1; -Original Message- From: David S. Jackson [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 12:14 PM To: Gurhan Ozen; [EMAIL PROT

Re: MySQL Checkbox table field

2002-01-25 Thread Michael Collins
At 12:02 PM -0600 1/25/02, Dan Nelson wrote: >According to the Mysql manual, the bit type was added in 3.21.12. >`BIT' `BOOL' `CHAR' > These three are synonyms for `CHAR(1)'. I see that now in the online docs, I am using the pdf, guess it is not as up to date. Sorry if I spoke out of turn.

Re: foreign key?

2002-01-25 Thread Gerald Clark
David S. Jackson wrote: >On Fri, Jan 25, 2002 at 12:33:59PM -0500 Gurhan Ozen <[EMAIL PROTECTED]> wrote: > >>Hi David, >>First of all, whever you have a primary key on your table, do all updates >>according to the primary key.. >> So whatever the primary key for the person you wanna do update,

Re: mysql cache err with mysqldump? was: Innodb funny error

2002-01-25 Thread Ken Menzel
Hi Monty! I am combining two messages into one: > Heikki> server is broken. Why does it claim that? > > This could happen if some client code set the 'thd->killed' flag. > > The main problem here is why we should get this in mysqldump, but not > in 'mysql'. > > Ken, did you get any output from my

Re: mysql warnings when write locking compressed table

2002-01-25 Thread Sinisa Milivojevic
=?iso-8859-2?Q?Martin_MOKREJ=A9?= writes: > Hi, > when I'm trying to lock multiple tables and some of the are Compressed, > mysql warn's me only about the first-one being Compressed. It either > reports the first Compressed table only from the list, or it checks > only the first-one in the list

Re: update a row without affecting timestamp-type column

2002-01-25 Thread Myk Melez
[EMAIL PROTECTED] wrote: >Hello all, > >I have a question which just may very well be ridiculous. In one table, >we have a column of type "timestamp". In normal cases, we want any changes >to this row to update this timestamp (hence the nature of this datatype). > However, there is one case w

Re: How to unjar a package!

2002-01-25 Thread Paul DuBois
At 13:32 -0500 1/25/02, Rahadul Kabir wrote: >can some one please tell me how to unjar a package, like a package which >comes with .jar extension (executable file). >thanks Just as tar tars and untars, jar jars and unjars. :-) jar xf jarfile.jar -

Re: Inner Join Delete

2002-01-25 Thread Sinisa Milivojevic
Jeremy Zawodny writes: > On Wed, Jan 23, 2002 at 11:25:31PM -0500, Jason Yates wrote: > > Heres an example scenario, say I have two tables > > > >table1 > > -> id > > | name > > | > > | table2 > > |_> id > > address > > zip > > > > I inner join table1 and ta

Re: Named Pipes and MySQL?

2002-01-25 Thread Sinisa Milivojevic
Jeremy Zawodny writes: > Are there platforms other than Windows (OS/2, perhaps?) on which MySQL > is able to use named pipes? > > Jeremy > -- > Jeremy D. Zawodny, <[EMAIL PROTECTED]> > Technical Yahoo - Yahoo Finance > Desk: (408) 349-7878 Fax: (408) 349-5454 Cell: (408) 685-5936 > > MySQL

Re: Selecting the row with largest number in a column

2002-01-25 Thread Paul DuBois
At 17:13 + 1/26/02, DL Neil wrote: >Hello Richard, > > >> I have a simple query, and a problem countless people must have had, I just >> cannot work it out at the moment, I am new to MySQL; I hope you can help. >> >> My current statement looking at the manual. >> SELECT * FROM contacts WHE

Re: update a row without affecting timestamp-type column

2002-01-25 Thread Paul DuBois
At 13:45 -0500 1/25/02, [EMAIL PROTECTED] wrote: >Hello all, > >I have a question which just may very well be ridiculous. In one table, >we have a column of type "timestamp". In normal cases, we want any changes >to this row to update this timestamp (hence the nature of this datatype). > Howeve

Re: How to unjar a package!

2002-01-25 Thread Michael Stearne
It's like tar. I do "jar xvf file.jar" "man jar" even works! :-) Michael Rahadul Kabir wrote: >can some one please tell me how to unjar a package, like a package which >comes with .jar extension (executable file). >thanks > >-

update a row without affecting timestamp-type column

2002-01-25 Thread webmaster
Hello all, I have a question which just may very well be ridiculous. In one table, we have a column of type "timestamp". In normal cases, we want any changes to this row to update this timestamp (hence the nature of this datatype). However, there is one case where we do NOT want the timestamp

Re: Linking problems

2002-01-25 Thread Sinisa Milivojevic
Guy-Maurice Lepoutre writes: > Hello, > > I am using Visual C++ 6.0 and I have some linking > problems while trying to run the example program > MFC_ex.cpp included in the downloading files in the > mysql.com website. > Here are the errors I get: > > Configuration: MFC_ex - W

How to unjar a package!

2002-01-25 Thread Rahadul Kabir
can some one please tell me how to unjar a package, like a package which comes with .jar extension (executable file). thanks - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.

Re: How to install JDBC driver!

2002-01-25 Thread William R. Mussatto
On Fri, 25 Jan 2002, Rahadul Kabir wrote: > Date: Fri, 25 Jan 2002 12:40:35 -0500 > From: Rahadul Kabir <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: How to install JDBC driver! > > > mm.mysql-2.0.10-you-must-unjar-me.jar > this is the JDBC driver for Mysql3.23.47. Can someone tell me

Efficiently storing md5

2002-01-25 Thread Fred Van Andel
On 25 Jan 2002 07:05:32 +0800, [EMAIL PROTECTED] (Steven Roussey) wrote: >Does anyone have a best practices for efficiently storing md5 hash >values in MySQL? > --snip-- > >Md5 hash-- 16 bytes. >char(32) binary -- 32 bytes. >BIGINT -- 8 bytes --snip-- Or you can use base64, whi

Re: foreign key?

2002-01-25 Thread David S. Jackson
On Fri, Jan 25, 2002 at 12:33:59PM -0500 Gurhan Ozen <[EMAIL PROTECTED]> wrote: > Hi David, > First of all, whever you have a primary key on your table, do all updates > according to the primary key.. > So whatever the primary key for the person you wanna do update, do > something like: > update

Re: MySQL Checkbox table field

2002-01-25 Thread Dan Nelson
In the last episode (Jan 25), Michael Collins said: > At 11:32 AM -0600 1/25/02, Dan Nelson wrote: > >Why would the MySQL TODO mention an MS SQL feature? :) > > Because the MySQL team wants to add a feature that is found in > another DBMS? According to the Mysql manual, the bit type was added in

Re: MySQL Checkbox table field

2002-01-25 Thread Michael Collins
At 11:32 AM -0600 1/25/02, Dan Nelson wrote: >Why would the MySQL TODO mention an MS SQL feature? :) Because the MySQL team wants to add a feature that is found in another DBMS? >OK, so it's actually a synonym for tinyint(1). I could not find a reference to the synonym in the MySQL documenta

Re: Checking Data Integrity for Replication

2002-01-25 Thread James Montebello
If this is on a Unix flavor, you can use 'cmp' to compare the data and index files (off-line, of course). Once you know they are identical, you can simply plot the difference between the slave's update log position and the master's update log position. As long as it's always 0, the two are in s

Re: How to install JDBC driver!

2002-01-25 Thread Rahadul Kabir
Rahadul Kabir wrote: > > mm.mysql-2.0.10-you-must-unjar-me.jar > this is the JDBC driver for Mysql3.23.47. Can someone tell me what is > the command to unjar this file as well as how to install this on > linux. > mysql is on /var/lib/mysql (by default) and JDK on /home/tomcat. > thanks so much

How to install JDBC driver!

2002-01-25 Thread Rahadul Kabir
mm.mysql-2.0.10-you-must-unjar-me.jar this is the JDBC driver for Mysql3.23.47. Can someone tell me what is the command to unjar this file as well as how to install this on linux. mysql is on /var/lib/mysql (by default) and JDK on /home/tomcat. thanks so much --rahad ---

Re: MySQL Checkbox table field

2002-01-25 Thread Dan Nelson
In the last episode (Jan 25), Michael Collins said: > At 10:49 AM -0600 1/25/02, Dan Nelson wrote: > > > >Which field type do I use for a simply checkbox Y,N? > > >The BIT type seems to be the best fit. It's currently a synonym for > >CHAR(1), but there's a TODO item: > > > > * Optimise `BIT'

Re: Tighly packed table

2002-01-25 Thread Michael Stearne
Yeah, I think in the end what I will do is change a lot of the columns back to char from varchar. I was thinking this would save space making for a smaller faster DB, but the inherent overhead in a varchar field is not worth the space savings, which DL made crystal clear. Thanks, Michael DL

Equivalent of an Oracle SEQUENCE in mysql?

2002-01-25 Thread Victoria Reznichenko
Richard, Friday, January 25, 2002, 6:21:29 PM, you wrote: RB> REALFROM: Richard Bolen <[EMAIL PROTECTED]> RB> HOUR: 2002012518 RB> Is there the equivalent of a sequence in mysql? Does anyone have an example RB> of emulating sequences? There is an 'auto_increment' attribute for the column. Lo

Re: Selecting the row with largest number in a column

2002-01-25 Thread DL Neil
Hello Richard, > I have a simple query, and a problem countless people must have had, I just > cannot work it out at the moment, I am new to MySQL; I hope you can help. > > My current statement looking at the manual. > SELECT * FROM contacts WHERE age=MAX(age); > > I started with: > mysql> sel

SQL Error : Error Mapping Failed

2002-01-25 Thread Prabu Subroto
Hi Buddy, Anybody knows the solution of my problem ? I've written a program with Kylix 1 and MySQL 3.23 . I am using DBGRID, DBNavigator, DataSource, ClientDataSet, DataSetProvider, SQLDataSet, SQLConnection objects for my program. It queries a table an put it into DBGRID table. I am using "CHAR"

Re: MySQL Checkbox table field

2002-01-25 Thread Michael Collins
At 10:49 AM -0600 1/25/02, Dan Nelson wrote: > > >Which field type do I use for a simply checkbox Y,N? >The BIT type seems to be the best fit. It's currently a synonym for >CHAR(1), but there's a TODO item: > >* Optimise `BIT' type to take 1 bit (now `BIT' takes 1 char). Are you thinking M

Corrupted table?

2002-01-25 Thread Mikusch, Rita
I'm having a weird problem with my mysql data dump and wondering if anybody else has had a similar problem. I run my mysql dump program, no problem there, download the file, and view it with a text editor (an oldie: pfe - programmers file editor). Then one dark day pfe was about half way through

Re: Tighly packed table

2002-01-25 Thread DL Neil
Michael: see also my PS comment Dobromir: Michael and I were joking between us, hence the silly comments appearing. I apologise if this did not communicate. IMHO the pragmatics of the exercise made it a waste of time/effort - even when I over-stated the savings at every opportunity! On a Friday

Re: [ale] foreign key?

2002-01-25 Thread Vaidhy Mayilrangam
Do the update without quotes for 1 and 13.. Vaidhy On Fri, Jan 25, 2002 at 11:48:31AM -0500, David S. Jackson wrote: > Hi, > > I'm trying to update the values of Contact_ID and > Volunteer_ID in a table called Contributors. The layout for > Contributors is > > ++--

foreign key?

2002-01-25 Thread David S. Jackson
Hi, I'm trying to update the values of Contact_ID and Volunteer_ID in a table called Contributors. The layout for Contributors is ++--+--+-+-++ | Field | Type | Null | Key | Default | Extra | ++

Re: MySQL Checkbox table field

2002-01-25 Thread Dan Nelson
In the last episode (Jan 25), Michael Collins said: > At 10:58 AM -0500 1/25/02, Vernon A Webb wrote: > > > database,sql,query,table > > > >Which field type do I use for a simply checkbox Y,N? > > How about CHAR(1)? The BIT type seems to be the best fit. It's currently a synonym for CHAR(1), bu

Re: Selecting the row with largest number in a column

2002-01-25 Thread Joseph Bueno
Richard Morton a écrit : > > Hello, > > I have a simple query, and a problem countless people must have had, I just > cannot work it out at the moment, I am new to MySQL; I hope you can help. > > My current statement looking at the manual. > SELECT * FROM contacts WHERE age=MAX(age); > > I sta

Re: mysql cache err with mysqldump? was: Innodb funny error

2002-01-25 Thread Michael Widenius
Hi! > "Heikki" == Heikki Tuuri <[EMAIL PROTECTED]> writes: Heikki> Sanja, Heikki> maybe adding some debug code to the client or the server would help? After Heikki> all, the symptom is easy to notice: the client claims the connection to the Heikki> server is broken. Why does it claim that?

Re: Innodb funny error

2002-01-25 Thread Michael Widenius
Hi! > "HeikkiiH" == Heikki Tuuri <[EMAIL PROTECTED]> writes: HeikkiiH> Ken, HeikkiiH> the 'connection lost' error suggests some bug in the client or HeikkiiH> communication. Since you are running 4.0.1-alpha, it could be something with HeikkiiH> the query cache. I think Sanja has already fi

Re: join and order by problem

2002-01-25 Thread DL Neil
Hi SF, > I have problem with join and order clause. I have 2 table join with > amount condition and sort by order clause. The result of this join > generate unwanted row to me. > > example > table1 > No. Amount Count > 1 1000 2 > 2 2000 3 > 3 500 1 > table2 > No. Name Amount > 1 A 1000 >

Selecting the row with largest number in a column

2002-01-25 Thread Richard Morton
Hello, I have a simple query, and a problem countless people must have had, I just cannot work it out at the moment, I am new to MySQL; I hope you can help. My current statement looking at the manual. SELECT * FROM contacts WHERE age=MAX(age); I started with: mysql> select * from contacts wher

Equivalent of an Oracle SEQUENCE in mysql?

2002-01-25 Thread Richard Bolen
Is there the equivalent of a sequence in mysql? Does anyone have an example of emulating sequences? Thanks Rich Rich Bolen Senior Software Developer GretagMacbeth Advanced Technologies Center 79 T. W. Alexander Drive - Bldg. 4

RE: MySQL Checkbox table field

2002-01-25 Thread Todd Williamsen
VarChar Usually -Original Message- From: Vernon A Webb [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 9:58 AM To: [EMAIL PROTECTED] Subject: Re: MySQL Checkbox table field Alright then! > database,sql,query,table Which field type do I use for a simply checkbox Y,N? Tha

Re: AW: Replication-aware client...

2002-01-25 Thread Sasha Pachev
On Thursday 24 January 2002 11:14 pm, Tobias Erichsen wrote: > >?> I?ve read an old message of yours on deja concerning the possiblity > >?> that the client can automatically select a master or slave in a > >?> replication-environment. ?Is this only available for linux, or does > >?> the libmysql.

Re: MySQL Checkbox table field

2002-01-25 Thread Michael Collins
At 10:58 AM -0500 1/25/02, Vernon A Webb wrote: > > database,sql,query,table > >Which field type do I use for a simply checkbox Y,N? How about CHAR(1)? -- Michael __ ||| Michael Collins ||| ||| Kuwago Web Services ||| mailto:[EMAIL PROTECTED] ||| Seattle, WA, USA ||| htt

Re: Tighly packed table

2002-01-25 Thread Michael Stearne
Wow, I feel like I wasted time just asking! :-) But my goal was not to save disk space it was to optimize the queries on the table as this is a test project for mySQL/OS X versus Unify/SCO or Unify/Linux or mySQL/Linux. I am kind of partial to the mySQL/OS X combo, so I wanted it to work as op

RE: Tighly packed table

2002-01-25 Thread Dobromir Velev
Hi, If your column is of type VARCHAR, you want save much space (at least not as much as DL Neil said). The specifications of tha varchar column type is that it uses as much bytes as the data in it. Of course this will make your indexes smaller (if this column is indexed). A few days before I deci

Re: MySQL Checkbox table field

2002-01-25 Thread Vernon A Webb
Alright then! > database,sql,query,table Which field type do I use for a simply checkbox Y,N? Thanks - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (th

Moving a site

2002-01-25 Thread Joe Bifano
Hi all, We are moving our site and wanted to find out if anyone has done this and what is the best solution. We have a 2 web server farm now with 1 being Mysql that we are hsoting at an ISP. Want to know the best way to move the live database to our new server farm with 2 database servers. Hope

Re: quick questions about redhat and mysql

2002-01-25 Thread Philip Molter
On Fri, Jan 25, 2002 at 10:18:08AM -0500, John Kemp wrote: : Hank, : : 3. Do not use the RH mysql version. Get it from the Mysql website, and : use 3.23.47-max (which includes Innodb support) or higher. What's wrong with the RH mysql version? I've been using it for 5 months without a problem.

RE: Which is faster VarChar(255) or Text?

2002-01-25 Thread Johnny Withers
I belive the type of table you use here will be the only thing that will speed things up. If you use MyISAM tables and have 100's of users calling things from the DB and 100's of users INSERTING things into the same table, then it will be very slow due to MyISAM's table level locking. Using InnoDB

Re: Tighly packed table

2002-01-25 Thread DL Neil
Michael, Let's round it up to 3 million rows (I'm lazy at math too!) Let's say you currently allow 15 bytes per name. Let's say the longest name on file is 12 characters. The exercise would save 3 bytes/row multiplied by 3M rows, ie 9MB (yes, let's ignore binary-decimal differences too) If you

Re: Which is faster VarChar(255) or Text?

2002-01-25 Thread BD
At 02:31 AM 1/25/2002 , you wrote: >On Thu, Jan 24, 2002 at 05:27:18PM -0600, BD wrote: > > > I will be putting variable length text into a field (up to 255 > > characters but typically around 60 characters) and wonder what makes > > for faster retrieval? Or does it matter? A field defined as > >

Re: LOAD DATA INFILE - "Duplicate entry '' for key..."

2002-01-25 Thread DL Neil
Bogdan, You solved your own problem - that's good (and the timestamps below hint that you have other abilities) Did you realise that you could specify a LINES TERMINATED BY '\r\n' clause and stick with LOAD DATA? Oh the joys of working with *nix and Windows... =dn - Original Message --

Null vs empty string and storage

2002-01-25 Thread Michael Collins
Does null take up the same amount of storage as an empty string? If one has a table and stores an empty string in place of NULL for elements that were left blank on a Web form, does that increase storage requirements? Or does having the column already defined mean that storage was already allo

Re: quick questions about redhat and mysql

2002-01-25 Thread John Kemp
Hank, 1. RH 7.1 supports files > 2GB if you choose the Enterprise/SMP flavour (you'll be asked to choose which install you want to pursue when you put the install CD in) No kernel re-compile needed. 2. MySQL will support large files. Also, if you use Innodb tables, many of the large file conce

Re: Linking problems

2002-01-25 Thread Guy-Maurice Lepoutre
Hi, I did all that but I still have the linking problems: it seems that it doesn't find the MysqlConnection implementation. NOTES: -- 1) The main workspace and project for the mysql++ API are located in the root directory 2) This project, when built, will yield the static library mysql+

quick questions about redhat and mysql

2002-01-25 Thread Henry Hank
Hello, I am trying to decide which OS to use for a dedicated mysql server for my website. I need filesize >2GB support. I really wanted to use Solaris, but there are no drivers for my RAID adapter (long story). I was considering NetBSD, but I don't know it well. I was then back to thinking

Re: mysqld & freebsd

2002-01-25 Thread Ken Menzel
freebsd2# cd /usr/ports/databases/mysql323-server freebsd2# make pre-fetch You may use the following build options: WITH_CHARSET=charsetdefine the primary built-in charset (latin1); WITH_XCHARSET=list define other built-in charsets (may be 'all'); DB_DIR=director

Re: seeking partner

2002-01-25 Thread Marjolein Katsma
Good grief! Yet another SPAM on the same day. When will it filter through the apparently thick head that the so-called "filtering" DOES NOT WORK? Stop this sillyness already, please. SUBSCRIPTION only for this list is the only sensible solution! At 22:41 2002-01-25, you wrote: >T&F Informatio

  1   2   >