RE: How can I see the query from a remote session against my server

2010-06-09 Thread Bill Dossett
log working if possible as it sounds pretty useful, so thanks again. Bill -Original Message- From: Jerry Schwartz [mailto:je...@gii.co.jp] Sent: 09 June 2010 16:43 To: 'Anirudh Sundar'; mysql@lists.mysql.com Subject: RE: How can I see the query from a remote session against my s

How can I see the query from a remote session against my server

2010-06-09 Thread Bill Dossett
ovide on this as I've got people that expect miracles in the next 5 minutes here! Bill

Query Question

2009-08-18 Thread Bill Arbuckle
I am in need of some help for the following: Say I have a table with 1M rows. Users are being added constantly (not deleted) during the queries that I am about to explain. The pk is uid and appid. I need to run queries in increments of 100K rows until reaching the end without duplicating row

Re: Finding not quite duplicates

2008-11-19 Thread Bill newton
.prod_discont < a.prod_discont WHERE alias_for_a.prod_num IS NULL ORDER BY b.prod_pub_prod_id; US Data Export wrote: -Original Message- From: Bill newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 6:49 PM To: Jerry Schwartz Cc: 'mysql' Subject: Re: Findin

Re: Finding not quite duplicates

2008-11-18 Thread Bill newton
that would accomplish that would be: SELECT IF(a.prod_num IS NOT NULL,IF(a.prod_discont = 0,a.prod_num,"discontinued"),"") as prod_num FROM b LEFT JOIN a ON b.prod_pub_prod_id = a.prod_pub_prod_id ORDER BY b.prod_pub_prod_id; You can nest IF statements in mysql queries. Hope it he

Re: normalised designs: customer database

2008-11-14 Thread Bill newton
fake company. If I had to choose one of those, I"d go with the dual foreign keys. #3 Thanks for the meaty question, Bill metastable wrote: Hello all, I have a question that's been bugging me for quite some time. Let's say we have a small business that has both private and co

Re: MySQL Sort by Array

2008-10-23 Thread Bill Newton
-- No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.8.2/1739 - Release Date: 10/22/2008 7:23 AM -- Bill Newton Network Merchants Inc. http://www.nmi.com (847) 352-4850 ext 141/ T

Re: Why people don't use engine named BDB?

2008-07-21 Thread Bill Newton
th this: *BDB support will be removed. * Note that, as of MySQL 5.1, BDB isn't supported any longer. http://dev.mysql.com/doc/refman/5.0/en/bdb-storage-engine.html But you're right that as a storgage engine, there have been very few questions related to it, on this mailing list anyw

Re: Find two sets of records

2008-04-15 Thread Bill Newton
Try using the sub query as a derived table ala: SELECT eo_name_table.eo_name, eo_name_table.eo_pub_date FROM eo_name_table LEFT JOIN (SELECT prod.prod_title FROM prod WHERE prod.prod_discont = 0) fake_prod on eo_name_table.eo_name = fake_prod.prod_title WHERE prod.prod_title IS NULL I'm not

Re: LEFT JOIN problem

2008-04-14 Thread Bill Newton
Hi Jerry, I think the problem is that NULL is not less than or greater than your prod_published date. So you probably have eo_pub_date set to NULL in 56 of your rows. so for eo_name_table.eo_pub_date > prod.prod_published or eo_name_table.eo_pub_date <= prod.prod_published mysql will rer

Re: Auto Fill blank Rows

2008-03-12 Thread Bill Newton
To get a blank line instead of NULL you could simply wrap the reference in an IFNULL function: select dummy.row_id,IFNULL(real.reference,'') as Reference from dummy left join real on real.row_id=dummy.row_id; Phil wrote: you could do something like select dummy.row_id,real.reference from

Re: Is there any workbench or development studio available for Linux?

2008-02-07 Thread Bill Newton
From the download page: Please note that at this point only the Windows Beta version is available. Linux and OS X releases will be available in 2008. It looks nice, I was looking for a similar tool 5 -6 years ago. It looks like what I would have wanted at the time. legolas wrote: Is ther

