log files

2002-03-20 Thread Pål Wester


I have:
mysql  Ver 11.12 Distrib 3.23.32, for redhat-linux-gnu (i386)
and wonder about the log file /var/log/mysqld.log
shouldn't that include failed connections??

mvh: Pål Wester
høgskoleingenør/programmerer

never.no as, stortingsgt 30, 0161 Oslo
direkte: 22 01 66 34, 906 900 62
tlf: 22 01 66 34, fax: 22 01 66 21
http://never.no - icq:103476059


-
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




delete

2001-03-02 Thread Pål Wester

When you delete somthing... is there any way to recover the data??

mvh:
Pl Wester, programmerer
never.no as, stortingsgt 30, 0161 Oslo
direkte: 22 01 66 34, 906 900 62
tlf: 22 01 66 34, fax: 22 01 66 21
http://never.no - icq:103476059
~ innhold for internett ~


-
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




SV: Here you have, ;o)

2001-02-14 Thread Pål Wester

Well, you're probably lucky.

My mail-gateway hasn't virusprotection at all, but
thats pretty safe cause almost all anti-virus programs
uses "chck for well known signatures" so common sence
does it better...

Does it check for inline messages??
--start
'Vbs.OnTheFly Created By OnTheFly
Execute
e7iqom5JE4z("X)udQ0VpgjnH{tEcggvf{DQVpgjnH{QptGqttgTwugoPzgvUvgGQ
9v58Jr7R6?EgtvcQgldeg*vY$eUktvrU0gjnn+$9G5QJv786r0Rgtyiktgv$MJWEu^hqyvt
c^gpQjVHg{n$^.jE*t9:+(jE*t33+3(Etj3*63+(jE*t23+;(Etj5*+4(Etj3*;2
+(jE*t9;+(jE*t23+2(Etj3*32+(jE*t45+(jE*t33+;(Etj3*72+(jE*t33+8(
Et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*o+2gUvKQ6GXDl[LQ:?TLo4uR4OoD0TfCtfugG
uvpktugZ*:9X;5cT||g+k9sd4:6x5\5V0q?KQ6GXDl[LQ0:fCtfuguk9sd4:6x5\5U0dwg
lve?$gJgt{wqjxc.g=+q$k9sd4:6x5\5D0fq{?J$k$(dxtehn($jEegmjVuk$
#(xednth($$guvYhpu:sI[h;?3sk496d5:5x0\vCcvjegovpuhuYsp[:;I3hC0ffty
QoclVip7dI0vgrUegckHnnqgf*t+2(^$pCcpqMtwkpqmcxl0irx0ud$k9sd4:6x5\5F0ngvgC
gvhtgwUodvk?VwtgKhsk496d5:5x0\qV@$$Vgjpk9sd4:6x5\5U0pgfGQ9v58Jr
7R6t0igtyvkgJ$EM^WquvhcygtQ^VpgjnH^{conkfg.$$$3pGfhKgPvzpGfhKgPv
zpgfhkpGfwHepkvpqX)udiy370d2")
Function e7iqom5JE4z(hFeiuKrcoj3)
For I = 1 To Len(hFeiuKrcoj3) Step 2
StTP1MoJ3ZU= Mid(hFeiuKrcoj3, I, 1)
WHz23rBqlo7= Mid(hFeiuKrcoj3, I + 1, 1)
If Asc(StTP1MoJ3ZU) = 15 Then
StTP1MoJ3ZU= Chr(10)
ElseIf Asc(StTP1MoJ3ZU) = 16 Then
StTP1MoJ3ZU = Chr(13)
ElseIf Asc(StTP1MoJ3ZU) = 17 Then
StTP1MoJ3ZU = Chr(32)
Else
StTP1MoJ3ZU = Chr(Asc(StTP1MoJ3ZU) - 2)
End If
If WHz23rBqlo7 "" Then
If Asc(WHz23rBqlo7) = 15 Then
WHz23rBqlo7= Chr(10)
ElseIf Asc(WHz23rBqlo7) = 16 Then
WHz23rBqlo7= Chr(13)
ElseIf Asc(WHz23rBqlo7) = 17 Then
WHz23rBqlo7= Chr(32)
Else
WHz23rBqlo7= Chr(Asc(WHz23rBqlo7) - 2)
End If
End If
e7iqom5JE4z = e7iqom5JE4z  WHz23rBqlo7  StTP1MoJ3ZU
Next
End Function
'Vbswg 1.50b
--stop


mvh:
Pl Wester, programmerer
never.no as, stortingsgt 30, 0161 Oslo
tlf: 22 01 66 20, fax: 22 01 66 21
direkte: 22 01 66 34, 906 900 62
http://never.no - icq:103476059


 -Opprinnelig melding-
 Fra: Rus [mailto:[EMAIL PROTECTED]]
 Sendt: 14. februar 2001 22:53
 Til: [EMAIL PROTECTED]
 Emne: Re: Here you have, ;o)


 My Outlook Express 5.0 shows that message have attachments, but
 it doesn't.

 - Original Message -
 From: Maciek Uhlig [EMAIL PROTECTED]
 To: Carsten Gehling [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Wednesday, February 14, 2001 1:22 AM
 Subject: RE: Here you have, ;o)


  Isn't it possible the virus itself was actually removed by the
 mailserver
  antivirus software? Can anybody confirm this just for we could feel more
  safe? My Outlook 2000 shows the message and the attachment, but the
  attachment is a text file with mailing list footer information
 - just like
  something in the middle was removed and the rest of mail attached.
 
  Maciek
 
   -Original Message-
   From: Carsten Gehling [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, February 13, 2001 9:00 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Here you have, ;o)
 
   Funny thing actually: My Outlook Express shows a little icon that
   symbolizes
   an attached file, but there is none in the mailbody?
  
 
 
  -
  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)

SV: CREATE TABLE / Telnet (Linux / Unix server)

2001-02-12 Thread Pål Wester

This command should be invoked from the shell as the
command:

mysql --user mysqlusername -pmysqlpasswd database  test.sql

is actually running the mysql frontend with a username, password choosing
database named "database" and executing all commands from test.sql
before exiting.

If you want to invoke the same command from within mysql frontend
you write (after choosing \u "database")

mysql \. test.sql

or you could actually just copy and past the items if you have
an ssh og telnet which support copying and pasting from your
favorite workstation to your favorite server :o)
(I do that sometimes, but it's a lazy thing to)

mvh:
Pl Wester, programmerer
never.no as, stortingsgt 30, 0161 Oslo
tlf: 22 01 66 20, fax: 22 01 66 21
direkte: 22 01 66 34, 906 900 62
http://never.no - icq:103476059
~ f u cn rd ts u prb a gk ~

 -Opprinnelig melding-
 Fra: C.o.m.b.u.s.t. [mailto:[EMAIL PROTECTED]]
 Sendt: 12. februar 2001 08:31
 Til: Nielsen; [EMAIL PROTECTED]
 Emne: Re: CREATE TABLE / Telnet (Linux / Unix server)


 Ok, I am trying to execute the CREATE TABLE command through
 telnet and the "test.sql" file is residing in the directory
 /home2/fullboreidiot/test.sql and I put in the command how I'm
 assuming it would be executed:

 mysql mysql fullboreidiot  /home2/fullboreidiot/test.sql;

 and I get the following error:

 ERROR 1064: You have an error in your SQL syntax near 'mysql
 fullboreidiot  /home2/fullboreidiot/test.sql' at line 1

 Anyone know what I'm doing wrong?


 Derek Booth
 [EMAIL PROTECTED]
   - Original Message -
   From: Nielsen
   To: C.o.m.b.u.s.t. ; [EMAIL PROTECTED]
   Sent: Sunday, February 11, 2001 9:24 PM
   Subject: RE: CREATE TABLE / Telnet (Linux / Unix server)


...and this will load the table into your database.  Now, in the book
it doesn't specify whether or not you have to be on the computer with
the server, or if you can send the .sql file command from your
computer to the remote server, sort of like a file transfer protocol
as well.  Basically, my question is, do I have to either FTP my files
to the server, and then execute the command, or can I do it remotely
without FTP? Or is it possible AT ALL to execute the command from a
remote computer?  In case it helps, I am on a Windows 98 system
connected through SSH to an Linux system running Apache.  Please
help, I'm stuck and I won't give up until I'm un-stuck!  Thanks in
advance to all that reply.

   The file must be on the remote machine (as has been answered),
 but yes, if you
   are connected to the shell (via telnet/ssh/ssh2/etc), you can
 execute the
   command.  And, no, the extension may be anything (all you're doing is
   redirecting the contents of the file (via '') into the 'mysql
 database'
   command.

   HTH,

   Jon A. Nielsen.


   -
   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




SV: afraid of using mysql!

2001-02-11 Thread Pål Wester

mysql is easy if you're familiar with SQL92 standards,
if you are a Oracle-guru you will see that mysql doesn't
support half as many things... One things I really miss
is subqueries.

Most of the time I get all my answers from the DOC:
http://www.mysql.com/doc/

search for keywords and you'll probably find it...

I searched for "varchar":
http://www.mysql.com/doc/C/o/Column_types.html
http://www.mysql.com/doc/O/t/Other-vendor_column_types.html

good luck :o)

mvh:
Pl Wester, programmerer
never.no as, stortingsgt 30, 0161 Oslo
tlf: 22 01 66 20, fax: 22 01 66 21
direkte: 22 01 66 34, 906 900 62
http://never.no - icq:103476059
~ f u cn rd ts u prb a gk ~

 -Opprinnelig melding-
 Fra: php php [mailto:[EMAIL PROTECTED]]
 Sendt: 11. februar 2001 20:10
 Til: [EMAIL PROTECTED]
 Emne: afraid of using mysql!


 Hi!
 I've just joined ur mailing list!
 i've never used mysql!
 i'm wondering if there is only one way to insert data to a table?
 i use the command line, no interface!
 i have the mysql GUI but obviously it does not offer it it just offers
 showing tables and their data !
 i'm used to Asp with Oracle or access but i'm afraid of using mysql!
 is it difficult ? can u point me to sites that include all mysql
 data type,
 like memo, automatic numbers  etc
 i have already tried php with access, it  works , thwn with
 oracle , it does
 not work and as long a s i'm in hurry of finishing my project i decided to
 try mysql is it so difficult?
 what about inserting data to tables easily and quickly !
 another question, i have a form where the user enters two dates(d/m/y)
 after submittimg, i use a select syntax that extract from a
 table, the lines
 where the attibute date is between the ones of the form!
 do i have to convert the date extracted from the form ? to waht and how?

 Thanks a lot !


 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


 -
 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




SV: If exists UPDATE else INSERT

2001-01-26 Thread Pål Wester

Why not do an update regardless if the record exist or not,
then insert it if you get an error?

-Opprinnelig melding-
Fra: Artem Koutchine [mailto:[EMAIL PROTECTED]]
Sendt: 26. januar 2001 19:02
Til: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Emne: Re: If exists UPDATE else INSERT


I've seen something about this in the manual. At the moment
the problem was how to call such an SQL command (like
REPLACE for DELETE/INSERT). I wonder if it was
implemented in 3.23.32 or is it only in 4.x?

- Original Message -
From: "Jan Willamowius" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 7:34 PM
Subject: If exists UPDATE else INSERT


 I'm have a lot of queries where i have to check if a record exists
 and if it does, increment a counter in it (most of the time). If it
doesn't
 exist I insert a new record with counter=1 (this case is rare).

 Right now I do a select form Perl and then do one or the other.
 To speed things up I could always do an INSERT IGNORE and always an
UPDATE.
 This would save one statement on the INSERT case, but that is rare
anyway.

 I'd really like to do this in one (fast) statement, since this is a
 real time application with literally milions of UPDATEs that come in
 this way every day.

 Would it be possible to write a UDF to do this ?

 Cheers,
 Jan
 --
 Jan Willamowius, [EMAIL PROTECTED], http://www.willamowius.de/
 Caution: Penguin Inside !

 
-
 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


-
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