PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > How to set 'sql_warnings' in the config file
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to set 'sql_warnings' in the config file

Réponse
 
LinkBack Outils de la discussion
Vieux 20/12/2007, 14h14   #1
Martijn van den Burg
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to set 'sql_warnings' in the config file

Hi,

I'm having issues with replication breaking on one machine (Linux, x64)
but continuing normal on the other (Solaris).

Both run MySQL 5.0.18-standard.

The only difference betweenn the configuration of teh two is the setting
of sql_notes and sql_warnings.

I want to find out if that causes the problem. According
http://dev.mysql.com/doc/refman/5.0/...on-tables.html I
should be able to set them in the config file (I'm using mysqld_multi),
but no matter what I use (sql_warnings=0, sql_warnings=off, change
sql_warnings to sql-warnings): every time mysqld refuses to start,
complaining that it does not know the variable 'sql_warnings'.

How to set sql_notes and sql_warnings at server start up? Did I hit a
bug?

I am aware that there's a bug in 5.0.18 with the /display/ of the value
of sql_warnings and -notes, http://bugs.mysql.com/bug.php?id=16195,
could that be related?


Regards,

Martijn van den Burg

--
The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To theextent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.

  Réponse avec citation
Vieux 20/12/2007, 14h50   #2
Baron Schwartz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set 'sql_warnings' in the config file

That is not a mysqld option, it's a session variable:

mysql> select @@global.sql_warnings;
ERROR 1238 (HY000): Variable 'sql_warnings' is a SESSION variable

On Dec 20, 2007 9:14 AM, Martijn van den Burg
<Martijn.van.den.Burg@asml.com> wrote:
> Hi,
>
> I'm having issues with replication breaking on one machine (Linux, x64)
> but continuing normal on the other (Solaris).
>
> Both run MySQL 5.0.18-standard.
>
> The only difference betweenn the configuration of teh two is the setting
> of sql_notes and sql_warnings.
>
> I want to find out if that causes the problem. According
> http://dev.mysql.com/doc/refman/5.0/...on-tables.html I
> should be able to set them in the config file (I'm using mysqld_multi),
> but no matter what I use (sql_warnings=0, sql_warnings=off, change
> sql_warnings to sql-warnings): every time mysqld refuses to start,
> complaining that it does not know the variable 'sql_warnings'.
>
> How to set sql_notes and sql_warnings at server start up? Did I hit a
> bug?
>
> I am aware that there's a bug in 5.0.18 with the /display/ of the value
> of sql_warnings and -notes, http://bugs.mysql.com/bug.php?id=16195,
> could that be related?
>
>
> Regards,
>
> Martijn van den Burg
>
> --
> The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.
>
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=baron@xaprb.com
>
>

  Réponse avec citation
Vieux 20/12/2007, 15h24   #3
Martijn van den Burg
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: How to set 'sql_warnings' in the config file

Hi Baron,

I know. But that would mean
http://dev.mysql.com/doc/refman/5.0/...on-tables.html is in
error, as it says sql_warnings can be set in the option file.


Regards,

Martijn


> -----Original Message-----
> From: baron.schwartz@gmail.com
> [mailto:baron.schwartz@gmail.com] On Behalf Of Baron Schwartz
> Sent: Thursday, December 20, 2007 15:50 PM
> To: Martijn van den Burg
> Cc: mysql@lists.mysql.com
> Subject: Re: How to set 'sql_warnings' in the config file
>
> That is not a mysqld option, it's a session variable:
>
> mysql> select @@global.sql_warnings;
> ERROR 1238 (HY000): Variable 'sql_warnings' is a SESSION variable
>
> On Dec 20, 2007 9:14 AM, Martijn van den Burg
> <Martijn.van.den.Burg@asml.com> wrote:
> > Hi,
> >
> > I'm having issues with replication breaking on one machine (Linux,
> > x64) but continuing normal on the other (Solaris).
> >
> > Both run MySQL 5.0.18-standard.
> >
> > The only difference betweenn the configuration of teh two is the
> > setting of sql_notes and sql_warnings.
> >
> > I want to find out if that causes the problem. According
> > http://dev.mysql.com/doc/refman/5.0/...on-tables.html I
> > should be able to set them in the config file (I'm using
> > mysqld_multi), but no matter what I use (sql_warnings=0,
> > sql_warnings=off, change sql_warnings to sql-warnings): every time
> > mysqld refuses to start, complaining that it does not know

> the variable 'sql_warnings'.
> >
> > How to set sql_notes and sql_warnings at server start up?

> Did I hit a
> > bug?
> >
> > I am aware that there's a bug in 5.0.18 with the /display/ of the
> > value of sql_warnings and -notes,
> > http://bugs.mysql.com/bug.php?id=16195,
> > could that be related?
> >
> >
> > Regards,
> >
> > Martijn van den Burg
> >
> > --
> > The information contained in this communication and any

> attachments is confidential and may be privileged, and is for
> the sole use of the intended recipient(s). Any unauthorized
> review, use, disclosure or distribution is prohibited.
> Unless explicitly stated otherwise in the body of this
> communication or the attachment thereto (if any), the
> information is provided on an AS-IS basis without any express
> or implied warranties or liabilities. To the extent you are
> relying on this information, you are doing so at your own
> risk. If you are not the intended recipient, please notify
> the sender immediately by replying to this message and
> destroy all copies of this message and any attachments. ASML
> is neither liable for the proper and complete transmission of
> the information contained in this communication, nor for any
> delay in its receipt.
> >
> >
> > --
> > MySQL General Mailing List
> > For list archives: http://lists.mysql.com/mysql
> > To unsubscribe:

> http://lists.mysql.com/mysql?unsub=baron@xaprb.com
> >
> >

>
>


--
The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To theextent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.

  Réponse avec citation
Vieux 20/12/2007, 15h37   #4
Baron Schwartz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set 'sql_warnings' in the config file

Yep. File a bug report against the documentation; that table is a
work in progress. On my system,

baron@tigger $ /usr/sbin/mysqld --verbose -- | grep warn
-W, --log-warnings[=#]
Log some not critical warnings to the log file.
-W, --warnings[=#] Deprecated; use --log-warnings instead.
--max_error_count=# Max number of errors/warnings to store for a statement.
1 = YES = Don't issue an error message (warning only) if
log-warnings 1
warnings 1


On Dec 20, 2007 10:24 AM, Martijn van den Burg
<Martijn.van.den.Burg@asml.com> wrote:
> Hi Baron,
>
> I know. But that would mean
> http://dev.mysql.com/doc/refman/5.0/...on-tables.html is in
> error, as it says sql_warnings can be set in the option file.
>
>
> Regards,
>
> Martijn
>
>
>
> > -----Original Message-----
> > From: baron.schwartz@gmail.com
> > [mailto:baron.schwartz@gmail.com] On Behalf Of Baron Schwartz
> > Sent: Thursday, December 20, 2007 15:50 PM
> > To: Martijn van den Burg
> > Cc: mysql@lists.mysql.com
> > Subject: Re: How to set 'sql_warnings' in the config file
> >
> > That is not a mysqld option, it's a session variable:
> >
> > mysql> select @@global.sql_warnings;
> > ERROR 1238 (HY000): Variable 'sql_warnings' is a SESSION variable
> >
> > On Dec 20, 2007 9:14 AM, Martijn van den Burg
> > <Martijn.van.den.Burg@asml.com> wrote:
> > > Hi,
> > >
> > > I'm having issues with replication breaking on one machine (Linux,
> > > x64) but continuing normal on the other (Solaris).
> > >
> > > Both run MySQL 5.0.18-standard.
> > >
> > > The only difference betweenn the configuration of teh two is the
> > > setting of sql_notes and sql_warnings.
> > >
> > > I want to find out if that causes the problem. According
> > > http://dev.mysql.com/doc/refman/5.0/...on-tables.html I
> > > should be able to set them in the config file (I'm using
> > > mysqld_multi), but no matter what I use (sql_warnings=0,
> > > sql_warnings=off, change sql_warnings to sql-warnings): every time
> > > mysqld refuses to start, complaining that it does not know

> > the variable 'sql_warnings'.
> > >
> > > How to set sql_notes and sql_warnings at server start up?

> > Did I hit a
> > > bug?
> > >
> > > I am aware that there's a bug in 5.0.18 with the /display/ of the
> > > value of sql_warnings and -notes,
> > > http://bugs.mysql.com/bug.php?id=16195,
> > > could that be related?
> > >
> > >
> > > Regards,
> > >
> > > Martijn van den Burg
> > >
> > > --
> > > The information contained in this communication and any

> > attachments is confidential and may be privileged, and is for
> > the sole use of the intended recipient(s). Any unauthorized
> > review, use, disclosure or distribution is prohibited.
> > Unless explicitly stated otherwise in the body of this
> > communication or the attachment thereto (if any), the
> > information is provided on an AS-IS basis without any express
> > or implied warranties or liabilities. To the extent you are
> > relying on this information, you are doing so at your own
> > risk. If you are not the intended recipient, please notify
> > the sender immediately by replying to this message and
> > destroy all copies of this message and any attachments. ASML
> > is neither liable for the proper and complete transmission of
> > the information contained in this communication, nor for any
> > delay in its receipt.
> > >
> > >
> > > --
> > > MySQL General Mailing List
> > > For list archives: http://lists.mysql.com/mysql
> > > To unsubscribe:

> > http://lists.mysql.com/mysql?unsub=baron@xaprb.com
> > >
> > >

> >
> >

>
> --
>
> The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.
>
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h48.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16822 seconds with 12 queries