Weird result on max compared to order by

2008-04-22 Thread jmacaranas
Hi,

  I did a select on a primary key.. 
Select max(account_id) from mytable;
   -- it gave me a value X

  I did a select with order by
Select account_id from mytable order by account_id desc limit 3
   -- it gave me a value of Y ( Y is the right value )


  I was wondering why it didn't gave me the same value and after some
time doing a select max gave me the right value Y

Tia,


This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.


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



RE: [SPAM] - MS SQL emulator for MySQL in order to support MS Project Server, Sharepoint... - Email found in subject

2008-02-13 Thread jmacaranas
http://blogs.ittoolbox.com/km/sharepoint/archives/sharepoint-and-mysql-2
2051

hmm.. but I think you might have problems getting support from
sharepoint's vendor... IIRC they always push to use SQL server for
this.. (we know the reason why.. :) )

 -Original Message-
 From: Jacob, Raymond A Jr [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 13, 2008 7:22 PM
 To: mysql@lists.mysql.com
 Subject: [SPAM] - MS SQL emulator for MySQL in order to support MS
 Project Server, Sharepoint... - Email found in subject
 
 I apologize for asking this question.
 I am somewhat confused by Microsoft's Licensing and I personally
 can not
 justify to senior management why
 MS SQL should be procured instead of procuring software more
urgent
 requirements.
 I had the not so bright idea that maybe a MS SQL emulator or
 compatibility mode existed for/in MySQL.
 Does such a beast exist?
 
 In particular, I wanted to use MySQL as backend database for MS
 Project
 Server and Sharepoint,
 and other applications that use MS SQL as their backend database.
 Again, I apologize for asking this question. I could not figure
out
 the
 correct string to search for
 such software.
 
 thank you


This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.


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



RE: [SPAM] - Re: Sun and mysql - Email found in subject

2008-01-17 Thread jmacaranas
 -Original Message-
 From: Olaf Stein [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 17, 2008 12:13 PM
 To: Peter (MySQL List); MySql
 Subject: [SPAM] - Re: Sun and mysql - Email found in subject
 
 You have a point.
 But, facebook makes NO money at this time, has about 400 employees
 and
 Microsoft estimates its values at 15 billion dollars. I simply
 think this is
 nuts. Maybe I am too old with 30, but I have never even been to
 facebook.
 
 It will be interesting to see if facebook, youtube and alike
 websites will
 ever generate enough earnings to cover the costs they were bought
 for.

With a perfect business plan I bet it will.

 Just because 50 million people know a website, it does not mean it
 makes
 money automatically.

Yes, I agree but once this 50 million visits the website and it would be
a different story.

 
 Olaf
 
 
 On 1/17/08 11:37 AM, Peter   (MySQL List)
 [EMAIL PROTECTED]
 wrote:
 
  On Thu, 17 Jan 2008 11:07:19 -0500
  Olaf Stein [EMAIL PROTECTED] wrote:
 
  I am still amazed by the fact that youtube is worth 1.5
 billion and
  MySQL AB barely 1 billion. Did they sell under price? Or does
 Google
  just have way to much many to spend/waste?
 
 
  On Thu, 17 Jan 2008 10:14:36 -0600
  Jay Blanchard [EMAIL PROTECTED] wrote:
 
  Or that Facebook is 'worth' multiple billions when they do not
 really
  have a way to make money yet.
 
 
  Uh, you both have to be kidding comparing MySQL with Youtube and
  Facebook, right?
  I'm not saying the $1 billion for MySQL was the right price, I
 believe
  it was a bargain for Sun but you are comparing apples and
  oranges.
 
  Go out on the street and ask people if they ever heard of these
 three.
  I bet you a few people will know MySQL, a lot will know Facebook
 and
  everybody will know Youtube.
 
  Youtube and Facebook are websites, visited by millions of people
 every
  day. That's what makes it it's value, future and present
  advertisements.
 
  YouTube was even used by CNN for the Republican and Democratic
 debates.
 
  Did you ever hear of MySQL on TV, anywhere?
 
 
 - Confidentiality Notice:
 The following mail message, including any attachments, is for the
 sole use of the intended recipient(s) and may contain confidential
 and privileged information. The recipient is responsible to
 maintain the confidentiality of this information and to use the
 information only for authorized purposes. If you are not the
 intended recipient (or authorized to receive information for the
 intended recipient), you are hereby notified that any review, use,
 disclosure, distribution, copying, printing, or action taken in
 reliance on the contents of this e-mail is strictly prohibited. If
 you have received this communication in error, please notify us
 immediately by reply e-mail and destroy all copies of the original
 message. Thank you.
 
 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]



This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.


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

RE: [SPAM] - Re: OT: Sun to buy Mysql - Email found in subject

2008-01-16 Thread jmacaranas
Big fish eats the small fish.. :)