mysql-table-checksum with mixed storage enginges

2007-08-28 Thread Bill Newton
Will mysql-table-checksum from mysql toolkit work with setups that have different Master/ Slave storage engines? Are there any things to consider when using it between two different engines ( say Innodb master and MyIsam slave)? Thanks in advance, Bill Newton -- MySQL General Mailing

Re: it doesn't return from the mysql_query processing

2007-07-18 Thread Bill Newton
Hi Koki, You have to re- establish the database connection in each child process. Otherwise the packets get mangled and you get the errors you're seeing. Koki Takeda wrote: I hope that my contacting you is not an imposition in any way. My name is Koki Takeda. This time, I made the php progr

Re: MySQL 5 et les charset sur debian etch

2007-06-15 Thread Bill Newton
problème s'est produit dans le transfert des données à partir d'une base de données à l'autre. Comment avez-vous copié les données ? Vous pourriez examiner insérer de nouvelles données dans chaque base de données et voir si elle semble correcte. Bill Gilles MISSONNIER wrote: He

Order By and Ignore Punctuation

2007-05-03 Thread Bill Guion
I would like to perform a query of a personnel database with an ORDER BY clause that ignores punctuation. For example, O'shea would sort after Osbourne, not to the beginning of the Os. Is this doable in the query? -= Bill =- -- You can tell a lot about a man by th

using DISTINCT after the ORDER BY clause has been applied

2007-03-13 Thread Bill Guion
could retrieve the above data ? Thanks. Yashesh Bhatia. It looks to me as if your query returned exactly what you asked for. It found the first two rows (other rows are not distinct), and then ordered them in descending order by time stamp. Descending is largest to smallest. TS for

Re: www.innodb.com

2006-11-10 Thread Bill MacAllister
nature makes me think that it still should, and it doesn't now. That is the issue that I raised. I am guessing, given Reimer's insight, that the domain name registration has expired and someone needs to renew it. I hope they plan to do that because I found the site useful. Bill

Re: www.innodb.com

2006-11-09 Thread Bill MacAllister
--On Thursday, November 09, 2006 08:37:01 PM +0200 Onur <[EMAIL PROTECTED]> wrote: Bill MacAllister wrote: What happened to the Innodb web pages? What comes up for be is a search page with a bunch of related links on it. I wanted to pull down a copy of ibbackup documentation and it

www.innodb.com

2006-11-09 Thread Bill MacAllister
What happened to the Innodb web pages? What comes up for be is a search page with a bunch of related links on it. I wanted to pull down a copy of ibbackup documentation and it isn't there anymore. Bill +--- | Bill MacAllister, S

Default Column Value

2006-11-05 Thread Bill Guion
date, 1, 4),substr(start_date,6,2)). Something like ALTER TABLE events ALTER start_yr_mo start_yr_mo SET = concat(substr(start_date, 1, 4),substr(start_date,6,2)); -= Bill =- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscrib

Re: Client being locked out by aborted connections

2006-10-26 Thread Bill Moran
In response to Bill Moran <[EMAIL PROTECTED]>: > In response to "Dan Buettner" <[EMAIL PROTECTED]>: > > > Bill, you can up the value of 'max_connect_errors' (default is 10 it > > appears) to make this problem appear less frequently while you

Re: Client being locked out by aborted connections

2006-10-24 Thread Bill Moran
In response to "Dan Buettner" <[EMAIL PROTECTED]>: > Bill, you can up the value of 'max_connect_errors' (default is 10 it > appears) to make this problem appear less frequently while you > troubleshoot. Thanks for the thought, Dan. Before I do that, I

Client being locked out by aborted connections

2006-10-24 Thread Bill Moran
.3-RELEASE-p37 php5-pgsql-5.1.6_1 mysql-client-4.1.21 Server: FreeBSD 5.3-RELEASE-p37 mysql-server-4.1.21 -- Bill Moran Collaborative Fusion Inc. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: SELECT counting chars with LEFT()

