Strange thing

2006-04-01 Thread Anton Statutov
On FreeBSD 5.3. MySQL 4.1.15 unix pipeline like mysqldump ... | mysql 
... causes an auth error in the second command, even different 
databases are used.  What does it mean?


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



RE: mysql.sock gone

2006-03-17 Thread Anton Krall
No errrs on the error log.. This is very weird...  

|-Original Message-
|From: ? ??? [mailto:[EMAIL PROTECTED] 
|Sent: Wednesday, March 15, 2006 6:12 AM
|To: Anton Krall; mysql@lists.mysql.com
|Subject: Re: mysql.sock gone
|
|Look at mysql's error log ($MYSQL_DATA_DIR/$HOSTNAME.err). Do 
|you see anything strange there?
|
|
|Anton Krall wrote:
| No crons that would delete the tmp directory.. In fact, all 
|the other files
| stay there... Just mysql.sock goes away...  
| 
| |-Original Message-
| |From: Logan, David (SST - Adelaide) [mailto:[EMAIL PROTECTED] 
| |Sent: Tuesday, March 14, 2006 3:15 PM
| |To: Anton Krall; mysql@lists.mysql.com
| |Subject: RE: mysql.sock gone
| |
| |Do you have any cron jobs that clear the /tmp directory 
|during the day?
| |
| |Regards
| |
| |---
| |** _/ **  David Logan 
| |***   _/ ***  ITO Delivery Specialist - Database
| |*_/*  Hewlett-Packard Australia Ltd
| |_/_/_/  _/_/_/    E-Mail: [EMAIL PROTECTED]
| |   _/  _/  _/  _/     Desk:   +618 8408 4273
| |  _/  _/  _/_/_/  Mobile: 0417 268 665
| |*_/   **
| |**  _/    Postal: 148 Frome Street,
| |   _/ **  Adelaide SA 5001
| |  Australia 
| |invent   
| |---
| |
| |-Original Message-
| |From: Anton Krall [mailto:[EMAIL PROTECTED]
| |Sent: Wednesday, 15 March 2006 7:38 AM
| |To: mysql@lists.mysql.com
| |Subject: mysql.sock gone
| |
| |Guys.
| |
| |I just started having a problem, Im running
| |mysql-standard-4.1.12-pc-linux-gnu-i686 binaries under Fedora 
| |Core 3 and Ive been having problem where during some parts of 
| |the day, /tmp/mysql.oskc goes away, I can still see mysql 
| |running when I do a ps ax but when I try to connect to it, it 
| |says it cant connect thru mysql.sock
| |
| |What could be the cause that would make mysql.sock dissapear?
| |
| |Thx for any help you can provide
| |
| |
| |--
| |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]
| |
| |
| |
| 
| 
|
|


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



mysql.sock gone

2006-03-14 Thread Anton Krall
Guys.

I just started having a problem, Im running
mysql-standard-4.1.12-pc-linux-gnu-i686 binaries under Fedora Core 3 and Ive
been having problem where during some parts of the day, /tmp/mysql.oskc goes
away, I can still see mysql running when I do a ps ax but when I try to
connect to it, it says it cant connect thru mysql.sock

What could be the cause that would make mysql.sock dissapear?

Thx for any help you can provide


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



RE: mysql.sock gone

2006-03-14 Thread Anton Krall
No crons that would delete the tmp directory.. In fact, all the other files
stay there... Just mysql.sock goes away...  

|-Original Message-
|From: Logan, David (SST - Adelaide) [mailto:[EMAIL PROTECTED] 
|Sent: Tuesday, March 14, 2006 3:15 PM
|To: Anton Krall; mysql@lists.mysql.com
|Subject: RE: mysql.sock gone
|
|Do you have any cron jobs that clear the /tmp directory during the day?
|
|Regards
|
|---
|** _/ **  David Logan 
|***   _/ ***  ITO Delivery Specialist - Database
|*_/*  Hewlett-Packard Australia Ltd
|_/_/_/  _/_/_/    E-Mail: [EMAIL PROTECTED]
|   _/  _/  _/  _/     Desk:   +618 8408 4273
|  _/  _/  _/_/_/  Mobile: 0417 268 665
|*_/   **
|**  _/    Postal: 148 Frome Street,
|   _/ **  Adelaide SA 5001
|  Australia 
|invent   
|---
|
|-Original Message-
|From: Anton Krall [mailto:[EMAIL PROTECTED]
|Sent: Wednesday, 15 March 2006 7:38 AM
|To: mysql@lists.mysql.com
|Subject: mysql.sock gone
|
|Guys.
|
|I just started having a problem, Im running
|mysql-standard-4.1.12-pc-linux-gnu-i686 binaries under Fedora 
|Core 3 and Ive been having problem where during some parts of 
|the day, /tmp/mysql.oskc goes away, I can still see mysql 
|running when I do a ps ax but when I try to connect to it, it 
|says it cant connect thru mysql.sock
|
|What could be the cause that would make mysql.sock dissapear?
|
|Thx for any help you can provide
|
|
|--
|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]
|
|
|


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



Url http://highperformancemysql.com/

2005-02-18 Thread Anton Kornexl
Hello,
the URL http://highperformancemysql.com/
is mentioned in the online available chapter 7 of the book
High Performance Mysql
There should be tools on this website, but i see only a message from Infektion 
Group.
What happened ?
--
Anton Kornexl


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

EXISTS/NOT EXISTS

2004-06-18 Thread Anton Ivanov
Hi,  I'm trying to figure out how to apply these from the manual, but to
no avail.  Is it possible that my version (4.0.18) does not implement
these?
I have two tables: products and products_by_product_area.  Both have a
field product.  I try

SELECT product from products WHERE NOT EXISTS (SELECT DISTINCT * from
products_by_product_areas WHERE products_by_product_areas.product =
products.product);

Both of these queries run fine on their own.  It looks to me that I'm
simply adapting from the manual, but all I get is

ERROR 1064: You have an error in your SQL syntax.  Check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'EXISTS (SELECT DISTINCT * from products_by_product_areas WHERE

OK, so I grab the example verbatim from the manual:
SELECT DISTINCT store_type FROM Stores
  WHERE EXISTS (SELECT * FROM Cities_Stores
WHERE Cities_Stores.store_type = Stores.store_type);

And run it.  Same error.  Never mind that I don't have these tables: the
query does not compile.  What is going on?



RE: EXISTS/NOT EXISTS

2004-06-18 Thread Anton Ivanov
Thanks, I just found that relevant section in the manual, too.  I wish
it was clearer what version the manual documents -- I am using (almost)
the latest stable release, and I should expect that the manual documents
that.


-Original Message-
From: Michael Stassen [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 2:38 PM
To: Anton Ivanov
Cc: [EMAIL PROTECTED]
Subject: Re: EXISTS/NOT EXISTS

Subqeries require mysql 4.1.

The manual offers some suggestions on rewriting subqueries as JOINs 
http://dev.mysql.com/doc/mysql/en/Rewriting_subqueries.html.

In your case, you want something like:

   SELECT product FROM products p
   LEFT JOIN products_by_product_areas a ON p.product = a.product
   WHERE a.product IS NULL;

Michael

Anton Ivanov wrote:

 Hi,  I'm trying to figure out how to apply these from the manual, but
to
 no avail.  Is it possible that my version (4.0.18) does not implement
 these?
 I have two tables: products and products_by_product_area.  Both have a
 field product.  I try
 
 SELECT product from products WHERE NOT EXISTS (SELECT DISTINCT * from
 products_by_product_areas WHERE products_by_product_areas.product =
 products.product);
 
 Both of these queries run fine on their own.  It looks to me that I'm
 simply adapting from the manual, but all I get is
 
 ERROR 1064: You have an error in your SQL syntax.  Check the manual
that
 corresponds to your MySQL server version for the right syntax to use
 near 'EXISTS (SELECT DISTINCT * from products_by_product_areas WHERE
 
 OK, so I grab the example verbatim from the manual:
 SELECT DISTINCT store_type FROM Stores
   WHERE EXISTS (SELECT * FROM Cities_Stores
 WHERE Cities_Stores.store_type = Stores.store_type);
 
 And run it.  Same error.  Never mind that I don't have these tables:
the
 query does not compile.  What is going on?
 
 




Recover registers afected by UPDATE

2004-04-06 Thread Francisco Ivan Anton Prieto
I am crazy with a problem.

I would like to know the best method to SELECT affected rows after an 
UPDATE.

Thanks to all by your help.

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


Re: Recover registers afected by UPDATE

2004-04-06 Thread Francisco Ivan Anton Prieto
Egor Egorov wrote:

Francisco Ivan Anton Prieto [EMAIL PROTECTED] wrote:
 

I am crazy with a problem.

I would like to know the best method to SELECT affected rows after an 
UPDATE.

   

If you set column values to the new (different from current value), you can just use the same WHERE clause in the SELECT statement.



 

UPDATE table SET a=1 WHERE a=0 LIMIT 2;
SELECT * FROM table WHERE a=1 -doesn't work because column a have rows 
with value '1' before UPDATE

I have the next idea :

query(LOCK TABLES table);
   // HERE RETRIEVE ROWS I WILL UPDATE
   result  = query(SELECT * FROM table WHERE a=0 LIMIT 2);
   // HERE I UPDATE ROWS
   query(UPDATE table SET a=1 WHERE WHERE a=0 LIMIT 2);
query(UNLOCK TABLES);
This would work fine???
Is there a better way?
I use SELECT...FOR UPDATE and it seems does not work.
I'll wait your comments.
Thanks for your time





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


estonia charset and upper/lower case

2003-02-03 Thread Lauri Anton
Hello!

When I run mysql with default-charset = estonia, it makes difference
between upper and lower case. With latin1 charset no such distinction are
made. Could someone clarify for me, is it bug?

-- 
Lauri Anton
( [EMAIL PROTECTED] )
(  +3727302126   )


- estonia -
Server version: 3.23.49
Client characterset:latin1
Server characterset:estonia


mysql select * from a;
++--+
| id | str  |
++--+
|  1 | AAA  |
|  2 | Aaa  |
|  3 | aaa  |
++--+
3 rows in set (0.00 sec)

mysql select * from a where str like 'AAA';
++--+
| id | str  |
++--+
|  1 | AAA  |
++--+
1 row in set (0.00 sec)


- latin1 --
Server version: 3.23.49
Client characterset:latin1
Server characterset:latin1

mysql select * from a;
++--+
| id | str  |
++--+
|  1 | AAA  |
|  2 | Aaa  |
|  3 | aaa  |
++--+
3 rows in set (0.00 sec)

mysql select * from a where str like 'AAA';
++--+
| id | str  |
++--+
|  1 | AAA  |
|  2 | Aaa  |
|  3 | aaa  |
++--+
3 rows in set (0.00 sec)






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

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




RE: Selecting max value from sets

2003-01-10 Thread Anton Zavrin
Slish, nu ti I nazvalsia, Egor Egorov, eshe bi Vasey Pupkinim
nazvalsia-bi hahahahahaha ;-)

Best Regards, Anton


-Original Message-
From: Egor Egorov [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 10, 2003 9:38 AM
To: [EMAIL PROTECTED]
Subject: re: Selecting max value from sets

On Thursday 09 January 2003 23:06, Benjamin Dixon wrote:

 I'm trying to figure out a way to select a group of maximums from a
set
 such that each value pair's greatest value is in the result set. For
 example, let's say I have this table Value_Pairs:

 Name | Value
 
 Bob1
 Joe7
 Bob2
 Don3
 Don4
 Bob6

 The result I want is like this:

 Name | Value
 
 Bob6  //Bob's highest value in the table
 Joe7  //Joe's highest value in the table
 Don4  //Don't highest value in the table

 So I'm looking for distinct maximums.
 Is it possible to do this *with a single query* in MySQL? I've tried a
 number of things and nothing comes close.

SELECT Name, MAX(Value) FROM Value_Pairs GROUP BY Name.

You can also find example in the manual:
http://www.mysql.com/doc/en/example-Maximum-column-group.html




-- 
For technical support contracts, goto
https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.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




RE: Upgrading from MySQL 3.23.52 to 3.23.54

2003-01-05 Thread Anton Zavrin
I don't' know if it was right to do, but I just downloaded version
3.23.54a and compiled/installed it

Best Regards, Anton


-Original Message-
From: Peter Teo [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 8:08 PM
To: [EMAIL PROTECTED]
Subject: Upgrading from MySQL 3.23.52 to 3.23.54

Good day,

I have read on http://www.mysql.com about the press releases asking all
3.23 users to upgrade to the latest stable version.

How can I do this without uninstalling my current version? I tried to
look for some documentation regarding this or patches but was unable to
find any.
 
I would appreciate any help.

Thanks! 

Peter Teo
Clickhere2 Network Pte Ltd




-
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




RE: MySQL Help Needed Please

2003-01-04 Thread Anton Zavrin
I have this file:
srwxrwxrwx  1 mysql  wheel0 Jan  2 16:45 mysql.sock

I have two of .err files and non of the log files

I also can't find my *.cnf file(s)

Did: ps -ef | grep mysql
Got nothing

What should I do?

Best Regards, Anton


-Original Message-
From: Thomas Spahni [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 7:01 AM
To: Anton Zavrin
Cc: [EMAIL PROTECTED]
Subject: Re: MySQL Help Needed Please

Anton,

check the hostname.err and hostname.log files in your data
directory.
Then check permissions. My sock file looks like:

srwxrwxrwx1 mysqldaemon  0 Dez 30 19:12 mysql.sock

and finally check for your

socket= /tmp/mysql.sock

entries in /etc/my.cnf and ~/.my.cnf

Thomas Spahni

On Fri, 3 Jan 2003, Anton Zavrin wrote:

 Hi guys,
 I'm new here and need help.
 I'm installing MySQL on FreeBSD 4.7. I actually had/have MySQL
installed
 but when I'm trying to run it says:
 error: 'Can't connect to local MySQL server through socket
 '/tmp/mysql.sock' (61)' Check that mysqld is running and that the
 socket: '/tmp/mysql.sock' exists!

 I checked /tmp/mysql.sock' and the file exists.
 But I don't see any process that would show me mysqld is running.

 Then I tried to re-install it from the ports and it says:
 You appear to already have a mysql database directory in
/var/db/mysql.

 In order to preserve your existing data, you should:
 - dump all your databases
 - kill mysql if it is running
 - delete the /var/db/mysql directory
 - run 'make install'
 - start up mysql
 - re-create all of your database
 - re-load your data

 If you understand the consequences of this upgrade, please re-build
this
 port with the environment variable OVERWRITE_DB defined.
 *** Error code 1

 Stop in /usr/ports/databases/mysql323-server.

 Please help, what should I do?

 Best Regards, Anton


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

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




RE: Russian in MySQL ?

2003-01-04 Thread Anton Zavrin
I don't know about UTF-8, but most Russian web sites run Cyrillic
Windows encoding or KOI8-R

If you need some help with translation or writing on Russian using
English characters let me know...

Best Regards, Anton


-Original Message-
From: Paul Reilly [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 04, 2003 11:07 AM
To: [EMAIL PROTECTED]
Subject: Russian in MySQL ? 


I have a website which gets data from MySQL. The website is in several
languages. I'm now working on Russian, and we have the translations, but
I can't seem to get it into  MySQL.

I have a few questions which I hope someone can help with:

1) I see from research I must run another instance of MySQL
   to be able to work in russian. Is this correct?

2) What is the best character set to use?
   Will UTF-8 work?

3) How to best enter russian text strings using an english locale?


Any tips, references would be much appreciated.
Thanks
Paul



-
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




RE: Russian in MySQL ?

2003-01-04 Thread Anton Zavrin
Yeah, that's what I meant to say ;-)))

Best Regards, Anton


-Original Message-
From: Konstantin Sorokin [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 04, 2003 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Russian in MySQL ?

On Sat, Jan 04, 2003 at 11:17:41AM -0800, Anton Zavrin wrote:
 I don't know about UTF-8, but most Russian web sites run Cyrillic
 Windows encoding or KOI8-R
 ^   
cp1251 (aka windows-1251) you mean ? :) among MySQL charsets
it is known to be cp1251.

-- 
Konstantin Sorokin  .  *   * . * .* .
 .   *   .   .*
Mail.Ru, Moscow, Russia * .  . /\ ( .  . *
Work:8-095-725-63-57 . .  / .\   . * .
.*.  / *  \  . .
  . /*   o \ .
Happy New Year! *   '''||'''   .
**


-
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




RE: MySQL Help Needed Please

2003-01-04 Thread Anton Zavrin
Did:
ps -ef | grep mysqld

got nothing
Though I can do:
# mysql -u root -p
Enter password: 
ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)
#

Anything else I should try :( ?

Best Regards, Anton


-Original Message-
From: Stefan Hinz, iConnect (Berlin) [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 04, 2003 8:01 AM
To: Anton Zavrin; 'Thomas Spahni'
Cc: [EMAIL PROTECTED]
Subject: Re: MySQL Help Needed Please

Anton,

first thing, try:

ps [whatever options] | grep mysqld

The daemon (database server) is called mysqld, not mysql.

Regards,
--
  Stefan Hinz [EMAIL PROTECTED]
  Geschäftsführer / CEO iConnect GmbH http://iConnect.de
  Heesestr. 6, 12169 Berlin (Germany)
  Tel: +49 30 7970948-0  Fax: +49 30 7970948-3

- Original Message -
From: Anton Zavrin [EMAIL PROTECTED]
To: 'Thomas Spahni' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 04, 2003 9:01 AM
Subject: RE: MySQL Help Needed Please


 I have this file:
 srwxrwxrwx  1 mysql  wheel0 Jan  2 16:45 mysql.sock

 I have two of .err files and non of the log files

 I also can't find my *.cnf file(s)

 Did: ps -ef | grep mysql
 Got nothing

 What should I do?

 Best Regards, Anton


 -Original Message-
 From: Thomas Spahni [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 7:01 AM
 To: Anton Zavrin
 Cc: [EMAIL PROTECTED]
 Subject: Re: MySQL Help Needed Please

 Anton,

 check the hostname.err and hostname.log files in your data
 directory.
 Then check permissions. My sock file looks like:

 srwxrwxrwx1 mysqldaemon  0 Dez 30 19:12 mysql.sock

 and finally check for your

 socket= /tmp/mysql.sock

 entries in /etc/my.cnf and ~/.my.cnf

 Thomas Spahni

 On Fri, 3 Jan 2003, Anton Zavrin wrote:

  Hi guys,
  I'm new here and need help.
  I'm installing MySQL on FreeBSD 4.7. I actually had/have MySQL
 installed
  but when I'm trying to run it says:
  error: 'Can't connect to local MySQL server through socket
  '/tmp/mysql.sock' (61)' Check that mysqld is running and that the
  socket: '/tmp/mysql.sock' exists!
 
  I checked /tmp/mysql.sock' and the file exists.
  But I don't see any process that would show me mysqld is running.
 
  Then I tried to re-install it from the ports and it says:
  You appear to already have a mysql database directory in
 /var/db/mysql.
 
  In order to preserve your existing data, you should:
  - dump all your databases
  - kill mysql if it is running
  - delete the /var/db/mysql directory
  - run 'make install'
  - start up mysql
  - re-create all of your database
  - re-load your data
 
  If you understand the consequences of this upgrade, please re-build
 this
  port with the environment variable OVERWRITE_DB defined.
  *** Error code 1
 
  Stop in /usr/ports/databases/mysql323-server.
 
  Please help, what should I do?
 
  Best Regards, Anton


 -
 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




RE: MySQL Help Needed Please

2003-01-04 Thread Anton Zavrin
Well, I read, played around and updated it (I guess)
Now, when I try to start mysql with this command (same as before), it
gives me that:
# /usr/local/bin/safe_mysqld --user=mysql 
[1] 71491
# Starting mysqld daemon with databases from /usr/local/var
030104 23:01:55  mysqld ended


[1]Done  /usr/local/bin/safe_mysqld
--user=mysql

How do I re-point mysql to look for my old database, I guess that's the
problem right?

Thank you Stefan

Best Regards, Anton


-Original Message-
From: Stefan Hinz, iConnect (Berlin) [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 04, 2003 2:14 PM
To: Anton Zavrin; 'Thomas Spahni'
Cc: [EMAIL PROTECTED]
Subject: Re: MySQL Help Needed Please

Anton,

ps -ef | grep mysqld
got nothing

Because the MySQL SERVER isn't running!

Though I can do:
# mysql -u root -p

With this command, you start the MySQL Monitor (that's the SQL command
line CLIENT tool that comes along with MySQL) and tell it to connect to
a MySQL SERVER running on localhost, as user root and willing to enter a
password.

Enter password:
ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)

Can't connect - this means the CLIENT tool cannot connect because there
is no server running!

Start the server using the mysql_safe script (more info here:
http://www.mysql.com/doc/en/safe_mysqld.html).

For a test, you can simply start the server like this:

# mysqld 

AFTER THAT you connect to the SERVER using the CLIENT tool mysql.

Hope this gets you running,
--
  Stefan Hinz [EMAIL PROTECTED]
  Geschäftsführer / CEO iConnect GmbH http://iConnect.de
  Heesestr. 6, 12169 Berlin (Germany)
  Tel: +49 30 7970948-0  Fax: +49 30 7970948-3

- Original Message -
From: Anton Zavrin [EMAIL PROTECTED]
To: 'Stefan Hinz, iConnect (Berlin)' [EMAIL PROTECTED]; 'Thomas
Spahni' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 04, 2003 9:59 PM
Subject: RE: MySQL Help Needed Please


Did:
ps -ef | grep mysqld

got nothing
Though I can do:
# mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)
#

Anything else I should try :( ?

Best Regards, Anton


-Original Message-
From: Stefan Hinz, iConnect (Berlin) [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 04, 2003 8:01 AM
To: Anton Zavrin; 'Thomas Spahni'
Cc: [EMAIL PROTECTED]
Subject: Re: MySQL Help Needed Please

Anton,

first thing, try:

ps [whatever options] | grep mysqld

The daemon (database server) is called mysqld, not mysql.

Regards,
--
  Stefan Hinz [EMAIL PROTECTED]
  Geschäftsführer / CEO iConnect GmbH http://iConnect.de
  Heesestr. 6, 12169 Berlin (Germany)
  Tel: +49 30 7970948-0  Fax: +49 30 7970948-3

- Original Message -
From: Anton Zavrin [EMAIL PROTECTED]
To: 'Thomas Spahni' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 04, 2003 9:01 AM
Subject: RE: MySQL Help Needed Please


 I have this file:
 srwxrwxrwx  1 mysql  wheel0 Jan  2 16:45 mysql.sock

 I have two of .err files and non of the log files

 I also can't find my *.cnf file(s)

 Did: ps -ef | grep mysql
 Got nothing

 What should I do?

 Best Regards, Anton


 -Original Message-
 From: Thomas Spahni [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 7:01 AM
 To: Anton Zavrin
 Cc: [EMAIL PROTECTED]
 Subject: Re: MySQL Help Needed Please

 Anton,

 check the hostname.err and hostname.log files in your data
 directory.
 Then check permissions. My sock file looks like:

 srwxrwxrwx1 mysqldaemon  0 Dez 30 19:12 mysql.sock

 and finally check for your

 socket= /tmp/mysql.sock

 entries in /etc/my.cnf and ~/.my.cnf

 Thomas Spahni

 On Fri, 3 Jan 2003, Anton Zavrin wrote:

  Hi guys,
  I'm new here and need help.
  I'm installing MySQL on FreeBSD 4.7. I actually had/have MySQL
 installed
  but when I'm trying to run it says:
  error: 'Can't connect to local MySQL server through socket
  '/tmp/mysql.sock' (61)' Check that mysqld is running and that the
  socket: '/tmp/mysql.sock' exists!
 
  I checked /tmp/mysql.sock' and the file exists.
  But I don't see any process that would show me mysqld is running.
 
  Then I tried to re-install it from the ports and it says:
  You appear to already have a mysql database directory in
 /var/db/mysql.
 
  In order to preserve your existing data, you should:
  - dump all your databases
  - kill mysql if it is running
  - delete the /var/db/mysql directory
  - run 'make install'
  - start up mysql
  - re-create all of your database
  - re-load your data
 
  If you understand the consequences of this upgrade, please re-build
 this
  port with the environment variable OVERWRITE_DB defined.
  *** Error code 1
 
  Stop in /usr/ports/databases/mysql323-server.
 
  Please help, what should I do?
 
  Best Regards, Anton


 -
 Before

MySQL Help Needed Please

2003-01-03 Thread Anton Zavrin
Hi guys,
I'm new here and need help.
I'm installing MySQL on FreeBSD 4.7. I actually had/have MySQL installed
but when I'm trying to run it says:
error: 'Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)' Check that mysqld is running and that the
socket: '/tmp/mysql.sock' exists!
 
I checked /tmp/mysql.sock' and the file exists.
But I don't see any process that would show me mysqld is running.
 
Then I tried to re-install it from the ports and it says:
You appear to already have a mysql database directory in /var/db/mysql.
 
In order to preserve your existing data, you should:
- dump all your databases
- kill mysql if it is running
- delete the /var/db/mysql directory
- run 'make install'
- start up mysql
- re-create all of your database
- re-load your data
 
If you understand the consequences of this upgrade, please re-build this
port with the environment variable OVERWRITE_DB defined.
*** Error code 1
 
Stop in /usr/ports/databases/mysql323-server.
 
Please help, what should I do?
 
Best Regards, Anton
 
 



fulltext search in boolean mode problems

2002-12-28 Thread Anton Zabannikh
Hello!

I have some problems with fulltext search in boolean mode using mysql
4.0.6.
I try to use this query:
mysql  SELECT * FROM molotok_lots WHERE MATCH (lot_name,lot_desc)
mysql AGAINST ('+some +text' IN BOOLEAN MODE);
I got error :
ERROR 1064: You have an error in your SQL syntax near 'BOOLEAN MODE)' at line 1

Type of table is MyISAM.

How to fix this problem ?
Thanks.
_
Anton Zabannikh


-
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




How to get data from MySQL with perl

2002-06-04 Thread Anton

How do I query a database with Perl - retrieve a item and then have that
as a var to use in another insert statement

Currently I have :

Use DBI

I define: my vars : host,db,username,password etc

I create my db object etc


I used the script to do a insert to my db and it worked fine - but I
cant get data from a table with a SELECT * table WHERE whatever)

I don't know excactly how to tel perl how to get the field as a var.




Any help welcome - any good Perl tutorials out there  ?



-
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




MySQL not connecting over 110

2002-05-29 Thread Anton

Hallo

I cant use phpMyAdmin, or any of my other (php) pages as I get the error
cannot connect to MySQL via 110 (111)

I had this in the past and what I did then was to check if mysql.sock
was in the temp directory (or a link to it)

I do see it there now but I cant seem to get any connection to MySQL, I
have my.cnf file in /etc and all the settings there point to the correct
locations, I have also checked my php.ini file and that also seems fine.

It all worked fine before but now it does not - I have even rebooted the
machine.

I know this is not a lot to work from so if you need any more info to
assist me let me know what to supply.


Anton



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

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




RE: storing files in mySQL

2002-03-05 Thread Anton

Why not rather have pointers to the files on a directory and store this
in a db field ? Saves you a lot of DB space ?

Ant

-Original Message-
From: Dang Nguyen [mailto:[EMAIL PROTECTED]]
Sent: 04 March 2002 09:05
To: Mysql List (E-mail)
Subject: storing files in mySQL


Hi everyone,

I'd like to know how to load files, such as MS-Word documents or PDF
documents, in a mySQL database.  I've setup a blob type in a table, but
where do I go from there?

The purpose of this is to store files uploaded from a web page and
processed with Java servlets.  Then, the files should be retrievable
(displayed or
downloaded) back to a client browser.  My environment: Apache Web server
1.3.x on Solaris 2.8 with Java servlets environment.


Thanks for any help,
Dang Nguyen

-
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




Order of input into db

2002-02-22 Thread Anton

Hallo

Is there a way to set the order in which data gets placed into the db?

I have a form with ten rows (input fields) they are labeled name[1],
name[2],name[3],name[4]

I then use a for statement incrementing $i up to 10 i.e name[$1] this
loop contains my query (INSERT INTO DB...) but if I check my database I
see that for example row 3 is at the top, followed by 1 then 2 and then
4 - this makes no sense to me , should it not go from 1 - insert it - go
to the next row 2 - insert it, and so on.

This might be more a PHP thing but is there any way to order inputs into
a DB from a list of records ?


Anton



-
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




FW: Urgent Business Assistance.

2002-01-30 Thread Anton

Dear Sir

Unfortunatly too many people have already contacted me about this same
mater, maybe you could rather say that you are a insurance broker that
have to get rid of some policy money after this weeks miltary base
explosion in your country, and that you urgently need to get out of the
country with the money before the angry survivors get hold of you and
their money... That might work  Happy to help ...



-Original Message-
From: Engr.Martin Douglas. [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 01:31
To: [EMAIL PROTECTED]
Subject: Urgent Business Assistance.


Urgent Business Asistance.

Engr.Martin Douglas.
No. 16 Kingsway road,
Ikoyi lagos
Nigeria.

Tel/Fax:: 234-1-7742913


30th,January 2002.



Dear sir,
REQUEST FOR URGENT BUSINESS RELATIONSHIP.

First, I must solicit your confidence in this transaction. This is by
virtue of
its nature as being
utterly confidential and top
secret. You have been recommended by an associate who assured me in
confidence of
your ability and reliability to prosecute
a transaction of great magnitude involving a pending business
transaction
requiring
maximum confidence.

We are top officials of the Federal Government Contract Review Panel
who are interested
in importation of goods into our
country with funds which are presently trapped in Nigeria. In order to
commence this
business we solicit your assistance to
enable us RECIEVE the said trapped funds ABROAD.

The source of this fund is as follows : During the  regime of our late
head
of state, Gen.
Sani Abacha, the government
officials set up companies and awarded themselves contracts which were
grossly over-
invoiced in various Ministries. The
NEW CIVILIAN  Government set up a Contract Review Panel (C.R.P) and
we have
identified a lot of inflated contract funds
which are presently floating in the Central Bank of Nigeria (C.B.N).
However, due to our
position as civil servants and
members of this panel, we cannot acquire this money in our names. I have

therefore, been
delegated as a matter of trust by
my colleagues of the panel to look for an Overseas partner INTO whose
ACCOUNT the
sum of US$31,000,000.00 (Thirty one
Million United States Dollars) WILL BE PAID BY TELEGRAPHIC
TRANSFER. Hence we
are writing you this letter.

We have agreed to share the money thus:
1.  70% for us (the officials)
2.  20% for the FOREIGN PARTNER (you)
3.  10% to be used in settling taxation and all local and foreign
expenses.

It is from this 70% that we wish to commence the importation business.
Please note that this
transaction is 100% safe and
we hope THAT THE FUNDS CAN ARRIVE YOUR ACCOUNT in latest
ten (10) banking
days from the date of reciept of the
following information  by TEL/FAX: 234-1-7742913: A SUITABLE NAME
AND BANK
ACCOUNT INTO WHICH THE FUNDS
CAN BE PAID.

The above information will enable us write letters of claim and job
description respectively.
This way we will use your
company's name to apply for payments and re-award the contract in your
company name.

We are looking forward to doing business with you and solicit your
confidentiality in this
transaction.

Please acknowledge receipt of this letter using either Tel/Fax number
234 1 7742913, I will
bring you into the complete picture of this pending project when I have
heard from you.

Yours Faithfully,
Engr.Martin Douglas.

-
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




ATT: Roger $ all : Re Data Sorting

2002-01-24 Thread Anton

Database, query

THANKS TO ALL THAT HELPED, Roger, Egor, David, Anvar and anyone I missed

I am runninh MySQL 3.22.32 which puts it just outside the version
recommended by Roger, I tried spaces etc, even changed the  to '' et
etc. I think Roger might be right in the end (that my version) just
don't support it ?

Thanks for the help anyway - I'll post any success stories and solutions


Anton



-
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




Counting up numerical values in a table

2002-01-02 Thread Anton

I am trying to add floating point numbers, and also plain numerical values, 
 - I have looked on mysql.com but I only seem to find stuff that relate to 
counting rows of a certain defined value - like count where something = 
something, but I want to say give me a numerical total value for a column 
(that contains numerical values) where the id = 123456. 

Then it must count up the numerical values in that column where all the id's 
are equal to 123456 (or whatever value the id is) - I dont want to get a 
count of the rows that relates to the id - I want the value. 

Does this make sense 

Regards and thanks in advance 

Anton

-
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




THNKS FOR HELP: Counting up numerical values in a table

2002-01-02 Thread Anton

Thanks for all the help with counting up numer. values. 

Thanks also to Richard, and Eskom for providing us the power to drive not 
only our PC's but also powering solutions to our DB problems ! ;-) 

Regards 

Anton (JHB, RSA) 

Richard Ellerbrock writes: 

 select sum(colnam) as x from table where id=123; 
 
 Anton wrote: 
 
 I am trying to add floating point numbers, and also plain numerical 
 values,  - I have looked on mysql.com but I only seem to find stuff that 
 relate to counting rows of a certain defined value - like count where 
 something = something, but I want to say give me a numerical total 
 value for a column (that contains numerical values) where the id = 
 123456.  
 
 Then it must count up the numerical values in that column where all the 
 id's are equal to 123456 (or whatever value the id is) - I dont want to 
 get a count of the rows that relates to the id - I want the value.  
 
 Does this make sense  
 
 Regards and thanks in advance  
 
 Anton 
 
 -
 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




mysql_select_db() returns CR_COMMANDS_OUT_OF_SYNC

2001-11-19 Thread Tichawa Anton

Hi all,

I am trying to optimize my database tables at midnight, using winnt, delphi,
and libmysql.dll. I want to execute a sequence like:

mysql_select_db(sql, some_database);
mysql_query(sql, 'OPTIMIZE TABLE MyTable');
mysql_select_db(sql, another_database);// error
mysql_query(sql, 'OPTIMIZE TABLE MyTable');
.
.
.

But the second call to mysql_select_db returns an error (commands out of
sync). Why? After successfull optimization, are there any reasons for not
changing the selected database?

TIA,

Anton Tichawa.



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

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




RE: Weird Error Inserting

2001-10-25 Thread Tichawa Anton

hi,

MATCH is a reserved word. Try to rename your table.

HTH.

Anton Tichawa.


 -Original Message-
 From: Chris Aitken [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 25, 2001 1:09 PM
 To: [EMAIL PROTECTED]
 Subject: Weird Error Inserting
 
 
 
 
 Unable to insert [
 insert into match (league_id,round_id,team_id_1,team_id_2) 
 VALUES ('1','3','2','3')
 ]: You have an error in your SQL syntax near 'match 
 (league_id,round_id,team_id_1,team_id_2) VALUES 
 ('1','3','2','3')' at line 1.
 
 
 
 I have the above weird error when im trying to insert into a 
 database. No
 matter what I try, I cannot seem to find the error. Any 
 suggestions that
 im missing here. Its driving me nuts. the syntax seems to be 
 okay as far
 as I can tell.
 
 
 Any suggestions here greatly appreciated.
 
 
 
 
 Chris
 
 
 -
 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




info

2001-10-25 Thread Anton Dushev

Hi , I am a student in TU-Munich ,
I need more information how is posible to instal MySQL ,
bekause I begin to learn PHP   before 2 month :)
Operation Sistem in TUM  is  Solaris end Linux(KDE).
  Tank You!!!


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

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




RE: Query Error

2001-10-22 Thread Tichawa Anton

hi,

try your first SELECT statement, but with

  ORDER BY table1.table1_row

maybe this helps (I didnt try it).

Anton Tichawa


 -Original Message-
 From: Bruno Faé [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 22, 2001 5:44 PM
 To: [EMAIL PROTECTED]
 Subject: Query Error
 
 
 Hi !
 
 I´m trying to query some news with multiple rows in my database. I´m
 receiving an error when i use:
 
 SELECT table1.*, table2.table2_row FROM table1,table2 ORDER BY
 table1_row
 
 but, if I try:
 
 SELECT table1.table1_row, table2.table2_row FROM 
 table1,table2 ORDER BY
 table1_row
 or
 SELECT table1.*, table2.table2_row FROM table1,table2
 
 it works fine, and I don´t understand why it always work and now is
 returnig a error.
 
 I don´t have any idea of what is happennig.
 I think it´s a PHP problem.
 
 Thank You for Help.
 
 -
 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




RE: Import Data

2001-10-18 Thread Tichawa Anton

Hi Riccardi,

 
 I want to import data from text file that contains decimal number
 (occasionaly with 9 decimal) but mysql import only 2 decimal.
 My columns is set to DECIMAL(6,9)
 Hi, Moreno
 

try

  DECIMAL(15,9)

because I think the first argument specifies the total number of digits.

Anton Tichawa.

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

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




RE: Date interval problem

2001-10-05 Thread Tichawa Anton

hello list,

Michael Thygs is right, but the expression can be simplified. We have to
assume that all dates are in correct order, i. e. for each date pair the
following relation is true:

  from date = to date

When a date range from tab1 does NOT overlap a date range from tab2, then
the tab1 range is either entirely before or entirely after the tab 2 range.

tab1 entirely before tab2 can be expressed by:

  tab1.date_to  tab2.date_from

and it is not necessary to test

  tab1.date_from  tab2.date_from

because tab1.date_from should be = date1.date_to.

Similariy, tab1 entirely after tab2 can be expressed by:

  tab1.date_from  tab2.date_to

For the WHERE clause, we have to exclude both these cases (I do this here by
inverting the relationship and ANDing the two expressions):

  WHERE (tab1.date_to = tab2.date_from) and (tab1.date_from =
tab2.date_to)

AFAIK, this should result in all overlapping date ranges being selected.



 -Original Message-
 From: Michael Thygs [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 05, 2001 1:29 PM
 To: [EMAIL PROTECTED]
 Subject: AW: Date interval problem
 
 
 Hello Bruno,
 
 its a little bit complicated. You have to put a little bit of 
 brain in it!
 
 The situation you ask for is:
 
 tab2.interval ---
 possible intervals of table 1, which should be displayed are:
 1.---
 2.--
 3.
 --
 4.
 ---
 
 Now you have to write four parts of where-clauses which 
 describe each of
 this situtation and you have to connect them with an OR
 
 select * from tab1, tab2 where (where clause for situation 1) 
 OR (where
 clause for situation 1) OR ...
 
 and the where clauses look like this (situation 1):
   (tab1.date_from = tab2.date_from AND tab1.date_from = 
 tab2.date_to) AND
 (tab1.date_to = tab1.date_from AND tab1.date_to = tab2.dat_from)
 
 and so on with situation 2,3 and 4.
 
 Maybe it isn´t a efficient way, but it should be possible.
 
 Greetings
 
 Michael
 
 PS: Don´t forget the brakets
 
 
 -Ursprüngliche Nachricht-
 Von: Bruno Grampa [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 5. Oktober 2001 12:34
 An: [EMAIL PROTECTED]
 Betreff: Date interval problem
 
 
 Hello,
 i have a table with two dates, that define an interval.
 In the query i have two more dates, and i want to select all 
 the records
 that overlap that period.
 Any hint to solve this problem?
 
 Thanks,
Bruno
 
 -
 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




full-text search problem

2001-09-26 Thread Tichawa Anton

Hi,
 
I have problems with full-text search. My table contains text lines from
computer-generated log files rather than documents written by humans, and so
my first problem is that I need an exact match rather than a relevance
value, i. e. if the search string is 'ai', I really need all rows containing
'ai' to appear in the result, even if this includes 99 % of all rows.
 
Also, I would need to switch between 'case-sensitivity yes/no' and 'search
for whole words only yes/no'.
 
Currently, I load all rows to the client and do the search on the client. Is
there, or will there be, a way to do this kind of text search on the server?
 
thanks in advance
 
Anton Tichawa
 

-
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




missing libcrypt_i.so.1 file

2001-05-24 Thread Stelian Anton

Hello All,

When I check to running the mysql_install_db I have the error:

root@gem:/usr/local/mysqlscripts/mysql_install_db 

ld.so.1: ./bin/my_print_defaults: fatal: libcrypt_i.so.1: open failed: No such file or 
directory

Environment:

System: SunOS gem 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4

Some paths:  /usr/local/bin/perl /usr/local/bin/make /usr/local/bin/gcc /usr/ucb/cc
GCC: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)
Compilation info: CC='gcc'  CFLAGS='-O3 -fno-omit-frame-pointer'  CXX='gcc'  
CXXFLAGS='-O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti'  
LDFLAGS=''
LIBC:
-rw-r--r--   1 bin  bin  1610172 Jan  9 01:28 /lib/libc.a
lrwxrwxrwx   1 root root  11 Jan 13 10:13 /lib/libc.so - ./libc.so.1
-rwxr-xr-x   1 bin  bin  1015768 Jan  9 01:28 /lib/libc.so.1
-rw-r--r--   1 bin  bin  1610172 Jan  9 01:28 /usr/lib/libc.a
lrwxrwxrwx   1 root root  11 Jan 13 10:13 /usr/lib/libc.so - ./libc.so.1
-rwxr-xr-x   1 bin  bin  1015768 Jan  9 01:28 /usr/lib/libc.so.1
Configure command: ./configure  --prefix=/usr/local/mysql '--with-comment=Official 
MySQL binary' --with-extra-charsets=complex --with-server-suffix= --enable-assembler 
--disable-shared
Perl: This is perl, version 5.005_03 built for sun4-solaris

Thanks
Stelian