A LOAD DATA INFILE query crashes mysqld

2002-04-12 Thread alec
>Description: A cron job runs a shell script (update_adrs) that gets lynx to download and save a web page (adr.htm). It then runs a perl script (adr.pl) to parse the web page into an import file (adr.txt). Finally it executes a mysql command to import that file into a table called Libra

RE: Reply / Return Address of this List

2006-04-18 Thread Alec . Cawley
administrator decided as he did, and prepare a refutation for his argument at that time, not a general complaint that it doesn't suit your personal needs. Alec "Andy Eastham" <[EMAIL PROTECTED]> 18/04/2006 13:16 To cc Subject RE: Reply / Return Address of thi

Re: Field name DESC

2006-07-13 Thread Alec . Cawley
change the field name e.g. to "descr" or even "description". Making the field name longer and more meaningful costs next to nothing. Alec Anthony <[EMAIL PROTECTED]> 13/07/2006 16:42 To mysql@lists.mysql.com cc Subject Field name DESC Hello, i want

Re: Mysql overall stability

2005-06-22 Thread Alec . Cawley
nal question, I would not know about ERP in particular, but a lot of people are using MySQL in demanding, mission critical systems. I think most users would classify the production versions of MySQL as very stable indeed. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: question about field length for integer

2005-06-27 Thread Alec . Cawley
able future hardware and software, it would still take half a million years to add that number of records. It is therefore fairly easy to deduce that the OP has not got, and will not have within any of our lifetimes, a database that big. Alec -- MySQL General Mailing List For list arc

Re: create unique index

2005-06-28 Thread Alec . Cawley
r columns used in WHERE clauses. But once created, the rest happens by "magic" (or rather, courtesy of the skills of the MySQL engineers). Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Avoiding full table scans

2005-06-30 Thread Alec . Cawley
xes on your tables for all the different searches you do. Use the EXPLAIN command to find out which SELECTs are doing full table scans, and add Indexes as appropriate. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Records which link to other records in same table

2005-06-30 Thread Alec . Cawley
advice pls This is a link, previously recommended on this list, which I have found very useful: http://www.sitepoint.com/article/hierarchical-data-database Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Primary Key question

2005-07-01 Thread Alec . Cawley
NSERT INTO os (name,description) VALUES ( 'winxp','winxp'); No. What you have requested is that the combination of id AND name be unique. Since id is auto-increment, every record will be unique unless you manually force the id to an old value. I guess you want the valu

Re: Multiple indexes on same column

2005-07-22 Thread Alec . Cawley
me, so there is no point in having two indexes. The only difference is at insert time, when the unique index enforces the uniqueness rule. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: use of indexes

2005-07-22 Thread Alec . Cawley
erms separately? If the field2 hit is is pretty selective, it does not really matter what the others do. Alec Chris Faulkner <[EMAIL PROTECTED]> 22/07/2005 12:46 Please respond to Chris Faulkner <[EMAIL PROTECTED]> To mysql@lists.mysql.com cc Subject Re: use of inde

Re: How to sort results with german umlauts in a UTF8 MySQL Database

2005-07-25 Thread Alec . Cawley
umlauts. > How do I sort results with german umlauts if the database character set > is set to utf8? According to http://dev.mysql.com/doc/mysql/en/charset-unicode-sets.html you might achieve the effect you want by setting the collation to utf8_unicode_ci Alec -- MySQL G

Re: Newb learner question

2005-07-28 Thread Alec . Cawley
actally contains, and why you expected non-null results from those queries. Are you sure that your customers table contains a customer whose name starts [JM] ? Both commands look perfectly sensible to me. If your tables are small, post the results of "Select * from customers ;" or "

