Update multiple tables strange behaviour

2007-02-15 Thread Manuel Vacelet
Hi all, I'm facing a strange behaviour with an UPDATE statement. I have a table like: +-+--+ | item_id | rank | +-+--+ |2812 |2 | | 13050 |4 | | 13051 |3 | | 13052 |1 | +-+--+ And I want to switch items 2812 and 13052 rank (i.e.

Re: incompatible libmysqld.a

2007-02-15 Thread Carlos Soria
Thank you for your answers. gcc (GCC) 4.1.1 20060724 (prerelease) (4.1.1-3mdk) mysql Ver 14.12 Distrib 5.0.24a, for mandriva-linux-gnu (i586) using readline 5.1 GNU C Library development release version 2.4, I think MySql 5.0 requires glibc 2.3. I do not know if v2.4 is a problem. This

Re: InnoDB fixed file size, how much is left?

2007-02-15 Thread Gabriel PREDA
For what you described... you will not get a fixed size... If you have set file_per_table flag in my.cnf you might want to know that the .ibd files in the database directory are by default auto-extending... so those files WILL grow... along with your data... The shared tablespaces that you

Re: How can I detect if MySql is already installed?

2007-02-15 Thread Juan Eduardo Moreno
Linux : $ rpm -qa |grep -i mysql Regards, Juan On 2/14/07, Zsolt Csillag [EMAIL PROTECTED] wrote: Hello, I would like to create a setup program for my demo version that uses MySql database. I need to detect if the target computer has already got the MySql installed because I don't want to

Re: How can I detect if MySql is already installed?

2007-02-15 Thread suomi
Hi Zsolt if there is no firewall in between, you may check to see if port 3306 is responding. suomi Zsolt Csillag wrote: Hello, I would like to create a setup program for my demo version that uses MySql database. I need to detect if the target computer has already got the MySql

Re: How can I detect if MySql is already installed?

2007-02-15 Thread Duncan Hill
On Thursday 15 February 2007 11:12:11 Juan Eduardo Moreno wrote: Linux : $ rpm -qa |grep -i mysql Regards, Juan On 2/14/07, Zsolt Csillag [EMAIL PROTECTED] wrote: Hello, I would like to create a setup program for my demo version that uses MySql database. I need to detect if the

Re: SQL_CALC_FOUND_ROWS using ODBC driver

2007-02-15 Thread Nils Meyer
Hi, Nuno Oliveira wrote: When I set the RS.Source to the first SELECT statement and open it, it run OK but I need to close the RS and open it again using the second SELECT statement. After any of this operations I get a Recordset-RecordsCount = 1 That is actually a correct figure, SELECT

RE: InnoDB fixed file size, how much is left?

2007-02-15 Thread Gary W. Smith
For what you described... you will not get a fixed size... If you have set file_per_table flag in my.cnf you might want to know that the .ibd files in the database directory are by default auto-extending... so those files WILL grow... along with your data... The shared tablespaces that

Re: SQL_CALC_FOUND_ROWS using ODBC driver

2007-02-15 Thread Nils Meyer
Nils Meyer wrote: SELECT SQL_CALC_FOUND_ROWS doesn't make much sense without a where clause by the way. LIMIT, not where. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: SQL_CALC_FOUND_ROWS using ODBC driver

2007-02-15 Thread Jess Balint
On Thu, Feb 15, 2007 at 01:04:26AM +, Nuno Oliveira wrote: Hi, I've used PHP with MySQL and I was able to count the rows of a table by using the following code: SELECT SQL_CALC_FOUND_ROWS * FROM MyTableName; SELECT FOUND_ROWS(); However, I would like to do the same thing using

Re: How can I detect if MySql is already installed?

2007-02-15 Thread Daniel da Veiga
On 2/15/07, Duncan Hill [EMAIL PROTECTED] wrote: On Thursday 15 February 2007 11:12:11 Juan Eduardo Moreno wrote: Linux : $ rpm -qa |grep -i mysql Regards, Juan On 2/14/07, Zsolt Csillag [EMAIL PROTECTED] wrote: Hello, I would like to create a setup program for my demo version that

Re: How can I detect if MySql is already installed?

