Summarize

2002-03-05 Thread Alainq
Dear, I am stuck on something, I would like to summarize multiple columns to a total value in a query and then display the output with php in a table. the summarize works for 1 column but not for two or more. any suggestions ? Thanks alot

Re: Summarize

2002-03-05 Thread Nathan
Why does SELECT SUM(column1 + column2 + column3) AS combined FROM table not work for you? The php echo is no different from any other data... your column name is combined if you fetch_array or fetch_assoc. Please post more information if this does not accomplish what you require. Cheers, #

Re: Summarize

2002-03-05 Thread DL Neil
Dear Alainq, I am stuck on something, I would like to summarize multiple columns to a total value in a query and then display the output with php in a table. the summarize works for 1 column but not for two or more. any suggestions ? So is what you are doing something like? (would it help

RE: mysql on Linux

2002-03-05 Thread Jorge del Conde
Hi, Download the binary distribution that suits your system and read the INSTALL-BINARY file. Also, make sure the online documentation at http://www.mysql.com/documentation/index.html Regards, Jorge For technical support contracts, visit https://order.mysql.com/ __ ___ ___ __

Create User

2002-03-05 Thread Josiah Wallingford
What is the command prompt to create a user in mysql? Thank you, Josiah Wallingford - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To

MySQL Database Replication

2002-03-05 Thread Thi Cao
Hello everyone, This is my first attempt at MySQL database replication. Can't seem to get it to work yet. The problem reported in the error log of the slave server is as follows: Error reading packet from server: Access denied for user 'repl@slave_host' (Using password: YES) (read_errno

Re: mysql on Linux

2002-03-05 Thread Intrex
Not to be sarcastic, but Pointing us all to ducumentation I HAVE READ 100 TIMES is NO help. I have read this file, I have used the appropriate .tar.gz, I have reinstalled, I have used the most current RPM's How about contributing something USEFUL, like a REAL answer, that anyone can follow. No

Re: mysql on Linux

2002-03-05 Thread Christopher Thompson
No need to get all snarky. People are confused because there's a whole section in the manual that covers the installation, step-by-step, with no cryptic mumbo jumbo. This is at http://www.mysql.com/documentation/mysql/bychapter/manual_Installing.html#Linux-RPM and basically tells you to

OS X

2002-03-05 Thread Ray Hughes
I have been going out of 'my' mind. I am trying to install mysql on a Macintosh OS X server. Can anyone give me instructions on how to do this? I have been to numerous sites with no luck. We run OS 10.1.2 server, I have mySQL 3.23.49 running (from entropy). During the install I had to

Re: mysql on Linux

2002-03-05 Thread Scott Helms
Mark, This probably won't get you the response you wanted. How about letting us know where you have gotten to and where things seem to be breaking. A generalized request for what do I do often recieves little or no help. Some basic system information would also be much appreciated; what

Re: SELECT this IF that

2002-03-05 Thread DL Neil
Leif, I'm not sure what you mean by tbl2's population is a sub-set of that in tbl1. tbl1 contains user id nums and hours each user spent working on a project. tbl2 contains user id nums and the first and last names that correspond to each user id. There are user id nums in tbl1 that do

Re: MySQL Database Replication

2002-03-05 Thread James Housley
Thi Cao wrote: Hello everyone, This is my first attempt at MySQL database replication. Can't seem to get it to work yet. The problem reported in the error log of the slave server is as follows: Error reading packet from server: Access denied for user 'repl@slave_host' (Using

Re: Create User

2002-03-05 Thread DL Neil
Josiah, What is the command prompt to create a user in mysql? GRANT privileges ... TO user_name IDENTIFIED BY 'password' Manual: 4.3.1 GRANT and REVOKE Syntax Regards, =dn - Before posting, please check:

Re: OS X

2002-03-05 Thread Michael Stearne
Try this like, http://www.entropy.ch/software/macosx/ , they're great instructions and binaries. Michael On Tuesday, March 5, 2002, at 06:38 PM, Ray Hughes wrote: I have been going out of 'my' mind. I am trying to install mysql on a Macintosh OS X server. Can anyone give me

Mysql power builder

2002-03-05 Thread Adriana Reynoso
Hi again I'm Working with PB 8.01 , mysql odbc 3.51 driver, Mysql 4.01 alpha-max-nt , OS Platform:w2k service pack2, using INNODB table type I design a Datawindow using 2 retrieval arguments, in my preview seem to works fine...but when I run my application it doesn't retrieve any data...

Re: Why v3.23.49 does not build on RedHat 6.2 ?????

2002-03-05 Thread Trond Eivind Glomsrød
Dr. Michael Wittmann [EMAIL PROTECTED] writes: one solution could be to install a more recent compiler version and try to recompile again. be aware that actual rpm's will be created by rpm version 4, whereas redhat 6.2 has rpm version 3 installed which possibly cannot handle version-4-rpm's

Weird problem again.

2002-03-05 Thread Adam
I was the one having issues getting Lost Connection and whatnot for no reason. I have recompiled under glibc2.2.5 with 2.95 and 3.04. I just tried 4.0.2 from the source tree. Sometimes from the command line of doing mysql -uroot -p I get this: ERROR: And that's it. I run it again, and it

Re: mysql on Linux

2002-03-05 Thread Intrex
Ok. SuSE 7.3 Digital HiNote VP745 mysql Ver 11.17 Distrib 3.23.49a for pc-linux-gnu Prior to completely reinstalling my SuSE system, I was running mysql 3.23.47 for SuSE I have installed the .tar.gz and followed those instructions I have installed the RPM's using the -i, and also installed

Re: mysql on Linux

2002-03-05 Thread James Montebello
On Tue, 5 Mar 2002, Intrex wrote: Ok. SuSE 7.3 Digital HiNote VP745 mysql Ver 11.17 Distrib 3.23.49a for pc-linux-gnu Prior to completely reinstalling my SuSE system, I was running mysql 3.23.47 for SuSE I have installed the .tar.gz and followed those instructions I have

Re: mysql on Linux

2002-03-05 Thread Intrex
I do have a mysql user, and have used the commands to assigne rights for the mysql user per the instructions. I have no hostname.err, only linux.err which displays the exact same errors I typed out. Mark - Original Message - From: James Montebello [EMAIL PROTECTED] To: Intrex [EMAIL

Any way to hint a particular index for a query?

2002-03-05 Thread Shankar Unni
(Using mysql 3.23.38 - commercial version) I have a table that has two indexes: one on just creationTime (iv_alert_creation_ix), and one on (state, creationTime) (iv_alert_state_ix). When I issue this query: explain select uuid from iv_alert where state = 1 and creationTime =

Re: Any way to hint a particular index for a query?

2002-03-05 Thread Arjen Lentz
Hi, On Wed, 2002-03-06 at 11:12, Shankar Unni wrote: (Using mysql 3.23.38 - commercial version) I have a table that has two indexes: one on just creationTime (iv_alert_creation_ix), and one on (state, creationTime) (iv_alert_state_ix). When I issue this query: explain select uuid

Re: Proxy server problems

2002-03-05 Thread Arjen Lentz
Hi, On Tue, 2002-03-05 at 23:55, Petre Agenbag wrote: I have recently had some problems with web forms not updating the website ( use PHP and the insert page should first enter the form data into a table and then update the status field in a second table correlating to the entry just

Re: Any way to hint a particular index for a query?

2002-03-05 Thread Shankar Unni
Steven Roussey wrote: Any way to hint a particular index for a query? From the manual (http://www.mysql.com/doc/J/O/JOIN.html) Thanks. I missed that. Unfortunately, as I was afraid, this is a very MySQL-specific way of doing it. But then, hints always are DB-specific, so that's not too

Re: timezones aren't being properly handled

2002-03-05 Thread Benjamin Pflugmann
Hi. This is a known bug and IIRC fixed by 3.23.49a. Try that and report back, if you still have problems. Regards, Benjamin. On Tue, Mar 05, 2002 at 01:22:34PM -0800, [EMAIL PROTECTED] wrote: I have a several Redhat machines with MySQL 3.23.* installed on it. When I upgrade any of

how to configure my.cnf

2002-03-05 Thread Jaime Teng
Hi, Below is the content of my my.cnf file. I would like to get the optimum performance from MySQL and would like to modify some of the values. Specifically, my W2K Machine has 192MB of ram, what should I have in order for MySQL to take advanatge of that 192MB memory and what effect does it

Re: Default record order...

2002-03-05 Thread Richard S. Huntrods
DLN, Thanks. Interestingly enough, pulling records without a sort was rather random (rather, influence by the last sort) - but once I placed a primary key on the table, the order of unsorted records is always constant, even after a sort (based on numerous tests yesterday and today with the

Re: Japanese shift-JIS messages

2002-03-05 Thread Joel Rees
I wrote: Didn't see anything on this specific question in a quick search of the database. If I just missed it, I apologize. Okay, okay, RTWM. What I have in mind is being able to read the Japanese error messages on an MSWindows box. So I wanted to make a mysql\share\japanese_sjis

mytop

2002-03-05 Thread Steven Roussey
Jeremy, Mytop is simply awesome. Thanks! I recently updated to 0.9. I have a request: how about the qps mode show total qps as well as breaking them out (selects, inserts, updates, deletes, and other) as is possible with the Com_ status variable in the later versions of MySQL (no

Re: Default record order...

2002-03-05 Thread Arjen Lentz
Hi Richard, On Wed, 2002-03-06 at 13:02, Richard S. Huntrods wrote: Interestingly enough, pulling records without a sort was rather random (rather, influence by the last sort) - but once I placed a primary key on the table, the order of unsorted records is always constant, even after a sort

Re: Summarize

2002-03-05 Thread Anvar Hussain K.M.
Hi, Select Sum(ifnull(column1,0)+ifnull(column2,0)+ ...+ifnull(columnn,0)) From tbl group by .. Anvar. At 11:34 PM 05/03/2002 +0100, you wrote: Dear, I am stuck on something, I would like to summarize multiple columns to a total value in a query and then display the output with php in a

Re: Many processes in SHOW PROCESSLIST;

2002-03-05 Thread Steven Roussey
PMFJI, but has anyone done any testing to see if persistent connections with MySQL and PHP is actually faster in practice? Without testing, I suspect that it is faster but that the gains are very small. If this was Oracle, it'd be a whole different story. The connection

Re: Mysql won´t connect

2002-03-05 Thread Miguel Angel Solorzano
At 19:10 05/03/2002 +0100, Othmar Stehlik wrote: Hi! Hi I installed MySql on Win2k and everything worked fine, than I also installed Oracel, mysql refused to work, than I deinstalled Oracle and did a new mysql setup. But when I try to start mysql, with mysql\binmysql mysql.exe is the client

Loops in Mysql

2002-03-05 Thread Amit Lonkar
Hi What I want to do is import data from some other database to Mysql. For this the requirement is that, each record before being added to Mysql database, should pass through a loop say 5 times. This I want to do using only SQL. I do not want ot use Java or any other language. Any idea as to how

Which Linux version to download (all?)

2002-03-05 Thread Elissa
Hi, I'm a newie to SQL, and to Linux, so please forgive my blaring blunders... I know I have an x86 Linux machine, running Redhat 7.2, and I know that I like RPMs better than binary installations When I get to the Stable Version/Linux/RPMs download area, the following options are

Re: mytop

2002-03-05 Thread Jeremy Zawodny
On Tue, Mar 05, 2002 at 05:30:31PM -0800, Steven Roussey wrote: Jeremy, Mytop is simply awesome. Thanks! Thanks, glad ya like it. I recently updated to 0.9. I have a request: how about the qps mode show total qps as well as breaking them out (selects, inserts, updates, deletes, and

Transact Sql

2002-03-05 Thread Amit Lonkar
hi Does Mysql support Transat SQL??? Amit __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ - Before posting, please check:

InnoDB and hosts.allow/deny

2002-03-05 Thread Eberhard Lisse
Hi, I run SuSe 7.2 and have upgraded to the current suse versions of mysql. Server version 3.23.41-Max-log Protocol version10 Connection linux.lisse.na via TCP/IP TCP port3306 I have added mysqld and mysqld-max to the /etc/hosts.allow and can

Re: Transact Sql

2002-03-05 Thread Jeremy Zawodny
On Tue, Mar 05, 2002 at 09:15:59PM -0800, Amit Lonkar wrote: hi Does Mysql support Transat SQL??? Nope. -- Jeremy D. Zawodny, [EMAIL PROTECTED] Technical Yahoo - Yahoo Finance Desk: (408) 349-7878 Fax: (408) 349-5454 Cell: (408) 685-5936 MySQL 3.23.47-max: up 26 days, processed

RE: SELECT this IF that

2002-03-05 Thread Bill Easton
You can do what you asked for by making a temporary table, as follows. create temporary table T (this varchar(..), that varchar(..)); insert into T select tbl1.this, no record from tbl1 left join tbl2 on tbl1.id = tbl2.id where tbl2.id is null; insert into T select tbl1.this, tbl2.that from

Re: Any way to hint a particular index for a query?

2002-03-05 Thread Steven Roussey
Any way to hint a particular index for a query? From the manual (http://www.mysql.com/doc/J/O/JOIN.html) As of MySQL Version 3.23.12, you can give hints about which index MySQL should use when retrieving information from a table. This is useful if EXPLAIN shows that MySQL is using the wrong

Re: mysql on Linux

2002-03-05 Thread Steven Roussey
When I execute mysqld -u root -p password I am presented with the default variables. The manual says to use safe_mysqld to properly start mysqld. Also, --user=root is clearer for that option. And, what are you doing with -p password in starting the daemon? This is not an option, it is an

Antwort: RE: Re: Problem with MySQL, ODBC, MS Access

2002-03-05 Thread Penkert, Christine
Hi, Sorry, it didn´t help. create table tPruefBesch (fTimestamp timestamp(14), fPruefbeschNr int auto_increment not null, fPlanNr int, primary key (fPruefbeschNr)); mysql explain tPruefBesch; +--+--+---+---++--+ |

Dual Languages??

2002-03-05 Thread [EMAIL PROTECTED]
Hi, I have a requirement of storing and retrieving data in 2 languages - namely English and Arabic. From what I have been able to understand, that would require me to have 2 MySQL servers running simultaneously. Can somebody please tel me : 1)if there are any other better ways 2) if this is

<    1   2