Re: Complex query. (It's killing me)

2005-08-12 Thread Alec . Cawley
Just in the spirit of refining my own skills, here is how I would tackle the problem. It parses, but I haven't populated the tables so I don't know if it works: SELECT s.dateshipped, COUNT(r.type="undelivered"), COUNT(r.type = "customer"), COUNT(r.status="open") FROM shipments s JOIN returns r

Re: Complex query. (It's killing me)

2005-08-12 Thread Alec . Cawley
Sorry - I think you need a LEFT JOIN or it won't count shipments which are not returned. Alec [EMAIL PROTECTED] 12/08/2005 16:38 To [EMAIL PROTECTED] cc mysql@lists.mysql.com Subject Re: Complex query. (It's killing me) Just in the spirit of refining my own skills, her

Re: Partial Filtering

2005-08-18 Thread Alec . Cawley
"Blue Wave Software" <[EMAIL PROTECTED]> wrote on 18/08/2005 15:57:34: > I'm having one of those slow brain days. > > > > I want a partial filter egg. All records where field1 begins with "ABC" any > body know the where clause to do this. > > In Access it's where field1 = 'ABC*' but I can'

Re: INSERT IGNORE Doesn't Seem To Work

2005-08-24 Thread Alec . Cawley
command only checks columns that is instructed are to be unique. The purpose of the IGNORE modifier is simply to ignore the error produced when a duplicate occurs. Alec Hal Vaughan <[EMAIL PROTECTED]> 24/08/2005 07:47 Please respond to [EMAIL PROTECTED] To mysql@lists.mysql.

Re: fulltext max size

2005-08-24 Thread Alec . Cawley
h of a single word in the indexed column. You surely cannot expect to get a word 4294967295 characters long. Indeed, if you expect a word 4 characters long, I think you are using the wrong tool. I think your coad should read: sql>create table (test title longtext)TYPE=MyISAM; sql>alter ta

Re: INSERT IGNORE Doesn't Seem To Work

2005-08-25 Thread Alec . Cawley
would have to do a linear search through the table in order to check for duplicates - the kind of lengthy operation it is designed to avoid whenever possible. The key is a necessary part of the effect you want to achieve. Alec -- MySQL General Mailing List For list archives: ht

Re: Table Collation ?

2005-08-30 Thread Alec . Cawley
rather than blindly changing it to bin, you should perhaps consider you real needs. For example, might not a Spanish collation serve better than a binary one? Many Americans speak Spanish, few binary. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: migrating from Postgres to MySQL

2005-09-02 Thread Alec . Cawley
insensitive throughout, so do as you will. Alec Cawley -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: SCO issue

2005-09-05 Thread Alec . Cawley
that platform is marketed by a company who many of us find totally repulsive. If you let yourself be hyped into dropping MySQL, you will be harming a company that is, in my opinion, a model of how to provide full commercial quality software (or better) with an Open Source licence, while not

Re: Talking Limit

2005-09-08 Thread Alec . Cawley
"'Yemi Obembe" <[EMAIL PROTECTED]> wrote on 08/09/2005 10:33:25: > Talking limit (in select query), does it "limit" the search result > after ordering according to relevancy and the likes, or before? > thanks LIMIT operates after ORDER BY. Alec

Re: Myisam or innodb

2005-09-15 Thread Alec . Cawley
k that many applications will find MyIsam faster.\\ I don't thing InnoDB supports Load Data From Master, making adding a replication slave harder. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Circular Replication

2005-09-19 Thread Alec . Cawley
server id of the server which originated it. When the update returns to its originating server, it is dropped instead of being executed. That is why every server must have a unique id. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: Advice Required

2005-09-27 Thread Alec . Cawley
However, since MySQL is freely available, why not just download it, install it on your development machine, and run a few tests. The only real measurement of performance is actual tests: predictions often err, both high and low. Alec -- MySQL General Mailing List For list archives

Re: Advice Required

2005-09-27 Thread Alec . Cawley
Vinayak Mahadevan <[EMAIL PROTECTED]> wrote on 27/09/2005 11:28:51: > [EMAIL PROTECTED] wrote: > > >Vinayak Mahadevan <[EMAIL PROTECTED]> wrote on 27/09/2005 04:55:13: > > > > > > > >>I am creating an application in Visual Basic 6.0 which will require a > >>centralised database server. All this

Re: Double indexes on one field

2005-10-03 Thread Alec . Cawley
and there is a cost to maintaining two index trees. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to avoid redundancy between PK and indices ?

2005-10-04 Thread Alec . Cawley
is only one index even though it is over two fields (the order in the telephone directory). You would only need another index if you wanted to search over GivenName,FamilyName. This would then require an extra index, which would have to be put in the back. Alec Cawley -- M

Re: How to avoid redundancy between PK and indices ?

2005-10-04 Thread Alec . Cawley
insert would have to include a full table scan. Alec "C.R. Vegelin" <[EMAIL PROTECTED]> 04/10/2005 15:10 To cc Subject Re: How to avoid redundancy between PK and indices ? Hi Alec, Thanks for your comment. Well, we disagree on a few points. Suppose I h

Re: MySQL 4.1.13 lint?

2005-10-13 Thread Alec . Cawley
ed bit. Which means that you have to get hold of the full command line that you sent and find out what immediately preceded the characters it has given as an error. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Raw devices and MySQL

2005-10-14 Thread Alec . Cawley
es with InnoDB are, while not zero, small. Why do you want such a feature? Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Function to show when a field's value was last updated

2005-10-18 Thread Alec . Cawley
t find > anything in the MySQL documentation. It is almost certainly not possible. If you look in the manual for the storage space occupied by each field, you will see there is no space to store any form of timestamp. Since MySQL does not store the data you want, it cannot extract it for you.

Re: Clarification required

2005-10-21 Thread Alec . Cawley
> C:\mysql\data\ to D:\mysql\data. ( i.e., changing the drive location from > c:\ to d:\) Yes, you can change the place data is stored. This is usually done my setting the value of mysql-data-dir in the my.ini file, which will probably have been setup by your installation. Alec

Re: String insertion

2005-10-24 Thread Alec . Cawley
in 5.0.3. The Manual ( http://dev.mysql.com/doc/refman/5.0/en/char.html ) suggests using BLOB or TEXT instead of VARCHAR to avoid this behaviour in earlier versions. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Question for JDBC and Mysql

2005-11-02 Thread Alec . Cawley
ring(1); > end_time=RS.getString(2); > > or > > start_time=RS.getString(min(date_time)); > end_time=RS.getString(max(date_time)); You could do String start_time = RS.getString (1) ; but you would be much better advised, in my opinion, to do java.sql.Date start_time

Re: Not finding customers without invoices

2005-11-02 Thread Alec . Cawley
stomers.creation desc But read up on LEFT JOINs. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL 4.0, FULL-TEXT Indexing and Search Arabic Data, Unicode

2005-11-24 Thread Alec . Cawley
xt Search TODO > [2] MySQL Manual -> 6.8 MySQL Full-text Search > > > P.S. *** > I use MySQL 4.0 *** I think this is your problem: MySQL does not properly support Unicode until version 4.1. I am successfully using FullText with My

Re: MySQL 4.0, FULL-TEXT Indexing and Search Arabic Data, Unicode

2005-11-25 Thread Alec . Cawley
AmirBehzad Eslami <[EMAIL PROTECTED]> wrote on 24/11/2005 18:36:25: > On 24/11/2005, Alec worte: > > > I think this is your problem: MySQL does not properly support Unicode > > until version 4.1. I am successfully using FullText with MySQL > 4.1 to sort >

Re: Huge number of tables with InnoDB

2006-01-13 Thread Alec . Cawley
e. I would expect the use of thousands of tables effectively to disable MySQL's caching capability, which is one of the biggest performance boosters. Alec "John McCaskey" <[EMAIL PROTECTED]> 13/01/2006 17:20 To "MySQL" cc Subject Huge number of

Re: Query Complexity Limit Question [Newbie Question]

2006-02-07 Thread Alec . Cawley
nt are *logically* and syntactically done on the huge table produced by the joins. However, the MySQL optimiser is not stupid and will perform the filter upstream of the JOIN where possible. Some experimentation and use of the EXPLAIN statement may be necessary to find the best ordering for querie

Re: InnoDB and locking

2006-02-10 Thread Alec . Cawley
th duplicate > keys. I thought this was suppose to lock the table so that would not happen. > > What am I not doing right? What am I not understanding about locking? I think this problem is explained in detail at http://dev.mysql.com/doc/refman/5.0/en/innodb-locking-reads.html Alec

Re: Newbie wants to load a couple of tables and join them

2006-02-13 Thread Alec . Cawley
Alternatively, the MySQL installation usually sets up a database imaginatively named "test" with wide rights, so that you could run you experiments within database test. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: primary key

2006-02-16 Thread Alec . Cawley
number in the exim table. Then have another table to convert the server name to a number. It is then trivially easy to use that table to convert from server number to name or vice versa. And the server name no l;onger has to be unique in the first N characters: as long as the names differ, t

Re: Merge tables.

2006-03-14 Thread Alec . Cawley
that you are optimising in the right place before you dive in: your problem suggests that you are trying to fix that which is not broken, and breaking other things in the process. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Merge tables.

2006-03-14 Thread Alec . Cawley
pecialist engine for seqrching and sorting stuff in the most efficent manner. And then you have said that you will disable all its optimisation and force it into a linear search. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Merge tables.

2006-03-14 Thread Alec . Cawley
ure might make sense. But if searches are over >10 sensors or >10 days, this architecture will b become astoundingly inefficient. Generally, I would expect MERGE tables to be used on much larger lumps of time. If you have tables per month, any random period of a month can be checked very e

Re: Accountability with MySQL

2006-03-16 Thread Alec . Cawley
flag with a 10 way join strikes me, as an engineer rather than a theoretician, the wrong side of the elegance/practicality trade-off. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Accountability with MySQL

2006-03-16 Thread Alec . Cawley
his means that you have multiplied your number of disk accesses (ignoring caching, again) by 6-11 times (assuming the master record takes two disk accesses). That again seems a very high price to pay for theoretical elegance. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to shutdown mysql from Java

2006-03-21 Thread Alec . Cawley
roblems if, for example, you wanted to run two such applications, because they would fight over it. Or if your application wanted to run on a PC which already had MySQL running for some other purpose. So I would suggest that it would be wisest to do as Rhino implies and to install MyS

Re: Question about autoincrement ID

2006-03-23 Thread Alec . Cawley
ot; flag. All selects then need to add "and deleted = 0". But you can find a (random) deleted row with "select id from table where deleted = 1 limit 1". If this returns a result, use update to re-populate that record, clearing the deleted flag. If it returns nothing, use insert to create a new record. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Key and Primary Key

2006-04-06 Thread Alec . Cawley
he synax ... primary key keyname (id, field2) ... ? This creates a single key in which neither of the fields may be null and the combination of the two fields (but not the two fields separately) must be unique. The effects on the two formulations both on constraints and on search performance are dif

How to determine index size ?

2006-11-09 Thread Alec Matusis
What is the byte size of an index for datetime type column? How can I compute disk space required if I want to add an index on a DATETIME column? Thanks -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: ft_stopword_file

2005-02-07 Thread Alec . Cawley
al variable ft_min_word_len to 3 to achieve what you want. As shipped, it is set to 4, which means that words of three or less letters are ignored. After changing the variable, you need to rebuild the index. Alec Cawley -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Performance of Sockets vs. TCP/IP connections on localhost?

2005-02-09 Thread Alec . Cawley
used on. In simple performance tests, it appears that named pipe access is between 30%-50% faster than the standard TCP/IP access." Alec Cawley -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to specify autoincrement primary key value

2005-02-10 Thread Alec . Cawley
ot; value, you will be in trouble. The function of autoincrement keys is to assign unique record identifiers. Do not mix this with other tasks. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: AW: Slow Replication

2005-02-10 Thread Alec . Cawley
e (on the Updates side at least) Raid 0 does not help you, because there are no overlapping reads to get from alternate disks. Alec Cawley -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: auto-increment stops at 127

2005-02-14 Thread Alec . Cawley
field anymore. > I'm completly lost here, any help would be greatly appreciated.. Please show your table description. This behaviour corresponds to the AUTO_INCREMENT column being defined as a TINYINT, range -128..+127. You probably need to change the definition of your key colum

Re: last_insert_id

2005-02-15 Thread Alec . Cawley
s get the most recent ID that you inserted, not the most recent that anyone inserted. I think, therefore, that the natural behaviour is what you want. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: how to make question that check the last hour

2005-02-15 Thread Alec . Cawley
t show which new users > have come the last hour, without that I need to edit the question > each time I want to ask. select from where date_sub(now(), interval 1 hour) <= created ; Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Automatic server-id generation for slaves?

2005-02-28 Thread Alec . Cawley
d inside MySQL, with a hostname to slave ID table in the mysql database. Obviously, explicitly assigned slave IDs would override this. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Compressing after Deletion

2005-03-09 Thread Alec . Cawley
cords, the commands suggested by David will certainly free space and probably improve performance. Alec Cawley "Logan, David (SST - Adelaide)" <[EMAIL PROTECTED]> wrote on 08/03/2005 22:58:12: > Hi Chris, > > For MyISAM/BDB tables use OPTIMIZE TABLE ; > For In

Re: temporary tables

2005-03-15 Thread Alec . Cawley
cterised the behaviour of the system without this kludge in place? Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Replicating InnoDB tables in new database

2005-03-18 Thread Alec . Cawley
s I know, there is no "file fiddling" way of doing what you wish to achieve. You need, I guess, the InnoDB Hot Backup tool - see http://www.innodb.com. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: update a field with multiple value

2005-03-18 Thread Alec . Cawley
+ > + A, B + > +-+ MySQL does not support arrays of data in one field. You cannot enter multiple entries into a numeric field. You could, of course, enter it as a string, but this is regarded as very bad practice. Most users would inquire why you need to do this,

Re: search through one/several tables

2005-03-23 Thread Alec . Cawley
, so I don't think solutions like Lucene could work. If your tables are all identical, which it sounds like, you want to create a Merge Table: see http://dev.mysql.com/doc/mysql/en/merge-storage-engine.html Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: search through one/several tables

2005-03-23 Thread Alec . Cawley
> Is there a more elegant (fast) way to do that with mysql? > > > > > > Somebody has some tips/doc where I could look for search engines?My > >problem > > > is that I don't have one big table with all the data but several little > >ones > > >

Re: help with a mutuality check (good query exercise :)

2005-03-29 Thread Alec . Cawley
select l.b, r.a = l.b from tab l join tab r on l.a = r.b where l.a = 1 ; seems to produce the result you want "Gabriel B." <[EMAIL PROTECTED]> 29/03/2005 09:30 Please respond to "Gabriel B." <[EMAIL PROTECTED]> To mysql@lists.mysql.com cc Subject help with a mutuality check (good query e

Re: Index on boolean column

2005-03-30 Thread Alec . Cawley
ore than 30% hits, it will probably be ignored unless the distribution of 0s and 1s is very skewed. If you only have a tiny fraction of (say) 1s, it might be useful to extract that tiny fraction - but useless for the opposite. Alec -- MySQL General Mailing List For list archives: http

Re: if statement help

2005-03-30 Thread Alec . Cawley
"Christopher Vaughan" <[EMAIL PROTECTED]> wrote on 30/03/2005 16:48:47: > I have data in a table listed as > 44:22:22 > 333:33:33 > It stands for hhh:mm:ss > I want to break each part of the data into different parts based on > the ':' to separate them. Then I want to take that data and sum it.

Re: how to run a file in MySQL

2005-04-04 Thread Alec . Cawley
The command you need is source ; Alternatively, if you are outside the mysql clined mysql < Alec "Joppe A" <[EMAIL PROTECTED]> 04/04/2005 09:59 To mysql@lists.mysql.com cc Subject how to run a file in MySQL Hello all, This is probably really basic f

Re: LIKE question - is it possible?

2005-04-14 Thread Alec . Cawley
to do a FULLTEXT search: see http://dev.mysql.com/doc/mysql/en/fulltext-search.html This requres using a FULLTEXT index on your column and using the MATCH command. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to make a virtual SELECT?

2005-04-26 Thread Alec . Cawley
ther or not it is 45 (returns 1 if it is). mysql> select minute(now()) ; +---+ | minute(now()) | +---+ |58 | +---+ 1 row in set (0.06 sec) mysql> select minute(now()) = 45 ; ++ | minute(now()) = 45 | ++ | 0 | +--

Re: full-text search

2005-04-29 Thread Alec . Cawley
tations of an IP address. http://dev.mysql.com/doc/mysql/en/miscellaneous-functions.html Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Question from a new user:MySQL vs MS SQLserver merges

2005-04-29 Thread Alec . Cawley
#x27;s performance with respect to > merges? Needless to say, unless I can improve MySQL's > > performance, I will not be converting to MySQL at this time. You need to post the results of EXPLAIN together with the structures of your tables, including indexes. This sort of pe

Re: newbie: how to sort a database without extracting the data

2005-05-04 Thread Alec . Cawley
ort the records during SELECT. But to do exactly this is what databases are designed to do: to accept data essentially randomy, build and maintain indexes on that data, and use those indexes at SELECT to produce a finely crafted subset of your data. Alec Christoph Lehmann <[EMAIL

Re: SELECT Row Numbers?

2005-05-10 Thread Alec . Cawley
is qitel likely to deliver them in the order of that index - which may not be the primary key. Indeed, the optimiser theoretically might use different indexes for the same query on different days, as the table cnages. It is therefore *never* safe to assume any sort of ordering unless you specify it. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: SATA vs SCSI

2005-05-12 Thread Alec . Cawley
s like? A year or so ago, the manufacturers drastically cut the warranties on their ATA drives, without changing the SCSI. Where to SATA fall in this spectrum? Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Index Question in MyISAM

2005-05-16 Thread Alec . Cawley
duckies" has a very large number of hits but the phrase does not. In sum, I wouldn't bother with this optimisation unless your search truens out in practice to be slow. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: query help?

2005-06-01 Thread Alec . Cawley
ement a 64-bit LONGTIMESTAMP. This will become easier in a few years when 64-bit OSs become mor the norm. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: LEFT JOIN?

2005-06-08 Thread Alec . Cawley
g the NOT > EXISTS command? LEFT JOIN sounds right to me: SELECT a.* FROM a LEFT JOIN b ON a.userID = b.userID WHERE a.isactive = 1 AND b.buddyID IS NULL ; All A A's which are active and do not have a buddy. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Need help with a query..

2005-06-16 Thread Alec . Cawley
to your target time and the last says you only want 15 of them. This version is based on exact seconds from the target time (now() in my case): the version which works in whole days would only be slightly different. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Need help with a query..

2005-06-16 Thread Alec . Cawley
gt; This does times relative to now(), but I am sure you can generalise it. > > The first line specifies the desired fields > > The second selects (in principle) all the records within your largest > > target window > > The third orders them by closeness to your target time >

Re: Concorrent users

2005-06-17 Thread Alec . Cawley
ey pause requiring disk access. However, once they are performing memory-locked operations, a single query will lock a CPU. On multi-CPU machines, it will generally run queries in parallel on the separate CPUs. Alec -- MySQL General Mailing List For list archives: http://lists.

Finding most recent date only

2003-12-03 Thread Alec Smith
Hi all - I've got a database along the lines of the following -- | Transactions | | Products | | TransDetails | -- | TransID | | ProdID | | TransID | | TransDate| | ProdName | |

Re: How can I share the MySQL data and where data and index files are stored

2003-12-06 Thread Alec . Cawley
not to be recommended at all. Could you perhaps explain what you are trying to achieve? There is quite likely to be a better way to achieve it. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How can I share the MySQL data and where data and index files are stored

2003-12-07 Thread Alec . Cawley
e two copies of the data, I don't bother to RAID it, which cuts costs back down to nearly the same as doing it with a single block of high-availability disks. There is the further advantage (which I haven't exploited yet) that, which all queries must go through the master, selects

Re: struggling newbie - datetime or timestamp problem

2004-01-05 Thread Alec . Cawley
w record is added, then it is automatically set to NOW(). Similarly, whenever the record is updated, if it is not explicitly set, it is overwritten with NOW(). This therefore takes care of your updateddate column. I think that there is no escape from putting "createddate = NOW()" in all your INSE

Re: What full-text improvements are next?

2004-01-12 Thread Alec . Cawley
2:34:56:01 into the dictionary as "words". Also, people, for reasons outside our control, put reference strings into title information which may contain dashes and underscores, which they would like to search on. Alec Cawley -- MySQL General Mailing List For list archives: http://l

Re: Odd Rounding?

2004-01-24 Thread Alec . Cawley
nner. To some extent, it depends uponn your application which is right: engineering vs. finance. Your system appears to be showing Windows behaviour. You could, I suppose, try rebuilding MySQL under Cygwin to get Unis-style behaviour. But this seems a sledgehammer to crack a nut.

Re: There has to be a way to do this

2004-02-09 Thread Alec . Cawley
thernet_address column has been specified to be UNIQUE. The MySQL IF is an operator, not a flow control structure: It would map more closely to the C "A?x:y" operator rather than the " if () then {} else {}". Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Query Question

2004-02-11 Thread Alec . Cawley
do this? Try SELECT FROM ORDER BY RAND() LIMIT 1 ; Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Documenting a mySQL server

2004-02-16 Thread Alec . Cawley
> course, the only documentation I have is a Post-It > note with the root password on it. That's a historic quote which should be framed and put above any database developers monitor. Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscri

Re: Speed of MyISAM vs. InnoDB

2004-02-18 Thread Alec . Cawley
I think count(*) is a special case: MyISAM holds a record count which it can access instantly, InnoDB has to count rows. Does the time difference persist for real queries? Alec Jiří Matějka <[EMAIL PROTECTED]> wrote on 18/02/2004 10:38:13: > Hi all, > I'm using m

Re: GRANT question

2004-02-23 Thread Alec . Cawley
s. While I am sure that there is an analytic way of handling the problems which arise, I found that it was very difficult to understand and a source of avoidable confusion. I would recommend that in any case where mixed *nix and Windows systems are involved, you keep database and table names ent

Re: Table Name Case Sensitivity

2004-02-23 Thread Alec . Cawley
ate for you - you have "duplicate" tables already. I imagine the problem would not occur with InnoDB tables, which put all the tables into a single data space (perhaps someone could confirm). In which case you could solve the problem by changing table types. Alec --

Re: Nested queries

2004-02-25 Thread Alec . Cawley
e join users on c_table.users_id = users.id where users.location_id = 3 ; Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: unique values across more than one column

2004-02-27 Thread Alec . Cawley
com/doc/en/LOCK_TABLES.html Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Dream MySQL Server?

2004-03-02 Thread Alec . Cawley
1Mb L3, 8Gb ram, dual 15000 rpm Scsi with Raid 1 (for performance as well as reliability). Does this sound balanced for a MySQL engine? Or what would other people advise? Thanks for any advice, Alec -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: Dream MySQL Server?

2004-03-03 Thread Alec . Cawley
avy joins. As I understand it, if the data is in memory and no lock collisions occur, a heavyweight query will hog a CPU until completed. Many CPUs (or virtual CPUs, with hyperthreading) allow many opportunities for simple queries to overlap complex ones. Alec -- MySQL General Mailing List For list

  1   2   3   4   >