Threads on FreeBSD 4.9

2004-05-04 Thread Max Clark
Can't create a new thread (errno 35). If you are not out of available 
memory, you can consult the manual for a possible OS-dependent bug

I am running FreeBSD 4.9 with Mysql 4.0.18 compiled with Linux Threads. 
I am running large inbound concurrency on Postfix which is forking 
several processes. How do I tune my mysql db servers to resolve this error?

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


Performance Tuning on FreeBSD

2004-05-01 Thread Max Clark
Hi all,

I have a db that is connection heavy running on FreeBSD 4.9. The server 
was compiled with Linux Threads enabled.

I am searching for performance tuning information. Outside of enabling 
Linux Threads I haven't been able to find much else. I am under the 
impression that I should be using innodb tables instead of myisam, and I 
am sure there are a slew of other things that I could tune. Is there a 
site/document dedicated to this? My copy of high performany mysql by 
Jeremy Zawodny is in the mail, so any help in the mean time would be 
greatly appreciated.

I am getting cannot create new thread errors on my system when load 
gets extremely heavy, are there any additional things I can do to help 
this? Would FreeBSD 5.1 be any better?

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


Re: Select Date Help

2003-01-03 Thread Max Clark
Thanks everyone for their help!

Max Clark [EMAIL PROTECTED] wrote in message
av2eai$8he$[EMAIL PROTECTED]">news:av2eai$8he$[EMAIL PROTECTED]...
 Hi all,

 I have a DATE column (CCYY-MM-DD), I would like to do a query like this:

 select * from table where date = '2003-01'

 What additional information do I need to provide for this query to work
 properly?

 Thanks in advance,
 Max





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

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







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

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




Select Date Help

2003-01-02 Thread Max Clark
Hi all,

I have a DATE column (CCYY-MM-DD), I would like to do a query like this:

select * from table where date = '2003-01'

What additional information do I need to provide for this query to work
properly?

Thanks in advance,
Max





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

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




newbie - linking queries with dynamic where conditions

2002-12-12 Thread Max Clark
Hi-

I am trying to write a sql query that will output (domain, transport,
sum(count), sum(size)) from multiple tables for many records.

When the domain field is dynamic based on the adminId passed to the query,
how do I execute the second query at the same time?

Thanks in advance,
Max

select a.domain, a.transport from transport as a, acl as b where
a.id=b.transportId and b.adminId='1';
select sum(count), sum(size) from stats where email like '%a.domain';






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

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




Re: newbie - linking queries with dynamic where conditions

2002-12-12 Thread Max Clark
So I am trying to accomplish something like this:

select a.domain, a.transport, sum(c.recipient_count) sum(c.recipient_size)
from transport as a, acl as b, recipientstats as c where a.id=b.transportId
and b.adminId='1' and c.recipient_email like '%a.domain';

But I know I am missing something because of the error.

Can anyone point me in the right direction?

Thanks in advance,
Max

Max Clark [EMAIL PROTECTED] wrote in message
ataq2r$ev1$[EMAIL PROTECTED]">news:ataq2r$ev1$[EMAIL PROTECTED]...
 Hi-

 I am trying to write a sql query that will output (domain, transport,
 sum(count), sum(size)) from multiple tables for many records.

 When the domain field is dynamic based on the adminId passed to the query,
 how do I execute the second query at the same time?

 Thanks in advance,
 Max

 select a.domain, a.transport from transport as a, acl as b where
 a.id=b.transportId and b.adminId='1';
 select sum(count), sum(size) from stats where email like '%a.domain';






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

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







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

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




Newbie- Help with query

2002-12-11 Thread Max Clark
Help!

I am a new mysql user, I understand the basic syntax of the commands for 
different sql queries.

I am trying to write a query and I can't seem to figure it out. I would 
like to select all domain,transport fields from the transport table 
where the transport id = a query agains the acl table (select 
transportId from acl where adminId='1').

When I try this I get a sql error, what do I need to do differently?

Thanks in advance,
Max

mysql describe transport;
+---+--+--+-+-++
| Field | Type | Null | Key | Default | Extra  |
+---+--+--+-+-++
| id| smallint(5) unsigned |  | PRI | NULL| auto_increment |
| domain| char(50) |  | UNI | ||
| transport | char(50) |  | | ||
+---+--+--+-+-++
3 rows in set (0.01 sec)

mysql describe acl;
+-+--+--+-+-++
| Field   | Type | Null | Key | Default | Extra 
 |
+-+--+--+-+-++
| id  | smallint(5) unsigned |  | PRI | NULL| 
auto_increment |
| adminId | smallint(5) unsigned |  | | 0   | 
 |
| transportId | smallint(5) unsigned |  | | 0   | 
 |
| securityId  | smallint(5) unsigned |  | | 0   | 
 |
+-+--+--+-+-++
4 rows in set (0.00 sec)




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

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



Newbie - group and tally help

2002-12-11 Thread Max Clark
Hi-

I am trying to write a sql query that will select, group and tally records
returned.

select name, count from stats order by name;

foo2
foo4
foo6
foo15
foo210
foo315

I would like the output to be like this:

foo12
foo130

How do I accomplish this in mysql?

Thanks in advance,
Max





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

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




Newbie - auto_increment multiple table insert help

2002-12-11 Thread Max Clark
Hi-

I would like to run an insert query across two tables at the same time. The
first table has a primary key that is auto_increment, the second table needs
to insert the primary key from the first table as a reference?

How do I auto-populate the tableId field with the correct entry from the
first table insert?

Thanks in advance,

Max

insert into table1 (name, desc) values (foo, foouser);

id name desc

55 foo foouser

insert into table2 (table1Id, text) values (?, some text);

id table1Id text

69 55 some text





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

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