2007-02-15 Thread Rolando Edwards
If you have root access, do 'mysqladmin -u... -h... ping' - Original Message - From: Daniel da Veiga [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Thursday, February 15, 2007 1:08:49 PM (GMT-0500) Auto-Detected Subject: Re: How can I detect if MySql is already installed? On 2/15/07,

Re: How can I detect if MySql is already installed?

2007-02-15 Thread Winn Johnston
--- Rolando Edwards [EMAIL PROTECTED] wrote: If you have root access, do 'mysqladmin -u... -h... ping' - Original Message - From: Daniel da Veiga [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Thursday, February 15, 2007 1:08:49 PM (GMT-0500) Auto-Detected Subject: Re: How

#2002 - The server is not responding

2007-02-15 Thread Peter Bradley
I haven't been into phpMyAdmin for a while, but when I tried today I got the error: |#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) This error message didn't seem to tie in with anything on the MySQL site, which gives: | Error: |2002|

Export Results?

2007-02-15 Thread Jesse
Is there a way to export results of a query to a file? In other words, if I do a select * from somefile, is there a phrase like send output to somefile.txt, or something? I've searched the help file, and I guess I don't know what I'm looking for, if it even exists. I'm using MySQL version 5

SQL Translation

2007-02-15 Thread Trimeloni, Adam
I am currently working on a project to support using a MySQL database along with SQL Server 2000. The following query has me stumped: Select * from group_mstr gm,group_payers gp where gm.practice_id = '1' and gp.location_id = '2' and gp.practice_id =* gm.practice_id and

Re: Export Results?

2007-02-15 Thread Chris White
Jesse wrote: Is there a way to export results of a query to a file? In other words, if I do a select * from somefile, is there a phrase like send output to somefile.txt, or something? I've searched the help file, and I guess I don't know what I'm looking for, if it even exists. I'm using

Re: SQL Translation

2007-02-15 Thread Dan Nelson
In the last episode (Feb 15), Trimeloni, Adam said: I am currently working on a project to support using a MySQL database along with SQL Server 2000. The following query has me stumped: Select * from group_mstr gm,group_payers gp where gm.practice_id = '1' and gp.location_id = '2' and

Error with mysqldump

2007-02-15 Thread Peter K AGANYO
When my server was running MySQL 4.1 I used mysqldump for backup with no errors - Redhat Linux 9. In fact when the server crashed and I had to restore the whole box I used the backups from mysqldump to restore all the databases and tables including the users. However, the server is now running

Re: Export Results?

2007-02-15 Thread Jesse
Thanks, Exactly what I was looking for. It helps to know what you are looking for when browsing the help file. Jesse - Original Message - From: Chris White [EMAIL PROTECTED] To: Jesse [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Sent: Thursday, February 15, 2007 4:34 PM Subject: Re:

RE: SQL Translation

2007-02-15 Thread Gary W. Smith
Select * from group_mstr gm,group_payers gp where gm.practice_id = '1' and gp.location_id = '2' and gp.practice_id =* gm.practice_id and gp.group_id =* gm.group_id order by gp.payer_id I bet =* is shorthand for an outer join (not sure if it's left or right). You should be able

RE: SQL Translation

2007-02-15 Thread Trimeloni, Adam
I should have mentioned it is a short hand for a join. *= is a left outer join. =* is a right outer join. Adam Trimeloni Project Leader Quality Systems [EMAIL PROTECTED] (949) 255-2600 -Original Message- From: Gary W. Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15,

Re: #2002 - The server is not responding

2007-02-15 Thread Onur
I haven't been into phpMyAdmin for a while, but when I tried today I got the error: |#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) This error message didn't seem to tie in with anything on the MySQL site, which gives: Error: |2002|

Temporary table lifespan

2007-02-15 Thread Amer Neely
I'm writing a perl script in which I need to save some session data. My first attempt is to use a temporary table to store some data. However, I'm a little unclear as to the lifespan of the temporary table. My understanding is they last until the session ends, or a DELETE TABLE is issued. My

Re: Temporary table lifespan

2007-02-15 Thread Daniel Kasak
Amer Neely wrote: I'm writing a perl script in which I need to save some session data. My first attempt is to use a temporary table to store some data. However, I'm a little unclear as to the lifespan of the temporary table. My understanding is they last until the session ends, or a DELETE

Re: Temporary table lifespan

2007-02-15 Thread Amer Neely
Amer Neely wrote: Daniel Kasak wrote: Amer Neely wrote: I'm writing a perl script in which I need to save some session data. My first attempt is to use a temporary table to store some data. However, I'm a little unclear as to the lifespan of the temporary table. My understanding is they

Re: Temporary table lifespan

2007-02-15 Thread Daniel Kasak
Amer Neely wrote: OK, that makes sense. As far as I know, my connection is still live - I don't do a disconnect anywhere. So I'm still not sure why I can't pull the data back out. I do get an error telling me about a problem with my statement near which is where it tries to execute the

Re: Temporary table lifespan

2007-02-15 Thread Amer Neely
Daniel Kasak wrote: Amer Neely wrote: OK, that makes sense. As far as I know, my connection is still live - I don't do a disconnect anywhere. So I'm still not sure why I can't pull the data back out. I do get an error telling me about a problem with my statement near which is where it

Numeric sorting within a string

2007-02-15 Thread Chris White
I'm wondering if there is a way to do a numeric sort when the number exists in a string. More clearly, take for example: Radius 1200 Radius 1500 Radius 1800 Radius 300 Radius 600 Radius 900 Being that character wise 1 is before 3, I'm wondering if there's a way through the database to

Re: 2 ways replication

2007-02-15 Thread Rilawich Ango
Hi, Most of the documents talk about the normal replication and dual master. None of them talk about the conflict handling. Does it mean that we need to handle the conflict ourselves? As I know, MSSQL has a way to implement 2 ways replication. Any drawback if using MSSQL for this kind of

Re: Numeric sorting within a string

2007-02-15 Thread Brian Mansell
This is totally possible... Chris say your table is test, and the column is test_col.. use the following, and if the number is always at the end.. and always has a space in front of it this will work: SELECT test_col, SUBSTRING_INDEX(test_col, '', 1) as test_col_str, SUBSTRING_INDEX(test_col, '

Re: Temporary table lifespan - SOLVED

2007-02-15 Thread Amer Neely
Amer Neely wrote: Daniel Kasak wrote: Amer Neely wrote: OK, that makes sense. As far as I know, my connection is still live - I don't do a disconnect anywhere. So I'm still not sure why I can't pull the data back out. I do get an error telling me about a problem with my statement near