2006-09-06 Thread Bill Tantzen
You know, this works just fine for me -- when you say it is NOT working, what do you mean exactly? Are you getting an error? Or results that you don't expect? Bill Tantzen University of Minnesota Libraries [EMAIL PROTECTED] 612-626-9949 (office) 612-250-6125

Re: text mode listing

2006-08-08 Thread Bill
Hi obed I looked many times in the commands list and maybe I didn't wat to see it !!! The answer is a '\G' appended at the end of the line. Thanks for the help Bill >> Can you remind me how to tell mysql to list vertically instead of horiz >> in >> text mode

text mode listing

2006-08-06 Thread Bill
Hi Can you remind me how to tell mysql to list vertically instead of horiz in text mode? Ex: select all * from a_tablesends field1 field2 . I want field1 field2 field... Thanks -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:htt

Re: Limit characters in a long text

2006-03-22 Thread Bill Adams
http://dev.mysql.com/doc/refman/5.0/en/string-functions.html I recommend "LEFT( )". If you are looking to do it in PHP then this is the wrong email list. Good luck. b. CodeHeads wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, Have a question: I would like to limit the amou

Re: copy one field value to another

2006-03-21 Thread Bill Adams
UPDATE table SET field_a=field_b; b. Ravi Malghan wrote: Hi: is there a way to copy all field values from one field to another from the mysql prompt? Thanks Ravi __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: innodb in 4.1.18

2006-03-21 Thread Bill Adams
InnoDB always needs the shared tablespace because it puts its internal data dictionary and undo logs there. The .ibd files are not sufficient for InnoDB to operate. well, thats what I found before. But it doesn't explain why InnoDB does need a logfile even when all transactions are committ

Re: innodb in 4.1.18

2006-03-21 Thread Bill Adams
Marten Lehmann wrote: I had a lot of trouble today because the InnoDB integration in MySQL is lousy. I read the manual and worked with innodb_per_file_table. So when I shutdown mysql I should be able to delete ib_logfile0, ib_logfile1 and ibdata1, because all table-data should be stored in th

Upper Limit to max_join_size? (4.1.18)

2006-03-17 Thread Bill Adams
to avoid using SET SQL_BIG_SELECTS=1. I know in earlier versions (perhaps 4.0.x?) I could increase the value to what I wanted. I will happily add the output from "show variables" if that will help. Thanks in advance for your help. --Bill Welcome to the MySQL monitor. Commands end

Re: Backups

2006-01-16 Thread Bill
Hi I'd say that you have an ideal situation to use a Raid level 1 system. "Rick Dwyer" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hello all. > I am looking into the different back up methods available for > safeguarding my MySQL databases. > Ideally, I would like to

Re: Converting decimal to binary

2006-01-10 Thread Bill Dodson
inary and have the result be returned as a separate field for each bit? For example, what I'd like to do is, Select ConvertToBin(245); And have a result that looked like this +---+---+---+---+---+---+---+---+ | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | +---+---+---+---+---+---+---+---+ | 1 | 1 | 1 | 1 |

Re: temporary table issue

2006-01-10 Thread Bill Dodson
anks in advance. Xiaobo -- Bill Dodson Parkline, Inc. http://www.parkline.com phone: 304-586-2113 x149 fax: 304-586-3842 email: [EMAIL PROTECTED] Email Disclaimer The information in any email is confidential and may be legally privileged. It is intended solely for the addressee. Access to the e

Re: Hijackers?

2005-12-13 Thread Bill Dodson
me fields I also use the HTML conversion functions to convert " to " etc. I found this helpful: http://www.unixwiz.net/techtips/sql-injection.html -- Bill Dodson Parkline, Inc. http://www.parkline.com phone: 304-586-2113 x149 fax: 304-586-3842 email: [EMAIL PROTECTED] Email Disc

RE: 'GROUP BY' behavior

2005-10-28 Thread Bill Adams
Shawn, That's a very reasonable answer. Thanks for pointing me to the examples. This one addresses the second question: http://dev.mysql.com/doc/refman/4.1/en/example-maximum-column-group-row. html . There is no example answering both questions in one query. Regards,

