MySQL 5.1.26-rc has been released

2008-07-14 Thread Joerg Bruehe

Dear MySQL users,


We are proud to present to you the MySQL Server 5.1.26-rc release,
a new release candidate version of the popular open source database.

MySQL 5.1.26-rc is slated to be the last release candidate before we
declare MySQL 5.1 as production ready (GA). We therefore appreciate
any feedback and community testing of this release, to ensure that we
have ironed out any remaining critical issues.

This one is still labeled a candidate release, so the usual hints
about a pre-production release apply.
For production level systems using 5.0, we would like to direct your
attention to the product description of MySQL Enterprise at:

  http://mysql.com/products/enterprise/

The MySQL 5.1.26-rc release is now available in source and binary form
for a number of platforms from our download pages at

  http://dev.mysql.com/downloads/

and mirror sites. Note that not all mirror sites may be up to date at
this point in time, so if you can't find this version on some mirror,
please try again later or choose another download site.

Please also note that some of our mirrors are currently experiencing
problems that may result in serving corrupted files. We are working with
the mirror maintainers to resolve this.

We welcome and appreciate your feedback, bug reports, bug fixes,
patches etc.:

  http://forge.mysql.com/wiki/Contributing

The following section lists the changes from version to version in the
MySQL source code since the latest released version of MySQL 5.1, the
MySQL 5.1.25-rc release. It can also be viewed online at

  http://dev.mysql.com/doc/refman/5.1/en/news-5-1-26.html


Sincerely,

Jörg Brühe
The MySQL build team at Sun Microsystems


===

News from the Changelog:

Functionality added or changed:
  * The FEDERATED storage engine now is disabled by default in