Will this bring good things to MySQL?

-Original Message-
From: John Meyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 16, 2008 8:58 AM
To: Brett Harvey; mysql@lists.mysql.com
Subject: [SPAM] - Re: OT: Sun to buy Mysql - Email found in subject

Brett Harvey wrote:
 http://www.reuters.com/article/mergersNews/idUSWNAS661820080116
No offense, but this is definitely not off topic when it comes to MySQL

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



This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.


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



RE: [SPAM] - Re: [SPAM] - Re: OT: Sun to buy Mysql - Email found in subject - Email found in subject

2008-01-16 Thread jmacaranas
Oracle and Sun has a tight relationship right?  Wouldn't there be a
conflict of interest? 

-Original Message-
From: Sebastian Mendel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 16, 2008 10:03 AM
To: [EMAIL PROTECTED]
Cc: Jerome O. Macaranas; mysql@lists.mysql.com
Subject: [SPAM] - Re: [SPAM] - Re: OT: Sun to buy Mysql - Email found in
subject - Email found in subject

Richard Heyes schrieb:
 Will this bring good things to MySQL?
 
 $800,000,000 tends to bring good things. Hopefully. :-)

??? why, this payment goes to current owners and investors, not to MySQL

itself ...

but anyway, using Suns structures and power will help of course ...



-- 
Sebastian


This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.


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



RE: [SPAM] - Re: [SPAM] - Re: OT: Sun to buy Mysql - Email found in subject - Email found in subject

2008-01-16 Thread jmacaranas

I was lurking on Sun's website.. they are also carrying PostgreSQL in
their line of products.. Great!!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 16, 2008 10:07 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: mysql@lists.mysql.com
Subject: RE: [SPAM] - Re: [SPAM] - Re: OT: Sun to buy Mysql - Email
found in subject - Email found in subject

Oracle and Sun has a tight relationship right?  Wouldn't there be a
conflict of interest? 

-Original Message-
From: Sebastian Mendel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 16, 2008 10:03 AM
To: [EMAIL PROTECTED]
Cc: Jerome O. Macaranas; mysql@lists.mysql.com
Subject: [SPAM] - Re: [SPAM] - Re: OT: Sun to buy Mysql - Email found in
subject - Email found in subject

Richard Heyes schrieb:
 Will this bring good things to MySQL?
 
 $800,000,000 tends to bring good things. Hopefully. :-)

??? why, this payment goes to current owners and investors, not to MySQL

itself ...

but anyway, using Suns structures and power will help of course ...



-- 
Sebastian



This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for
any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.


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


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



RE: Unable to restart after crash

2008-01-14 Thread jmacaranas
Or maybe the pid is still existing?