'GROUP BY' behavior

2005-10-28 Thread Bill Adams
) < timestamp GROUP BY qtreename,hostname My questions: >From which of the several averaged rows do 'allocated' and 'available' come in the results? Can I control this? I would like the row with maximu

How do you set a Primary Key when uploading data into a table?

2005-10-10 Thread Bill Abel
How do you load data into a table and generate a primary key which auto increments by 1. I want to end up with a primary key value of int 1, 2, 3, 4, and so on. My table has three rows, Id (pri_key), Code, Description. I'm loading data from a text file into the table like this: load data l

How do you set a Primary Key when uploading data into a table?

2005-10-10 Thread Bill Abel
How do you load data into a table and generate a primary key which increments by 1. I want to end up with a primary key value of int 1, 2, 3, 4, and so on. My table has three rows, Id, Code, Description. I'm loading data from a text file into the table like this: load data local infile '/U

Newbie MySQL/PHP question re output formatting

2005-09-13 Thread Bill Whitacre
e cell where I would expect to get $ 7,842,554.24 Any idea what I'm doing wrong? Clearly, I don't understand arrays very well. Thanks VERY much for any help on this. bw --- Bill Whitacre [EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySql hanging

2005-08-31 Thread Bill Duffy
circumstances though, I think rewriting it is the way to go. Thanks again, Bill Quoting [EMAIL PROTECTED]: Bill Duffy <[EMAIL PROTECTED]> wrote on 08/31/2005 11:32:02 AM: When I run a query like this DELETE FROM test_P_Cookie WHERE ViewID IN (SELECT ViewID FROM test_x_RM_4508_48875

MySql hanging

2005-08-31 Thread Bill Duffy
| | innodb_thread_concurrency | 8 | | interactive_timeout | 28800 | I tried this in MySQL 4.1.8, 4.1.12, and 4.1.14. Any help would be appreciated, Bill -- MySQL General Mailing List For list archives: http://

Re: MySQL

2005-08-25 Thread Bill
Hi Shawn, > Are transactions stable and supported (production ready) in MySQL? Yes, > with one caveat. You must keep your data in InnoDB tables in order to get > full commit/rollback support. MyISAM does not support automatic rollbacks. > Is mysqli_xx written to properly use the built-in transacti

Re: MySQL

2005-08-25 Thread Bill
Hi Shawn > The short answer is "Yes". Do you want a list of companies from the > "Fortune 100" or are you interested in a particular business area? There > are some huge names (http://www.mysql.com/customers/) that use MySQL for > critical, public-facing, and infrastructure applications. Many of

Re: MysqlI

2005-08-25 Thread Bill
> Hi > > Did someone use MySQLI in production environment ? > > Is the transactions aspect reliable ? (bugs etc) > > > Thanks. > > Sorry I should have specified that it's in the PHP environment. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

MysqlI

2005-08-24 Thread Bill
Hi Did someone use MySQLI in production environment ? Is the transactions aspect reliable ? (bugs etc) Thanks. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

SELECT vs SET for creating variables

2005-08-10 Thread Bill Dodson
enter, CONCAT(@neededStep, ' <= ', @startOfCenter), CONCAT(@neededStep, ' > ', @startOfCenter) ); It would seem that SET is a better way to create variables from constant values, but I would like to understand why. Does anybody know what is happening here? Thanks for y

getLong() vs getInt() result differs on unsigned field

2005-07-18 Thread Bill Easton
l public static void main(String[] args) { long theLong = 4294967298L; System.out.println("(int) 4294967298L = " + (int) theLong); } } C:\javabox>java TestLong (int) 4294967298L = 2 HTH Bill == original message follows == Date: Mon, 11 Jul 2005 13:54:12

db/mysql rookie request

2005-05-23 Thread Jorgensen, Bill
the time to develop some SQL to get the data I would like to get. However, I want to do this with a Korn shell script that emails the report to a list of internal customers. Any help you can provide would be greatly appreciated. Thanks in advance, Bill

mysqldump, --single-transaction and --flush-logs

2005-04-11 Thread Bill Easton
If I use the options --single-transaction and --flush-logs with mysqldump and InnoDB tables, does the new log file start at the same time as the transaction? If not, is it known for sure if the log file is switched before the transaction starts or if it is switched after the transaction starts? I

Re: Need help coverting MDB > SQL

2005-04-01 Thread Bill MacAllister
#x27;#' in literals when you specify them. The good think about using perl is that you can handle all of these problems. Hope that helps, Bill +--- | Bill MacAllister | 14219 Auburn Road | Grass Valley, CA 95949 --On Saturday, March 26, 2005 10

the new Connector J

2005-03-09 Thread Bill Dodson
DispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) SQLException: SQLState(S1009) Thanks bill -- MySQL General Mailing List For list archives: http://lists.mysql