binary distributions. The engine is still available and can be
enabled by starting the server with the --federated option.
(Bug#37069: http://bugs.mysql.com/37069)

Bugs fixed:
  * An empty bit-string literal (b'') caused a server crash.
Now the expression is accepted as an empty binary string
(which   has   a   value   of  0  in  numeric  context).
(Bug#35658: http://bugs.mysql.com/35658)
  * Replication:  Performing  an insert on a table having an
AUTO_INCREMENT column and an INSERT trigger that was being
replicated from a master running MySQL 5.0 or any version of
MySQL 5.1 up to and including MySQL 5.1.11 to a slave running
MySQL 5.1.12 or later caused the replication slave to crash.
(Bug#36443: http://bugs.mysql.com/36443)
See also Bug#33029: http://bugs.mysql.com/33029
  * Row-based replication broke for utf8 CHAR columns longer than
85 characters. (Bug#37426: http://bugs.mysql.com/37426)
  * NOT IN subqueries that selected MIN() or MAX() values but
produced  an  empty  result  could cause a server crash.
(Bug#37004: http://bugs.mysql.com/37004)
  * ha_innodb.so  was incorrectly installed in the lib/mysql
directory rather thaninlib/mysql/plugin.
(Bug#36434: http://bugs.mysql.com/36434)
  * The code for detecting a byte order mark (BOM) caused mysql to
crash for empty input.
(Bug#35480: http://bugs.mysql.com/35480)
  * The mysql client incorrectly parsed statements containing the
word delimiter in mid-statement.
(Bug#33812: http://bugs.mysql.com/33812)

Jörg Brühe

--
Joerg Bruehe,  MySQL Build Team,  [EMAIL PROTECTED]
Sun Microsystems GmbH,   Sonnenallee 1,   D-85551 Kirchheim-Heimstetten
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering Muenchen: HRB161028









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



Problem - Host 'abc.def.com' is not allowed to connect to this MySQL server, Please advice..

2008-07-14 Thread ahmadbasha.shaik
Hi All,

I am facing a particular problem which i have explained here. Can
you please let me know a solution for this.

From my web application, I am trying to connect the MySQL server by
using the IP address as the server name, and it says the following
error:
Host 'abc.def.com' is not allowed to connect to this MySQL server

Options that I tried: (from the information availabe on internet)
a) I tried modifying the hosts file in WinNT directory to include this
host name (assuming that it was not understanding the IP), but it did
not work
b) I tried adding a record with the IP as host and user as root in user
table of mysql database it did not work
c) I tried adding a record with the 'abc.def.com' as host and user as
root in user table of mysql database it did not work
d) I tried enabling Remote Access in MySQL Server instance config
wizard but since the root users password is not set, it is not allowing
me go forward (i.e. the next button is disabled)
e) If I try to reset the password while configuring the MySQL Server
Instance, it does not allow me to do so
f) I tried adding a record with the '%' as host and user as root in user
table of mysql database it did not allow me to add the record

Regards
Ahmad

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

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



RE: Problem - Host 'abc.def.com' is not allowed to connect to this MySQL server, Please advice..

2008-07-14 Thread ahmadbasha.shaik
Hi,

I did that too,

I executed the command  - GRANT ALL PRIVILEGES ON *.* to
'root'@'localhost' ;
I tried also GRANT ALL PRIVILEGES ON *.* to 'root'@'abc.def.com' ; where
abc.def.com is my machine name

But both of these did not work, I did not mention this in my earlier
mail. Can you please let me know if there is any other way out.

Regards
Ahmad

-Original Message-
From: Parikh, Dilip Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:26 PM
To: Ahmadbasha Shaik (WT01 - E-ENABLING); Raghavendra Hosabettu (WT01 -
Innovation Group)
Subject: FW: Problem - Host 'abc.def.com' is not allowed to connect to
this MySQL server, Please advice..
Importance: High


Hi all,

First try checking out the grant for the particular user ?

Show grants for user@'abc.def.com';

If u don't find the results u can give grant as :-

Grant select on *.* to user@'abc.def.com' identified by ''; Flush
privileges;



Thanks  Regards,
Dilipkumar

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:21 PM
To: mysql@lists.mysql.com
Cc: [EMAIL PROTECTED]
Subject: Problem - Host 'abc.def.com' is not allowed to connect to this
MySQL server, Please advice..
Importance: High

Hi All,

I am facing a particular problem which i have explained here. Can
you please let me know a solution for this.

From my web application, I am trying to connect the MySQL server by
using the IP address as the server name, and it says the following
error:
Host 'abc.def.com' is not allowed to connect to this MySQL server

Options that I tried: (from the information availabe on internet)
a) I tried modifying the hosts file in WinNT directory to include this
host name (assuming that it was not understanding the IP), but it did
not work
b) I tried adding a record with the IP as host and user as root in user
table of mysql database it did not work
c) I tried adding a record with the 'abc.def.com' as host and user as
root in user table of mysql database it did not work
d) I tried enabling Remote Access in MySQL Server instance config
wizard but since the root users password is not set, it is not allowing
me go forward (i.e. the next button is disabled)
e) If I try to reset the password while configuring the MySQL Server
Instance, it does not allow me to do so
f) I tried adding a record with the '%' as host and user as root in user
table of mysql database it did not allow me to add the record

Regards
Ahmad

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com

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


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

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



Re: Problem - Host 'abc.def.com' is not allowed to connect to this MySQL server, Please advice..

2008-07-14 Thread Glyn Astill
make sure to FLUSH PRIVILAGES;