-Original Message-
From: Ross Crawford [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 12, 2008 5:13 PM
To: mysql@lists.mysql.com
Subject: Unable to restart after crash

Hi,

My mysql server crashed last night, and when it rebooted, was unable to 
restart. Here is the error log:

Jan 13 00:12:54 localhost mysqld_safe[1324]: started
Jan 13 00:12:55 localhost mysqld[1327]: 080113  0:12:55  InnoDB: 
Database was not shut down normally!
Jan 13 00:12:55 localhost mysqld[1327]: InnoDB: Starting crash recovery.
Jan 13 00:12:55 localhost mysqld[1327]: InnoDB: Reading tablespace 
information from the .ibd files...
Jan 13 00:12:55 localhost mysqld[1327]: InnoDB: Restoring possible 
half-written data pages from the doublewrite
Jan 13 00:12:55 localhost mysqld[1327]: InnoDB: buffer...
Jan 13 00:12:56 localhost mysqld[1327]: 080113  0:12:56  InnoDB: 
Starting log scan based on checkpoint at
Jan 13 00:12:56 localhost mysqld[1327]: InnoDB: log sequence number 0 
111349.
Jan 13 00:12:56 localhost mysqld[1327]: InnoDB: Doing recovery: scanned 
up to log sequence number 0 111349
Jan 13 00:12:56 localhost mysqld[1327]: InnoDB: Last MySQL binlog file 
position 0 3587, file name /var/log/mysql/mysql-bin.000489
Jan 13 00:12:56 localhost mysqld[1327]: 080113  0:12:56  InnoDB: 
Started; log sequence number 0 111349
Jan 13 00:12:56 localhost mysqld[1327]: 080113  0:12:56 [Note] 
Recovering after a crash using /var/log/mysql/mysql-bin
Jan 13 00:12:56 localhost mysqld[1327]: 080113  0:12:56 [Note] Starting 
crash recovery...
Jan 13 00:12:56 localhost mysqld[1327]: 080113  0:12:56 [Note] Crash 
recovery finished.
Jan 13 00:12:57 localhost mysqld[1327]: 080113  0:12:57 [ERROR] Can't 
start server: Bind on TCP/IP port: Cannot assign requested address
Jan 13 00:12:57 localhost mysqld[1327]: 080113  0:12:57 [ERROR] Do you 
already have another mysqld server running on port: 3306 ?
Jan 13 00:12:57 localhost mysqld[1327]: 080113  0:12:57 [ERROR] Aborting
Jan 13 00:12:57 localhost mysqld[1327]:
Jan 13 00:12:57 localhost mysqld[1327]: 080113  0:12:57  InnoDB: 
Starting shutdown...
Jan 13 00:12:59 localhost mysqld[1327]: 080113  0:12:59  InnoDB: 
Shutdown completed; log sequence number 0 111349
Jan 13 00:12:59 localhost mysqld[1327]: 080113  0:12:59 [Note] 
/usr/sbin/mysqld: Shutdown complete
Jan 13 00:12:59 localhost mysqld[1327]:
Jan 13 00:12:59 localhost mysqld_safe[1374]: ended

And since then I am unable to start it. mysqld_safe aborts with:

Starting mysqld daemon with databases from /var/lib/mysql
mysqld_safe[3150]: started
STOPPING server from pid file /var/run/mysqld/mysqld.pid
mysqld_safe[3164]: ended


And error file:

Jan 13 06:03:06 localhost mysqld_safe[1318]: started
Jan 13 06:03:08 localhost mysqld[1321]: 080113  6:03:08  InnoDB: 
Started; log sequence number 0 111349
Jan 13 06:03:08 localhost mysqld[1321]: 080113  6:03:08 [ERROR] Can't 
start server: Bind on TCP/IP port: Cannot assign requested address
Jan 13 06:03:08 localhost mysqld[1321]: 080113  6:03:08 [ERROR] Do you 
already have another mysqld server running on port: 3306 ?
Jan 13 06:03:08 localhost mysqld[1321]: 080113  6:03:08 [ERROR] Aborting
Jan 13 06:03:08 localhost mysqld[1321]:
Jan 13 06:03:08 localhost mysqld[1321]: 080113  6:03:08  InnoDB: 
Starting shutdown...
Jan 13 06:03:11 localhost mysqld[1321]: 080113  6:03:11  InnoDB: 
Shutdown completed; log sequence number 0 111349
Jan 13 06:03:11 localhost mysqld[1321]: 080113  6:03:11 [Note] 
/usr/sbin/mysqld: Shutdown complete
Jan 13 06:03:11 localhost mysqld[1321]:
Jan 13 06:03:11 localhost mysqld_safe[1368]: ended

Nothing is running on port 3306, telnet gets connection refused. No 
mysql processes are running.

Does anyone have any ideas what might be wrong?

Thanks

ROSCO

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



This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is 

RE: Securing the Data

2008-01-10 Thread jmacaranas
You can limit access to tables in a database using a specific login..

Read on GRANT



-Original Message-
From: Sujatha S [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 3:06 PM
To: mysql@lists.mysql.com
Subject: Securing the Data

Hello,


Is it possible to encrypt data on mysql database.





I have the following requirement.



We have a development team, which will be involved in payroll system.



They will update the salary information  of all the employees in mysql
database. Due to this the members in development team have the rights to
access the payroll table, were they can see the salary of others
employee
and many more information of employee.



My question is , do we have any secure method to protect the data. Like
storing the data on encrypted format in mysql database.

Also, do we have any other possible methods to restrict the development
team
from access on the data's



Regards,

Suja


This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.


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



RE: Securing the Data

2008-01-10 Thread jmacaranas
Hmmm most likely developers will have a way to get that pass_str since
they are the Developers.. :)

-Original Message-
From: Jimmy Guerrero [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 3:35 PM
To: Sujatha S
Cc: Jerome O. Macaranas; mysql@lists.mysql.com
Subject: Re: Securing the Data

Hello,

http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html

discusses some available encrypt and decrypt functions native to MySQL.

-- Jimmy

Sujatha S wrote:
 Thanks for the update. Is there any method to encrypt the data on
mysql?
 
 Regards,
 Suja
 
 On 1/11/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 You can limit access to tables in a database using a specific login..

 Read on GRANT



 -Original Message-
 From: Sujatha S [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 10, 2008 3:06 PM
 To: mysql@lists.mysql.com
 Subject: Securing the Data

 Hello,


 Is it possible to encrypt data on mysql database.





 I have the following requirement.



 We have a development team, which will be involved in payroll system.



 They will update the salary information  of all the employees in
mysql
 database. Due to this the members in development team have the rights
to
 access the payroll table, were they can see the salary of others
 employee
 and many more information of employee.



 My question is , do we have any secure method to protect the data.
Like
 storing the data on encrypted format in mysql database.

 Also, do we have any other possible methods to restrict the
development
 team
 from access on the data's



 Regards,

 Suja





 This message and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom it is
 addressed. It may contain sensitive and private proprietary or
legally
 privileged information. No confidentiality or privilege is waived or
 lost by any mistransmission. If you are not the intended recipient,
 please immediately delete it and all copies of it from your system,
 destroy any hard copies of it and notify the sender. You must not,
 directly or indirectly, use, disclose, distribute, print, or copy any
 part of this message if you are not the intended recipient.
 FXDirectDealer, LLC reserves the right to monitor all e-mail
 communications through its networks. Any views expressed in this
 message are those of the individual sender, except where the
 message states otherwise and the sender is authorized to state them.

 Unless otherwise stated, any pricing information given in this
message
 is indicative only, is subject to change and does not constitute an
 offer to deal at any price quoted. Any reference to the terms of
 executed transactions should be treated as preliminary only and
subject
 to our formal confirmation. FXDirectDealer, LLC is not responsible
for any
 recommendation, solicitation, offer or agreement or any information
 about any transaction, customer account or account activity contained
in
 this communication.


 

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



RE: Red Hat EL and Datbase Setup

2008-01-09 Thread jmacaranas
Try reading on RAID1+0, though it's a bit expensive in implementation
but its great on READ  WRITE..

Basing on the current stable version there is no built in table
partitioning.. you can do it in an application level.. 

-Original Message-
From: Jason Vinar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 09, 2008 10:17 AM
To: mysql@lists.mysql.com
Subject: Red Hat EL and Datbase Setup

Hi,

I am looking for a little advice in setting up Red Hat and MySQL for a
large
database (at least I consider it to be large).  My database will contain
2
large tables that are updated daily.  The first table currenly has 19
million records and ~70 columns largely made up of varchar(20), char(5)
and
integers.  It has a natural primary key and a composite index on 3 of
the
character columns.  The second table currently has 400 million records
and
~30 columns again made up of varchar(20), char(5) and integers.  This
table's primary key is defined using 2 columns and also has a composite
index on the same 3 columns as the first table.  Lastly, I will
frequently
join the two tables in my queries.

My system has 4gb ram, 500 gb hard drive (result of a RAID 5
configuration)
and 2 dual core Intel 64 bit procs.  I have chosen to use Red Hat EL5.

Here are the questions I have to help optimize the performance:
* Should I continue with the RAID 5?  I am not too concerned of
recovery.  I
am more concerned about I/O performance.
* Is there a hard drive partition scheme that would help the performance
(separate the large db schema /var/lib/mysql/schema_name)?
* Should I partition the tables?  There is a natural partition for the
400m
table by date; there is not a natural partition for the other. Should I
make
one up?
* Are there specific additions to the /etc/my.cnf that I should add to
maximize the systems capabilities?
* Please let me know of other things I should consider.

Thanks in advance, Jason


This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.


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



RE: High Traffic Sites

2007-10-22 Thread jmacaranas
Hi,

   There are a lot of clustering you techniques you can use.  Read on
livejournal attack on this problem.  You need to start from the schema
poorly constructed schema will kill your hardware.

Go to Mysql Site search for whitepapers and friendster (I'm not
saying it the best implementation but it will give you an idea.)

Hth,

-Original Message-
From: Erich C. Beyrent [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 22, 2007 10:10 AM
To: MySQL General
Subject: Re: High Traffic Sites

Craig,

Thank you for your insight.  Having never worked with clustering 
solutions, what kinds of headaches might one see with that solution?

Does anyone know of any white papers that might shed some light into the

pros and cons of each solution?

-Erich-

Craig Huffstetler wrote:
 I highly recommend you hire a consultant or a freelance DBA to try to
work
 this out.
 
 You are talking about something pretty extensive. I would recommend
 replication across quite a few high-end servers (all 64 bit of course
with
 plenty of RAM). Clustering can be a pretty big headache. A lot of this
is
 going to depend on what you see the most of (reads/writes? etc.). You
are
 correct in your thoughts, though, about having multiple database
servers
 
 A project like this will most likely require much more initial
information
 and evaluations to find out a solution suitable to your needs.
 
 On 10/22/07, Erich C. Beyrent [EMAIL PROTECTED] wrote:
 A colleague and I are having a discussion about the best way to
handle
 high traffic sites.  For example, take a social networking site with
1
 million users.

 I think it would be better to have multiple web servers with multiple
 database servers in a master/slave scenario with replication.

 My colleague supports the idea of clustering, with MySQL running on
the
 same box as the web server.

 From a MySQL standpoint, are there any best practices for building
high
 traffic sites with a MySQL back end?  Neither my colleague nor I are
 DBA's, nor are we sys admin experts.

 Any thoughts are most welcome.

 -Erich-


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


 

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



This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.


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