Re: EBCDIC collation sequence

2005-03-02 Thread Bill Maidment
Bill Maidment wrote: Hi There doesn't appear to be any info. on the archives regarding this, so does anyone know what character set/collation sequence to use for EBCDIC rather than ASCII collation? I discovered the /usr/share/mysql/charsets directory and added a latin1_cp500_ci collation

EBCDIC collation sequence

2005-02-28 Thread Bill Maidment
Hi There doesn't appear to be any info. on the archives regarding this, so does anyone know what character set/collation sequence to use for EBCDIC rather than ASCII collation? Cheers Bill -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: global object-id

2005-02-11 Thread Bill Easton
Well, the answer is "no"--there's no magic way to have an auto_increment do what you want. You could use a GUID--basically a pseudo-random number such the expected time to pick a duplicate is on the order of the lifetime of the universe. But GUID's are big and ugly, and it would be nice to just ha

Re: Max connections being used every 10-12 day.

2005-01-05 Thread Bill Easton
erent indexes are used. In your query above, with the inner join, MySQL is going to first consider the join and then consider the use of indexes for the where clause--so it ends up with the full table scan. HTH, Bill = original message follows = From: Fredrik Carlsson <[EMAIL PROTECT

Re: ORDER BY sorting

2004-12-13 Thread Bill Easton
Mike, Try select * from foo order by x+0, x; x+0 converts x to an integer by taking the digits from the beginning of the string. == original message follows == Date: Sat, 11 Dec 2004 15:36:34 -0600 From: Mike Blezien <[EMAIL PROTECTED]> To: MySQL List <[EMAIL PROTECTED]> Subject

Re: Yet another LEFT JOIN question

2004-12-06 Thread Bill Easton
) solution looks at more rows; on the other hand, subqueries may not get as much optimization. I'd claim that the subquery describes better what you want, while the count(distinct) is a kludge to avoid the subquery. - Original Message - From: "Ron Gilbert" <[EMAIL PROTECTED]

Yet another LEFT JOIN question

2004-12-06 Thread Bill Easton
t the clicks, then left join that with the views. HTH Bill From: Ron Gilbert <[EMAIL PROTECTED]> Subject: Yet another LEFT JOIN question Date: Sat, 4 Dec 2004 12:08:43 -0800 I have three tables, 'Ads' is a list of ads, 'Clicks' is a simple list of every time a Ad was

relay log file maintenance problem

2004-11-29 Thread Bill Thomason
number relay log files so that someone doesn't have to check a replication server to see if the filesystem for the MySQL data directory hasn't been filled by old relay log files that haven't been accessed for some specified time? Thanks in advance, -bill -- MySQL General Mailin

Re: Reorder a table

2004-11-07 Thread Bill Easton
Martin, The following will do the resequencing you requested. Hope it helps. create table temporary_table select * from the_table; set @T=0; update temporary_table set id=(@T:=(@T+1)), the_time=the_time order by the_time; delete from the_table; insert into the_table select * from temporary_table

Live in Puget Sound?

2004-10-28 Thread Bill
person to be willing to come to my home in Des Moines, WA. I will pay travel time also. If interested contact Bill Cory at 253-946-0114

Re: Index not used for "select distinct"?