- Original Message 
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; mysql@lists.mysql.com
 Cc: [EMAIL PROTECTED]
 Sent: Monday, 14 July, 2008 10:59:35 AM
 Subject: RE: Problem - Host 'abc.def.com' is not allowed to connect to this 
 MySQL server, Please advice..
 
 Hi,
 
 I did that too,
 
 I executed the command  - GRANT ALL PRIVILEGES ON *.* to
 'root'@'localhost' ;
 I tried also GRANT ALL PRIVILEGES ON *.* to 'root'@'abc.def.com' ; where
 abc.def.com is my machine name
 
 But both of these did not work, I did not mention this in my earlier
 mail. Can you please let me know if there is any other way out.
 
 Regards
 Ahmad
 
 -Original Message-
 From: Parikh, Dilip Kumar [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 14, 2008 3:26 PM
 To: Ahmadbasha Shaik (WT01 - E-ENABLING); Raghavendra Hosabettu (WT01 -
 Innovation Group)
 Subject: FW: Problem - Host 'abc.def.com' is not allowed to connect to
 this MySQL server, Please advice..
 Importance: High
 
 
 Hi all,
 
 First try checking out the grant for the particular user ?
 
 Show grants for user@'abc.def.com';
 
 If u don't find the results u can give grant as :-
 
 Grant select on *.* to user@'abc.def.com' identified by ''; Flush
 privileges;
 
 
 
 Thanks  Regards,
 Dilipkumar
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 14, 2008 3:21 PM
 To: mysql@lists.mysql.com
 Cc: [EMAIL PROTECTED]
 Subject: Problem - Host 'abc.def.com' is not allowed to connect to this
 MySQL server, Please advice..
 Importance: High
 
 Hi All,
 
 I am facing a particular problem which i have explained here. Can
 you please let me know a solution for this.
 
 From my web application, I am trying to connect the MySQL server by
 using the IP address as the server name, and it says the following
 error:
 Host 'abc.def.com' is not allowed to connect to this MySQL server
 
 Options that I tried: (from the information availabe on internet)
 a) I tried modifying the hosts file in WinNT directory to include this
 host name (assuming that it was not understanding the IP), but it did
 not work
 b) I tried adding a record with the IP as host and user as root in user
 table of mysql database it did not work
 c) I tried adding a record with the 'abc.def.com' as host and user as
 root in user table of mysql database it did not work
 d) I tried enabling Remote Access in MySQL Server instance config
 wizard but since the root users password is not set, it is not allowing
 me go forward (i.e. the next button is disabled)
 e) If I try to reset the password while configuring the MySQL Server
 Instance, it does not allow me to do so
 f) I tried adding a record with the '%' as host and user as root in user
 table of mysql database it did not allow me to add the record
 
 Regards
 Ahmad
 
 Please do not print this email unless it is absolutely necessary.
 
 The information contained in this electronic message and any attachments
 to this message are intended for the exclusive use of the addressee(s)
 and may contain proprietary, confidential or privileged information. If
 you are not the intended recipient, you should not disseminate,
 distribute or copy this e-mail. Please notify the sender immediately and
 destroy all copies of this message and any attachments.
 
 WARNING: Computer viruses can be transmitted via email. The recipient
 should check this email and any attachments for the presence of viruses.
 The company accepts no liability for any damage caused by any virus
 transmitted by this email.
 
 www.wipro.com
 
 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]
 
 
 Please do not print this email unless it is absolutely necessary. 
 
 The information contained in this electronic message and any attachments to 
 this 
 message are intended for the exclusive use of the addressee(s) and may 
 contain 
 proprietary, confidential or privileged information. If you are not the 
 intended 
 recipient, you should not disseminate, distribute or copy this e-mail. Please 
 notify the sender immediately and destroy all copies of this message and any 
 attachments. 
 
 WARNING: Computer viruses can be transmitted via email. The recipient should 
 check this email and any attachments for the presence of viruses. The company 
 accepts no liability for any damage caused by any virus transmitted by this 
 email. 
 
 www.wipro.com
 
 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html

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

RE: Problem - Host 'abc.def.com' is not allowed to connect to this MySQL server, Please advice..

2008-07-14 Thread ahmadbasha.shaik
Hi Parikh,

Yes.. It worked with IP i.e when I granted privileges to 'root'@'ip of
my machine' and flushed it, it worked fine. But I have a qestion below:

GRANT ALL PRIVILEGES ON *.* to 'root'@'IP';
FLUSH PRIVILEGES;