2004-10-24 Thread Bill Easton
be fast, as it only has to look for one of each possible IP in the larger table.) HTH, Bill Matthias Urlichs wrote: >We have a slight opimization problem here. > >Given this table: > >CREATE TABLE `test` ( > `IP` varchar(15) collate latin1_german1_ci NOT NULL default '&

Replication problem with a cross database query

2004-10-06 Thread Bill Thomason
ing the master/slave relationships and uncovered the bug in doing so. Thanks in advance, -Bill Thomason -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Table doesn't exist on query replication problem...

2004-10-06 Thread Bill Thomason
.total)>=15 and sum(a.dusers)>=6' holds the key to my problem because reporting.linkdata and reporting.users do not exist on the slave since it has no concept of the database named reporting. Is there a way to rework this query so that either there are no references to the reporting datab

Re: A query to swap the data in two fields

2004-09-24 Thread Bill Easton
1.beds2 >> >and >> > t2.beds2 to t1.beds >> > do I need to store one of the fields temporarily? >> >>Hey chums you normally get me an answer in minutes, is my question too easy? >>zzapper (vim, cygwin, wiki & zsh) >>-- > >zzapper, >

Re: Query takes terribly long

2004-09-20 Thread Bill Easton
9, so you won't ever see the values for 2004-02-29. Maybe you only care about an approximate result, and none of this matters. - Original Message - From: Dirk Schippers To: Bill Easton Cc: [EMAIL PROTECTED] Sent: Monday, September 20, 2004 6:06 PM Subject: Re: Query takes

Re: Query takes terribly long

2004-09-20 Thread Bill Easton
y WHERE putdatetime >= '2003-09-19' and putdatetime < '2003-09-20' AND put=1 AND front=1 AND (MONTH(putdatetime) <> 2 OR DAY(putdatetime) <> 29) ORDER BY putdatetime DESC LIMIT 0,30 HTH, Bill == Dirk Schippers wrote: == Date: Sun,

Re: can not find file *.MYI

2004-09-07 Thread Bill Easton
InnoDB doesn't use any *.MYI, only *.FRM. The indexes are in the data files. You might check the 4th byte of the .FRM file. x'0C'=InnnoDB, x'09'=MyISAM. If the InnoDB data files are good, there was a post earlier this year from Heikki Tuuri about how to get the structure from there. If the .FR

Re: please explain why this query isn't optimized

2004-09-06 Thread Bill Easton
Well, actually, there are 2.878 Meg rows, or 2878k. What's happening is that it's using the index to find all of the rows where changed > 0, then scanning for the maximum. If you just look for the maximum, then discard it if it's not greater than 0, it will be much faster. The following with Inn

Re: huge innodb data files

2004-08-27 Thread Bill Easton
Hmm, well... It really shouldn't take 2 min to select from an empty table, no matter what you have in my.cnf. So, something else is happening. One way that InnoDB can take forever to read from an empty table is if there's a transaction still in progress that was started some time ago. Perhaps th

Re: Replication blocked

2004-08-16 Thread Bill Easton
A few brief comments on this one... (1) "Multi-threaded would probably cause thousands of problems" Well, not necessarily. Currently, the slave reads transaction A from the relay log, executes its actions, commits it, then reads transaction B, executes and commits. It wouldn't be unreasonable

Count even when empty

2004-08-15 Thread Bill Easton
SELECT dbo.lists_.Name_, COUNT(dbo.members_.EmailAddr_) AS nojgid FROM dbo.lists_ INNER JOIN dbo.topics_ ON dbo.lists_.Topic_ = dbo.topics_.Title_ LEFT JOIN dbo.members_ ON dbo.members_.List_ = dbo.lists_.Name_ GROUP BY dbo.lists_.Name_, The first inner join gives you a

Count of two fields

2004-08-15 Thread Bill Easton
select ListName, count(*), sum(Info is not null) from ListTable group by ListName = Original Message Follows = From: "John Berman" <[EMAIL PROTECTED]> Subject: Count of two fields Wonder if you can help I have a table with a number of fields but the List Name Member Info Ever membe

Last insert id problem/bug