However, Would '*.def.com' work in the place of IP?, as I feel that
giving privileges for each IP for each machine that is going to access
the mysql server would be tedious and not recommended choice. Please let
me know.

Regards
Ahmad

-Original Message-
From: Parikh, Dilip Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:34 PM
To: Ahmadbasha Shaik (WT01 - E-ENABLING); Raghavendra Hosabettu (WT01 -
Innovation Group)
Subject: FW: Problem - Host 'abc.def.com' is not allowed to connect to
this MySQL server, Please advice..

Ok It means that DNS not configured so better give the IP address
instead of hsostname and check using in mysql as


Show grants for [EMAIL PROTECTED];

This should show u the grants




Thanks  Regards,
Dilipkumar
MphasiS an EDS Company | No 25,Steeple Reach,Cathedral Road | Chennai |
India |  91 44 28113801 |Extn 2216
Mobile: 9884430998 | 9962029004

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:30 PM
To: Parikh, Dilip Kumar; mysql@lists.mysql.com
Cc: [EMAIL PROTECTED]
Subject: RE: Problem - Host 'abc.def.com' is not allowed to connect to
this MySQL server, Please advice..

Hi,

I did that too,

I executed the command  - GRANT ALL PRIVILEGES ON *.* to
'root'@'localhost' ; I tried also GRANT ALL PRIVILEGES ON *.* to
'root'@'abc.def.com' ; where abc.def.com is my machine name

But both of these did not work, I did not mention this in my earlier
mail. Can you please let me know if there is any other way out.

Regards
Ahmad

-Original Message-
From: Parikh, Dilip Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:26 PM
To: Ahmadbasha Shaik (WT01 - E-ENABLING); Raghavendra Hosabettu (WT01 -
Innovation Group)
Subject: FW: Problem - Host 'abc.def.com' is not allowed to connect to
this MySQL server, Please advice..
Importance: High


Hi all,

First try checking out the grant for the particular user ?

Show grants for user@'abc.def.com';

If u don't find the results u can give grant as :-

Grant select on *.* to user@'abc.def.com' identified by ''; Flush
privileges;



Thanks  Regards,
Dilipkumar

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:21 PM
To: mysql@lists.mysql.com
Cc: [EMAIL PROTECTED]
Subject: Problem - Host 'abc.def.com' is not allowed to connect to this
MySQL server, Please advice..
Importance: High

Hi All,

I am facing a particular problem which i have explained here. Can
you please let me know a solution for this.

From my web application, I am trying to connect the MySQL server by
using the IP address as the server name, and it says the following
error:
Host 'abc.def.com' is not allowed to connect to this MySQL server

Options that I tried: (from the information availabe on internet)
a) I tried modifying the hosts file in WinNT directory to include this
host name (assuming that it was not understanding the IP), but it did
not work
b) I tried adding a record with the IP as host and user as root in user
table of mysql database it did not work
c) I tried adding a record with the 'abc.def.com' as host and user as
root in user table of mysql database it did not work
d) I tried enabling Remote Access in MySQL Server instance config
wizard but since the root users password is not set, it is not allowing
me go forward (i.e. the next button is disabled)
e) If I try to reset the password while configuring the MySQL Server
Instance, it does not allow me to do so
f) I tried adding a record with the '%' as host and user as root in user
table of mysql database it did not allow me to add the record

Regards
Ahmad

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com

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


Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, 

Re: ***SPAM*** RE: Problem - Host 'abc.def.com' is not allowed to connect to this MySQL server, Please advice..

2008-07-14 Thread Curtis Maurand


grant all on *.* to root@'%.def.com';  /* The percent sign is your 
wildcard character. */

flush privileges;

I don't think you need to flush privileges as of 5.0.  I still do just 
to be sure.


Curtis

[EMAIL PROTECTED] wrote:

Hi Parikh,

Yes.. It worked with IP i.e when I granted privileges to 'root'@'ip of
my machine' and flushed it, it worked fine. But I have a qestion below:

GRANT ALL PRIVILEGES ON *.* to 'root'@'IP';
FLUSH PRIVILEGES;

However, Would '*.def.com' work in the place of IP?, as I feel that
giving privileges for each IP for each machine that is going to access
the mysql server would be tedious and not recommended choice. Please let
me know.

Regards
Ahmad 


-Original Message-
From: Parikh, Dilip Kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2008 3:34 PM

To: Ahmadbasha Shaik (WT01 - E-ENABLING); Raghavendra Hosabettu (WT01 -
Innovation Group)
Subject: FW: Problem - Host 'abc.def.com' is not allowed to connect to
this MySQL server, Please advice..

Ok It means that DNS not configured so better give the IP address
instead of hsostname and check using in mysql as


Show grants for [EMAIL PROTECTED];

This should show u the grants

 



Thanks  Regards,
Dilipkumar
MphasiS an EDS Company | No 25,Steeple Reach,Cathedral Road | Chennai |
India |  91 44 28113801 |Extn 2216
Mobile: 9884430998 | 9962029004

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:30 PM
To: Parikh, Dilip Kumar; mysql@lists.mysql.com
Cc: [EMAIL PROTECTED]
Subject: RE: Problem - Host 'abc.def.com' is not allowed to connect to
this MySQL server, Please advice..

Hi,

I did that too, 


I executed the command  - GRANT ALL PRIVILEGES ON *.* to
'root'@'localhost' ; I tried also GRANT ALL PRIVILEGES ON *.* to
'root'@'abc.def.com' ; where abc.def.com is my machine name 


But both of these did not work, I did not mention this in my earlier
mail. Can you please let me know if there is any other way out. 

Regards
Ahmad

-Original Message-
From: Parikh, Dilip Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:26 PM
To: Ahmadbasha Shaik (WT01 - E-ENABLING); Raghavendra Hosabettu (WT01 -
Innovation Group)
Subject: FW: Problem - Host 'abc.def.com' is not allowed to connect to
this MySQL server, Please advice..
Importance: High

 
Hi all,


First try checking out the grant for the particular user ?

Show grants for user@'abc.def.com';

If u don't find the results u can give grant as :-

Grant select on *.* to user@'abc.def.com' identified by ''; Flush
privileges;



Thanks  Regards,
Dilipkumar

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:21 PM
To: mysql@lists.mysql.com
Cc: [EMAIL PROTECTED]
Subject: Problem - Host 'abc.def.com' is not allowed to connect to this
MySQL server, Please advice..
Importance: High

Hi All,

I am facing a particular problem which i have explained here. Can
you please let me know a solution for this.

From my web application, I am trying to connect the MySQL server by
using the IP address as the server name, and it says the following
error:
Host 'abc.def.com' is not allowed to connect to this MySQL server

Options that I tried: (from the information availabe on internet)
a) I tried modifying the hosts file in WinNT directory to include this
host name (assuming that it was not understanding the IP), but it did
not work
b) I tried adding a record with the IP as host and user as root in user
table of mysql database it did not work
c) I tried adding a record with the 'abc.def.com' as host and user as
root in user table of mysql database it did not work
d) I tried enabling Remote Access in MySQL Server instance config
wizard but since the root users password is not set, it is not allowing
me go forward (i.e. the next button is disabled)
e) If I try to reset the password while configuring the MySQL Server
Instance, it does not allow me to do so
f) I tried adding a record with the '%' as host and user as root in user
table of mysql database it did not allow me to add the record

Regards
Ahmad

Please do not print this email unless it is absolutely necessary. 


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 


WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email. 


www.wipro.com

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


Normalization / Foreign Key Question

2008-07-14 Thread Ben A. Hilleli
Hello,

 

A bit embarrassed, I have been away from the databasing side of system
development for quite a while so am a little rusty. This seems like a simple
issue.

 

I have a USER table:

 

userID

fName

lName

address

address2

city

province

country

referrerID

 

userID is the unique primary key.

 

My question pertains to referrerID. The referrerID specifies which OTHER
USER referred this new user. Thus it is a foreign key that links to a userID
in another user record. I do not recall ever linking attributes from the
same table (even for different records) so I have a hunch that the way to do
this properly is either:

 

(A)

 

User UserReferrer

-  ---

userID (the new userID)---userID 

 referrerID (the userID of
the referrer)

 

or (B)

just store referrerID as a number and use a simple query to get the info for
the referrer when it is required.

 

Select name from USER

Where userID=currentUsersID

 

 

Which is the correct way of doing this? If both, which would be ideal, this
will be a relatively large database with approx 250,000+ users, not all will
have referrerIDs, I would wager maybe 1-10% of these people will have been
referred. Priorities for us are simplicity/scalability, efficiency (in that
order) 

 

   Ben A. Hilleli

   Programmer / Analyst

 

 



Lock Issue

2008-07-14 Thread Eric Thunberg
Hello,

I'm having issues where once every 24-36 hours a replication slave
locks up and I have to kill -9 the process and restart it. I'm using
mysql 5.1.26 and centos 5 (kernel 2.6.18-92.el5) but it's been
occurring since I simultaneously upgraded to 5x and started using the
slave in production (instead of as a server to just run mysqldump on).
I've tried the last 3 versions of mysql, upgraded to the latest
centos, and I'm starting to wonder if it could be hardware related.
Either way, here is the .err info from the most recent crash, I'd
appreciate any help -- hopefully something in here jumps out at
someone and I'm just doing something stupid.

Status information:

Current dir: /usr/local/mysql/var/
Running threads: 5  Stack size: 262144
Current locks:
lock: 0x20436290:

lock: 0x1f1acf00:

lock: 0x1fed76d0:

lock: 0x2aaaec214188:

lock: 0x2aaaec212c58:

lock: 0x2aaaec208438:

lock: 0x1ec4b168:

lock: 0x1e52c898:

lock: 0x1e11c0d8:

lock: 0x1fc4dcb8:

lock: 0x1e162b98:

lock: 0x1e161db8:

lock: 0x1f700aa0:

lock: 0x1ec00b20:


lock: 0x1fc25dc0:

lock: 0x1f30c7d0:

lock: 0x1fac89c8:

lock: 0x203f75f8:

lock: 0x1e4a0d98:

lock: 0x1eee3908:

lock: 0x1eec8278:

lock: 0x1f324f18:

lock: 0x1f5e38a8:

lock: 0x1fac1028:

lock: 0x2aaae407e288:

lock: 0x2aaaec036480:

lock: 0x2aaaec05e968:

lock: 0x1e116bf0:

lock: 0x2aaaec05be88:

lock: 0x1ed4b5c8:

lock: 0x1f7938a8:

lock: 0x1e36be48:

lock: 0x1fc691b0:

lock: 0x1fc983b0:

lock: 0x1e72db60:

lock: 0x1f13aad8:

lock: 0x2aaaec02ca08:

lock: 0x1ee6bed8:

lock: 0x1eab1eb8:

lock: 0x1fa8a4c8:

lock: 0x1e832c58:

lock: 0x1ef0b7d8:

lock: 0x2aaae80689d8:

lock: 0x1eec3a28:

lock: 0x2aaae413bd78:

lock: 0x2aaae41b0078:

lock: 0x2aaae412c1c8:

lock: 0x1fa88f78:

lock: 0x1e43aea8:

lock: 0x1e71de68:

lock: 0x1fa3ff78:

lock: 0x1f391730:

lock: 0x1f391620:

lock: 0x1e462890:

lock: 0x1f342610:

lock: 0x1eec6278:

lock: 0x1eec6e98:

lock: 0x1e7085f8:

lock: 0x1fc696c8:

lock: 0x1f98c338:

lock: 0x1ec11e00:

lock: 0x1e442760:

lock: 0x1e79be90:

lock: 0x1ef71e28:

lock: 0x1ef2dc68:

lock: 0x2aaae851f448:

lock: 0x2aaae837de68:

lock: 0x1f33f728:

lock: 0x2aaae41add68:

lock: 0x1e34caf8:

lock: 0x2aaae83d1868:

lock: 0x1e71d510:

lock: 0x1f026600:

lock: 0x1e7a7318:

lock: 0x1ef1e740:

lock: 0x1ed13180:

lock: 0x1eca5860:

lock: 0x1e72ca30:

lock: 0x1e7c9b68:

lock: 0x1e7b4bc8:

lock: 0x1e7b1b98:

lock: 0x1ea7d958:

lock: 0x1e4d6fa8:

lock: 0x1e79dc28:

lock: 0x1eac0798:

lock: 0x1e5115d8:

lock: 0x1eac6958:

lock: 0x1e514608:

lock: 0x1eab1270:

lock: 0x2aaae402ae48: read
read  : 0x1ee6f9d0 (82781:1);

lock: 0x2aaae40276f8: read
read  : 0x1e47d920 (82781:1);

lock: 0x2aaae4017ed8:

lock: 0x1eab0c08:

lock: 0x1eaf0f68:

lock: 0x1e523c48:

lock: 0x1eab2a88:

lock: 0x1ea90028:

lock: 0x1eaa85c8:


lock: 0x1ea8d318:

lock: 0x1e5267f8:


Key caches:
default
Buffer_size: 402653184
Block_size:   1024
Division_limit:100
Age_limit: 300
blocks used:172670
not flushed: 0
w_requests:1619446
writes: 153057
r_requests:  645726100
reads:  172881


handler status:
read_key:244157667
read_next:   187779363
read_rnd   8229903
read_first:969
write:11072520
delete8139
update:   15260322

Table status: Opened tables:   1501
Open tables:  512
Open files:   522
Open streams:   0

Alarm status:
Active alarms:   5
Max used alarms: 35
Next alarm time: 60

Thread database.table_name  Locked/WaitingLock_type

82781   esea.messages_users Locked - read Low priority read lock
82781   esea.support_ticketsLocked - read Low priority read lock




Begin safemalloc memory dump:

End safemalloc memory dump.

Memory status:
Non-mmapped space allocated from system: 87920832
Number of free chunks:   779
Number of fastbin blocks:0
Number of mmapped regions:   15
Space in mmapped regions:897253376
Maximum total allocated space:   0
Space available in freed fastbin blocks: 0
Total allocated space:   50178912
Total free space:37741920
Top-most, releasable space:  30251296
Estimated memory (with thread stack):986222784



Events status:
LLA = Last Locked At  LUA = Last Unlocked At
WOC = Waiting On Condition  DL = Data Locked

Event scheduler status:
State  : INITIALIZED
Thread id  : 0
LLA: n/a:0
LUA: n/a:0
WOC: NO
Workers: 0
Executed   : 0
Data locked: NO

Event queue status:
Element count   : 0
Data locked : NO
Attempting lock : NO
LLA : init_queue:132
LUA : init_queue:142
WOC : NO
Next activation : never

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



mysqld connections still open when java thread interrupted

2008-07-14 Thread Lopez David E
can't seem to find anything on my problem. hope list can help:

thread class creates connection to mysql - all is well
if sql takes too long, calling thread interrupts thread, and close
resources: 
   rs.close(), stmt.close(), conn.close()
however mysqld server connections are not closed
after a while, max number of connections is reached. bad.

how do i force the connection on mysqld to close after thread interrupt?

btw, normal close of connection (without thread interrupt) works fine.

solaris 2.8
mysql v4.0 
jdbc v3.14 

david

David Lopez
org: fsl-tso-dsn tech-toolsmeth-tm interfce-csam
phone: 480-413-6251
email: [EMAIL PROTECTED] 

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