2004-07-24 Thread Bill Easton
SQL statement is rolled back--so you can get gaps. The reason for this is so that two threads can independently insert records with an auto_increment key without either one having to wait for the other. This can make a substantial difference to the concurrency of transactions. HTH Bill -

Re: CocoaMySQL access to db

2004-07-09 Thread Bill Allaire
Peter, My apologies on calling you Paul in my previous response instead of Peter. On Jul 9, 2004, at 10:30 PM, Peter Paul Sint wrote: Bill, thank you for the prompt help. This works. I have just to find out how to get the Startup Item (or some replacement) to open MySQL with --old_passwords

Re: CocoaMySQL access to db

2004-07-09 Thread Bill Allaire
ly used before when doing updates or installing some applications on OS X. Lastly, restart MySQL and you should be all set. On Jul 9, 2004, at 10:30 PM, Peter Paul Sint wrote: Bill, thank you for the prompt help. This works. I have just to find out how to get the Startup Item (or some replac

Re: CocoaMySQL access to db

2004-07-09 Thread Bill Allaire
Your problem may have to do with the difference in how 4.1.x+ does password hashing and that method is incompatible with older clients. You might find some help with this document: http://dev.mysql.com/doc/mysql/en/Old_client.html Specifically check out the information regarding resetting the pa

Re: Very strange database behavior

2004-07-07 Thread Bill Allaire
Paul, Has this class worked properly in the past? Have you tried executing the queries your class executes manually via the mysql client or a similar application removing your Java code from the equation? Have you run 'check table' if the table is either MyISAM or InnoDB? On Jul 7, 2004, at 1

[Stats] MySQL List: June 2004

2004-07-01 Thread Bill Doerrfeld
3 column 3 -- - Bill Doerrfeld[EMAIL PROTECTED] Blue World Communications, Inc. http://www.blueworld.com/ - B

Re: mysqld_safe in 4.1.2

2004-07-01 Thread Bill MacAllister
--On Wednesday, June 30, 2004 07:36:23 PM -0500 Paul DuBois <[EMAIL PROTECTED]> wrote: At 13:58 -0700 6/30/04, Bill MacAllister wrote: Hello, I am a bit confused by processing of user= specifications in the mysqld_safe script. Here is what I see: * If user= is specificed in the [mysq

mysqld_safe in 4.1.2

2004-06-30 Thread Bill MacAllister
a bug? Bill +---- | Bill MacAllister, Senior Programmer | PRIDE Industries | 10030 Foothills Blvd, Dept 1150 | Roseville, CA 95747 | 916-788-2402 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

reading past "bogus data in log event" error in binary log in 4.0.18 ?

2004-06-28 Thread Bill Earl
ad past this point in the log. However, the master server is running along just fine, writing new info into this log file just fine. Is there any way to get the slaves past this bad record, short of manually resyncing everything again? Thanks for your help! Bill Earl Network Admin www.bestbill.com

pashto/dari/arabic character sets question

2004-06-26 Thread Bill French
n 4.1? in earlier versions? and finally, is mysql 4.1 stable enough to use in a production environment, or is that ill-advised? thank you very much in advance, --bill french -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[

[Stats] MySQL List: May 2004

2004-06-02 Thread Bill Doerrfeld
4 mysql_real_query 3 -- ----- Bill Doerrfeld[EMAIL PROTECTED] Blue World Communications, Inc. http://www.blueworld.com/ ---

Re: optimizing inserts

2004-05-16 Thread Bill Allaire
On May 16, 2004, at 1:15 AM, Ron Gilbert wrote: I have a table that is: CREATE TABLE GPSData ( ID int(10) unsigned NOT NULL auto_increment, Lat decimal(9,5) default '0.0', Lon decimal(9,5) default '0.0', TDate datetime default NULL, PRIMARY KEY (ID), UNIQUE KEY ID (ID), KEY ID

Re: Sorting Varchar

2004-05-13 Thread Bill Easton
rting Varchar > From: [EMAIL PROTECTED] > Date: Wed, 12 May 2004 18:13:17 -0400 > > That didn't do it. I got 0,0,1050,1168,1195, 1975, 150,155,16500,170,178. > . . The non-numerics came out last (which I want). There are two zeros > but no negative numbers. Any alternatives? > > Ken >

Fw: Sorting Varchar

2004-05-12 Thread Bill Easton
> You could also use "order by cost+0,cost". This puts the non-numerics > first, then the numerics in numerical order. (You'd need to get fancier > if there are non-numerics starting with a digit or numerics <= 0.) > > > From: Sasha Pachev <[EMAIL PROTECTED]> > > > > [EMAIL PROTECTED] wrote: >

[Stats] MySQL List: April 2004

2004-05-03 Thread Bill Doerrfeld
4 denied 4 -- - Bill Doerrfeld[EMAIL PROTECTED] Blue World Communications, Inc. http://www.blueworld.com/ ---

Re: first LIMIT then ORDER

2004-04-24 Thread Bill Easton
curious. > From: "Keith C. Ivey" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: Fri, 23 Apr 2004 11:27:38 -0400 > Subject: Re: first LIMIT then ORDER > On 23 Apr 2004 at 7:23, Bill Easton wrote: > > The last suggestion is useful when you do care wh

Re: first LIMIT then ORDER

2004-04-23 Thread Bill Easton
The last suggestion is useful when you do care which entries you get, as you can use one order for limit and another for presentation. For example, if you'd like the LAST 10 rows, but sorted in FORWARD order, you can use something like (select * from HISTORY order by version desc limit 10) ord

Re: Randomly selecting from table

2004-04-21 Thread Bill Easton
If you want to guarantee that the selections are different, rand() doesn't quite do it, as you will get a repeated value with the appropriate probability. You will need to keep a record of what values have already been seen. Then, use something like select ... from my_table left join my_recor

how to rewrite this query without using temporary table

2004-04-15 Thread Bill Easton
will have - a row for each appointment in the given range - a row for each patient who doesn't have an appointment Then the where clause throws away the ones with appointments. regards, Bill > From: "lorenzo.kh" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED

[Stats] MySQL List: March 2004

2004-04-02 Thread Bill Doerrfeld
rd_len 5 -- - Bill Doerrfeld[EMAIL PROTECTED] Blue World Communications, Inc. http://www.blueworld.com/ - Build and

using "old" frm files

2004-03-24 Thread Bill Easton
e one just created. (3) If the table you lost was InnoDB, change the 4th byte of the file from hex 0C to hex 09. (This makes it look like a MyISAM .frm) (4) You should be able to run "show create table foo" from the MySQL client. HTH Bill Easton Lexpar > Date: Tue, 23 Mar 2004 11:04:49

Re: Partial Replication ?

2004-03-07 Thread Bill Easton
You can suppress writing the delete query to the binary log. mysql>set sql_log_bin = 0; mysql>delete ... ; mysql>set sql_log_bin=1; Bonnet R?my <[EMAIL PROTECTED]> wrote: > Hello, > > I have a database which is flushed every four hours, > and > I want to replicate it without replicating the del

[Stats] MySQL List: February 2004

2004-03-02 Thread Bill Doerrfeld
6 script 6 -- ----- Bill Doerrfeld[EMAIL PROTECTED] Blue World Communications, Inc. http://www.blueworld.com/ -

RE: disabling optimizations to identify slow queries

2004-02-24 Thread Bill Marrs
At 12:07 PM 2/24/2004, Keith C. Ivey wrote: Sounds like it's your operating system's caching of the disk reads. Yikes... that would explain it. um... anyone know how to disable disk caching on Linux 2.6 kernel? -bill -- MySQL General Mailing List For list archives: http://lists.mysql

RE: disabling optimizations to identify slow queries

2004-02-24 Thread Bill Marrs
ccumulated effect is slow, but each query generally isn't that slow. Yes, I'm using explain... that's usually how I work on slow querys, run explain, try adding and index, etc. These queries already have indexes, but in some cases they aren't fast. -bill -- MySQL Gene

  1   2   3   4   5   6   >