Re: Mysql 3.23.51 on Solaris

2002-07-16 Thread Roland Schmid
> Connection Failed > 2003 - Cannot Connect to MySQL server on 10.1.1.95 (10061) Hi, it seems that the MySQL Server is not running. Try to start the server. Best regards, Roland -- [EMAIL PROTECTED] - Before posting, plea

Error Codes

2002-07-16 Thread Jenny Christy
Hello All, I m using linux with mysql server. I wud like to print the correct error message if any error occur while we r communicating with server eg. access denied, connection failure, no data is available , table does not exits, duplicate data etc. How can i see the return error code value a

create tmp table privileges

2002-07-16 Thread Daniel Kasak
Hi all. I've been trying to grant users the right to create temporary tables: grant create temporary table on mydatabase.* to user; flush privileges; I've also tried: grant create temporary table on mysql.* to user; flush privileges; When I check in the user table, the Create_tmp_table_priv

Re: Concept

2002-07-16 Thread Iikka Meriläinen
Hi, If you mean the concept (in Oracle) where an instance is effectively one database, the architectures differ a whole lot. Whereas Oracle, as I said, creates an instance for each database it's running, MySQL can handle several databases within one server process instance. The concept of data f

Re: MySQL on a Cobalt RAQ4

2002-07-16 Thread Colin Faber
Hi, Those builds are horribly out of date, I recommend you get the binary package (if available) from the MySQL.com site, Other wise grab the source distribution and compile it your self. Peter Lovatt wrote: > > Hi > > Dont use the rpm, go for the package at > > http://pkgmaster.com/package

Re: help me with this query

2002-07-16 Thread Arul
Hi I Dont think this will work coz I need the company which has serviceid = 1 AND serviceid = 2 and serviceid = 3 So let's take this Query , Select companyid, count(*) from CompanyServices where serviceid = 1 or serviceid = 2 or serviceid = 3 group by companyid having count(*) = 3 If i have an

MySQL Best Practices

2002-07-16 Thread Imro STROK
Hi, We, StarHub Pte Ltd, decided to use MySQL/Linux for one of our new projects. Since all of our DBAs are Oracle trained, we need to speed up our MySQL skills. Therefore we already installed MySQL (3.23.51) on our Linux server (Red Hat Linux release 7.2) to play with this database. Using the boo

Mysql 3.23.51 on Solaris

2002-07-16 Thread Arul
Hi All I had installed MYSQL 3.23.51 on Solaris Sparc 2.8 The Login name i used to loginto Solaris is MySQL.I didnt use the root account to install MySQL When i try to connect to that MySQL Database from a Windows Machine using MySql Front Client , it says that Connection Failed 2003 - Cannot C

fail to insert BLOB data on multibyte charset MySQL server

2002-07-16 Thread xuefer tinys
failed to insert BLOB data on multibyte charset i'm using GBK charset. mysql 4.01 use PHP to insert, did addslashes before insert however, failed. i've read the mysql_escape_string() source code. noticed that, mb char is processed differently, but is it a must ? yes, php+libmysql is not up to d

Re: Beginner's question

2002-07-16 Thread Kyle W. Kelly
It looks like the entire text object is retrieved, and then a substring is returned from the text object. Are there any functions that only retrieve a portion of the text object? Meaning the whole text object is not loaded from the hard drive, and then a substring is returned. In other words, I

RE: Weighted average

2002-07-16 Thread Ian M. Evans
>What version of MySQL are you using? Our host, Interland, is running a pre-3.23 version. >back, 3.23.x supports them), then just issue a similar query and store >the result yourself... Should've thought of that myself. Thanks. --

Re: not so simple sql-question?: ... O_Sessions AS first, O_Sessions AS second ...

2002-07-16 Thread Benjamin Pflugmann
Hi. On Wed 2002-07-17 at 03:21:34 +0200, [EMAIL PROTECTED] wrote: > SELECT * FROM O_Sessions AS first, O_Sessions AS second WHERE > first.iSession=MAX(second.iSession) AND first.iUser=second.iUser > > yes, nice idea, but in mySQL, grouping functions like MAX are only > allowed in SELECT ... FROM

RE: Joins, ANSI 92 or the "old way"

2002-07-16 Thread Defryn, Guy
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 17 July 2002 1:59 p.m. To: Defryn, Guy Subject: Re: Joins, ANSI 92 or the "old way" Your message cannot be posted because it appears to be either spam or simply off topic to our filter. To bypass th

internal MYSQL clock?

2002-07-16 Thread Paul Wallace
Hi, I just encountered a problem when entering a datetime field. Using 'now()' in my SQL string input a time about 13 minutes before my other method (a JSP System.currentTimeMillis() method - one that generates the time from the CPU clock) Can anyone tell me why the time generated by now() d

RE: not so simple sql-question?: SELECT iSession FROM O_Sessions ORDER BY iSession DESC GROUP BY iUser

2002-07-16 Thread Cal Evans
Salutations Robo, You are very close. Try: Select * from O_sessions order by iSession DESC limit 1,1 Or if you don't care how many records are returned: Select * from O_sessions order by iSession DESC and then just take the top record. No need to group by (that I can see) And, as always, NEVER

Re: Beginner's question

2002-07-16 Thread Kyle W. Kelly
Awesome, that will help. I am returning variable size pages. I now think the queries are slow because some of the pages are relatively large (65 KB). If I could return only a portion of the page, then that would cut down on the query time. My hard drive is definitely NOT top of the line. Thank

RE: Beginner's question

2002-07-16 Thread Matthew Scarrow
To return the first 500 chars of a field us the substring(str, pos, len) function: example Select substring(field, 0, 500) as First500 from my_table where something=something else; Matthew Scarrow ComIT Solutions Inc. www.comit.ca Phone: 519-442-0100 Fax: 519-442-0429 -Original Messag

not so simple sql-question?: ... O_Sessions AS first, O_Sessions AS second ...

2002-07-16 Thread Robo
SELECT * FROM O_Sessions AS first, O_Sessions AS second WHERE first.iSession=MAX(second.iSession) AND first.iUser=second.iUser yes, nice idea, but in mySQL, grouping functions like MAX are only allowed in SELECT ... FROM, not in the WERE part :-( But i will remember this way to work around the G

Re: [ date format ]

2002-07-16 Thread Anderson Pereira Ataides
Em Ter 16 Jul 2002 18:19, Elby Vaz escreveu: > Hi, > > the date format of MySql is /mm/dd (2002/07/16) right? Wrong. The date format of MySQL is -mm-dd. > How I do to insert the date typing in my form dd/mm/ (16/07/2002)? > It is possible? You have to format your date to insert

Re: slow count queries

2002-07-16 Thread mos
At 06:00 PM 7/16/2002, you wrote: >hello, > >this issue is important for me too. i have a few silly questions > >1. why innodb table type? what is its use? which one is default? (ISAM?) Innodb Supports row locking and transactions which is very important when a lot of users are updating the same

Re: Concept

2002-07-16 Thread Jeremy Zawodny
On Tue, Jul 16, 2002 at 08:59:12PM -0300, Alexander Burbello wrote: > I would like to know if MySQL has the same concept > like Oracle has about Instance? or phisical structure > like datafiles, control files, etc. If you explain the concepts, we can probably help answer your questions. Jeremy -

Concept

2002-07-16 Thread Alexander Burbello
I would like to know if MySQL has the same concept like Oracle has about Instance? or phisical structure like datafiles, control files, etc. Regards Alexander sql, query ___ Yahoo! Encontros O lugar certo para encontrar

Concept

2002-07-16 Thread Alexander Burbello
I would like to know if MySQL has the same concept like Oracle has about Instance? or phisical structure like datafiles, control files, etc. ___ Yahoo! Encontros O lugar certo para encontrar a sua alma gêmea. http://br.encontros.

Re: Beginner's question

2002-07-16 Thread Kyle W. Kelly
I apologize for giving yall the wrong query. The incorrect query simply gives the matching webpages. The query that returns the page is simple. select page where webpage='previously obtained page.html' Additionally, for the sake of completeness, the table for the word is the following: table

Lost connection to mysql server

2002-07-16 Thread Defryn, Guy
I have a build an ASP page to enter data in a mysql database. When I open the page I get the following error : Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [TCX][MyODBC]Lost connection to MySQL server during query /centraladmin/products.asp, line 88 When I refresh it wo

Re: ??? Simple sql-question: SELECT iSession FROM O_Sessions GROUP BY iUser

2002-07-16 Thread Mike
Have you tried something like this, SELECT iSession FROM O_Sessions GROUP BY iUser ORDER BY iSessions DESC; Mike - Original Message - From: "Robo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 3:39 PM Subject: ??? Simple sql-question: SELECT iSession FROM O_Se

Lost connection to mysql server

2002-07-16 Thread Defryn, Guy
I have a build an ASP page to enter data in a mysql database. When I open the page I get the following error : Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [TCX][MyODBC]Lost connection to MySQL server during query /centraladmin/products.asp, line 88 When I refresh it work

Re: help me with this query

2002-07-16 Thread Francisco Reinaldo
Hi, Select companyid, count(*) from CompanyServices where serviceid = 1 or serviceid = 2 or serviceid = 3 group by companyid having count(*) = 3 Bye and Good Luck. --- Arul <[EMAIL PROTECTED]> wrote: > Hi All > > The Table design goes like this > > Company Table > > companyid

Lost connection to mysql server

2002-07-16 Thread Defryn, Guy
I have a build an ASP page to enter data in a mysql database. When I open the page I get the following error : Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [TCX][MyODBC]Lost connection to MySQL server during query /centraladmin/products.asp, line 88 When I refresh it works

not so simple sql-question?: SELECT iSession FROM O_Sessions ORDER BY iSession DESC GROUP BY iUser

2002-07-16 Thread Robo
thank's for your replies, but that did not help :-( this is the setting (also look below for example table): O_Sessions contains multilpe recordsets for iUser (let' say iUser=42). I want the last RECORDSET of this iUser=42, not the first. With GROUP BY, all the various recordsets with iUser=42 ar

RE: MySQL on a Cobalt RAQ4

2002-07-16 Thread Cal Evans
two pieces of advice. 1: Stop posting over and over again. 2: Check the archives. This is has been discussed in the past 3 months. There is probably some very good advice there. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: K Frey [mailto:[EM

Re: slow count queries

2002-07-16 Thread mos
Walt, InnoDb physically counts all the rows in the table (unlike MyISAM tables which stores the row count in a separate location). So in your case it went through all 99,994 rows. The more rows you have in the table, the longer it will take. I don't know how accurate "Show table status

RE: ??? Simple sql-question: SELECT iSession FROM O_Sessions GROUP BY iUser

2002-07-16 Thread Satish Prabhu
Well if you want the latest and greatest iSession irrespective of the user use select max(iSession) from O_Sessions; If it is to be grouped by user, then select user, max(iSession) from O_Sessions group by user; This will give you the max iSession for a user. Regards Satish -Original Mes

[ date format ]

2002-07-16 Thread Elby Vaz
Hi, the date format of MySql is /mm/dd (2002/07/16) right? How I do to insert the date typing in my form dd/mm/ (16/07/2002)? It is possible? Thanks, Elby _ MSN Photos é a maneira mais fácil e prática de editar e

Re: slow count queries

2002-07-16 Thread walt
On Tuesday 16 July 2002 05:05 pm, Jeremy Zawodny wrote: > On Tue, Jul 16, 2002 at 03:52:35PM -0400, walt wrote: > > I have an INNODB table which has 4 records in it. customer_number is > > the primary key. > > > > If I run > > select count(cutomer_number) from customer; > > > > It takes about

Re: slow count queries

2002-07-16 Thread Jeremy Zawodny
On Tue, Jul 16, 2002 at 03:52:35PM -0400, walt wrote: > I have an INNODB table which has 4 records in it. customer_number is the > primary key. > > If I run > select count(cutomer_number) from customer; > > It takes about 15 seconds to return the number of rows. > I ran explain on the query

customizing user table

2002-07-16 Thread J.M.Roth
Hi, will it work if I add some custom fields to the mysql user table? Regards -jm - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To req

Re: MyISAM v. InnoDB

2002-07-16 Thread Benjamin Pflugmann
Hello. On Tue 2002-07-16 at 07:47:33 -0500, [EMAIL PROTECTED] wrote: > >> Of the data? Or of the queries? > > Not the data. Just your query, the output from explain and a create > > table statement. > > Query: > > SELECT DISTINCT cards_crypt.* > FROM user_haves, cards_crypt WHERE > cards_cryp

Re: ??? Simple sql-question: SELECT iSession FROM O_Sessions GROUP BY iUser

2002-07-16 Thread Keith C. Ivey
On 16 Jul 2002, at 21:39, Robo wrote: > I want the latest (highest) iSession to be selected: > > SELECT iSession FROM O_Sessions GROUP BY iUser > > Because of GROUP BY, allways the first(!) recordset for iUser is > selected. But i want the last recordset to be selected :-( I'm not sure wha

RE: MySQL on a Cobalt RAQ4

2002-07-16 Thread Peter Lovatt
Hi Dont use the rpm, go for the package at http://pkgmaster.com/packages/raq/4/ and install it from there, just point and click! Peter --- Excellence in internet and open source software --- Sunmaia www.su

Transactions, Deadlocks, User Variables and Replication

2002-07-16 Thread Paul Houle
Hi, I'm developing a system which will use transactions with InnoDB. In principle, when you use transactions, there is some risk that a deadlock will happen and MySQL will abort the transaction. In this situation, you should generally try to do the transaction again. I'm wondering * Wh

Permissions problems

2002-07-16 Thread System Administrator a.k.a. The Root of the Problem
USually all the databases sets up fine BUT recently, I have had to adjust databases to 0777 in order to get them to work and change the ownership. I prefer the more secure model of mysql. How can I fix this? -- contact: Dave Yadallee NetKnow The Internet Knowledge Company [EMAIL PROTECTED]

RE: RE: Mysql wil lnot load

2002-07-16 Thread Aaron Axelsen
[root@Alpha mysql]# pwd /usr/local/mysql [root@Alpha mysql]# ls -al total 48 drwxr-xr-x 12 root mysql4096 Jul 15 01:31 . drwxr-xr-x 14 root root 4096 Jul 15 01:27 .. drwxr-xr-x2 root mysql4096 Jul 15 01:57 bin drwxr-xr-x3 root mysql4096

Re: Beta training program

2002-07-16 Thread Benjamin Pflugmann
Hello. On Mon 2002-07-15 at 15:44:11 +0200, [EMAIL PROTECTED] wrote: > Can someone plz send me the posting from mysqlab concerning the beta > training , I deleted it accidentally... > Thanks You can find the same information here: http://www.mysql.com/training/certification.html Greetings,

Re: mysql db - rsync

2002-07-16 Thread Benjamin Pflugmann
Hello. On Sat 2002-07-13 at 05:03:43 -0700, [EMAIL PROTECTED] wrote: > If you are on the same OS and rsync happens fine, then you should not loose > any data. But only if he also somehow assures that no updates take place on the master while doing the rsync. Additionally, he should do a flush ta

slow count queries

2002-07-16 Thread walt
I have an INNODB table which has 4 records in it. customer_number is the primary key. If I run select count(cutomer_number) from customer; It takes about 15 seconds to return the number of rows. I ran explain on the query and it's using the unique key index on customer_number. If I run S

Re: 3.23.51 bug ? ( was RE: Load problems with 3.23.51 )

2002-07-16 Thread Victoria Reznichenko
David, Tuesday, July 16, 2002, 3:55:46 PM, you wrote: DB> Same thing here, mysql 3.23.51 works well during about 2 hours then DB> suddently load average grow up to 200 and more ... DB> Load average is less than 4 with 3.23.49. DB> We're using binary tar.gz non max versions from Mysql.com DB> OS

safe_mysqld - my.cnf weird foo

2002-07-16 Thread Shon Stephens
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i configure/make/make install mysql-3.23.51 on sparc solaris using gcc-2.95.2. i used the configure option --sysconfdir=/usr/local/etc. i ran the mysql_install_db script, i performed all the chown/chgrp operations, i copied mysql.server to /etc/rc3.

MySQL on a Cobalt RAQ4

2002-07-16 Thread K Frey
I plan to attempt installing MySQL on a Cobalt Raq4 this week - anyone have experience/advice to share? My plan is to download the RPM from mysql.com and follow the directions on the site, but I have read some things on the internet that say to stay away from the rpm... Kristy ---

Problems with high-use tables

2002-07-16 Thread Christopher A. Libby
Hi - I've been using MySQL for a variety of functions with great success over the last year. However, I recently rebuilt my log database server after a crash, and I've been having a lot of trouble with two tables getting corrupted. One table stores my syslog entries from Kiwi Syslod Daemon, and

??? Simple sql-question: SELECT iSession FROM O_Sessions GROUP BY iUser

2002-07-16 Thread Robo
I want the latest (highest) iSession to be selected: SELECT iSession FROM O_Sessions GROUP BY iUser Because of GROUP BY, allways the first(!) recordset for iUser is selected. But i want the last recordset to be selected :-( How can this be done ? (mySQL) (iSession ist the primary key => lat

RE: processors

2002-07-16 Thread Brad Dameron
A load of 2? Heck we have systems that run a load of 20 or more without issues. If you are doing a lot of connections you might look at optimizing your code. Also using indexes can increase the speed as well. --- Brad Dameron Net

Re: BIGINT -> INT in ODBC

2002-07-16 Thread Dennis
Someone has a pretty lousy filter installed At 02:56 PM 07/16/2002, you wrote: >Your message cannot be posted because it appears to be either spam or >simply off topic to our filter. To bypass the filter you must include >one of the following words in your message: > >sql,query > >If you just rep

RE: Create ... select bug

2002-07-16 Thread Jay Blanchard
[snip] CREATE TABLE order_cross SELECT date_format(data_iniz_num,'%y') as anno,ord_tmp.soc,ord_tmp.ml, ord_tmp.cod_agente, ord_tmp.linea, CASE WHEN month(data_ordine) = 1 then qty else 0 END as jan, CASE WHEN month(data_ordine) = 2 then qty else 0 END as feb, CASE W

Errors 1159 in replication of 3.23.51 not dangerous; will be fixed in .52

2002-07-16 Thread Heikki Tuuri
Hi! If the master is idle, then a slave of MySQL release 3.23.51 prints: ... 020715 12:05:33 Error reading packet from server: (server_errno=1159) 020715 12:06:03 Slave: Failed reading log event, reconnecting to retry, log 'mysql.001' position 73 020715 12:06:03 Slave: reconnected to master

Mysqlgui

2002-07-16 Thread luis_de_freitas
Please Do you have some information for install mysqlgui in Linux, i do not how do it? Thank you... Luis R. De Freitas R. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysq

Create ... select bug

2002-07-16 Thread Andrea Forghieri
Dear Dirs, I think I' ve found a bug. Please run the following query (I know you don' t have my db, try something similar) CREATE TABLE order_cross SELECT date_format(data_iniz_num,'%y') as anno,ord_tmp.soc,ord_tmp.ml, ord_tmp.cod_agente, ord_tmp.linea, CASE WHEN

replication works but error log full of junk

2002-07-16 Thread walt
I've set up replication and the slave is updating any changes made to the master, but these errors keep showing up in the error log. Any ideas?? 020716 12:57:26 Slave: Failed reading log event, reconnecting to retry, log 'walt-bin.002' position 265 020716 12:57:26 Slave: reconnected to master

Re: MySQL security

2002-07-16 Thread Jeremy Zawodny
On Tue, Jul 16, 2002 at 02:51:59PM +0200, Mathias Bertelsen wrote: > Hello > > Do you think MySQL is secure enough to keep peoples bookkeeping in? > is it safe enough to use without risk of losing important data? Is > it necessary to do anything to make it secure? (eg. use of > transactions/backu

Re: bug with like, latin1 and umlaut ü

2002-07-16 Thread Thomas Spahni
Victoria, I see the problem is with sql/share/charsets/latin1.conf because German umlaut 'ü' and 'Ü' is mapped to 59 'Y' in the sort_order array. This is very much unlike the treatment for the other umlauts ('ä' --> 5C and 'ö' --> 5D) german1.conf does map 'ü' --> 55 'U' giving a correct sort o

Create ... select bug

2002-07-16 Thread Andrea Forghieri
Dear Dirs, I think I' ve found a bug. Please run the following query (I know you don' t have my db, try something similar) CREATE TABLE order_cross SELECT date_format(data_iniz_num,'%y') as anno,ord_tmp.soc,ord_tmp.ml, ord_tmp.cod_agente, ord_tmp.linea, CASE WHEN

RE: ERA model generator

2002-07-16 Thread Cal Evans
http://www.thekompany.com/products/dataarchitect/ It's not free but it is cross platform and I think it supports pgsql. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Dusan Juhas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:33 A

help me with this query

2002-07-16 Thread Arul
Hi All The Table design goes like this Company Table companyid integer name varchar(100) Services Table ServiceIDinteger Servicevarchar(50) Company Services --- companyidinteger - References Company(companyid

Re: version

2002-07-16 Thread Alec . Cawley
> Please tell me if the MySQL 4.0.2-alpha Windows 95/98/NT/2000/XP (17.2M) > supports the subselect command. No version of MySQL currently supports subselects. >From http://www.mysql.com/doc/A/N/ANSI_diff_Sub-selects.html "Subselects are currently being implemented in the 4.1 development

RE: UPDATE command..

2002-07-16 Thread Cal Evans
sql,query IMHO, I'd look at creating a view that postfix looks at instead of the table. This way you could concat the data for the view but keep it separate in the table. rename the table users_table or something and create a view called users. Other than that, the concat statement I and others

Re: Calculating rows in a result set

2002-07-16 Thread Alec . Cawley
You said: -- is there a way to calculate the number of rows retrieved by a mysql query, without actually performing it? I want to make a paginated result like in most search engines, and for that I need to display the number of pages the result would have, but I do not wa

help me with this query

2002-07-16 Thread Arul
Hi All The Table design goes like this Company Table companyid integer name varchar(100) Services Table ServiceIDinteger Servicevarchar(50) Company Services --- companyidinteger - References Company(companyid

MySQL C API: Timeouts

2002-07-16 Thread Juerg Moser
Hi, I’m using the MySQL C API for my clients and MyISAM tables for the database (clients and server on W2k). I would now like to be sure that the client never hangs when inserting tuples into a table (using mysql_real_query()). This could happen if some other client holds (and doesn’t release) a

ERA model generator

2002-07-16 Thread Dusan Juhas
Hello, don't somebody know about an application which allows to create the ERA model of a database using GUI and generate SQL code which makes this model real? eg: GUI: [table1]--[table2] [table1] |-attr1 |-attr2 ... SQL code: create table1 (table1_id datatype,attr1 datatype1,attr2 datatype2...)

Re: Calculating rows in a result set

2002-07-16 Thread Walter D. Funk
Got it, Thanks to all of your replies! W.D.F. - Original Message - From: "Cal Evans" <[EMAIL PROTECTED]> To: "Walter D. Funk" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 11:44 AM Subject: RE: Calculating rows in a result set > Not without actually performing SO

Re: Beginner's question

2002-07-16 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthew Scarrow wrote: | Try adding a primary key to the table. | | alter table webpage add autoid INT UNSIGNED NOT NULL PRIMARY KEY | AUTO_INCREMENT | | This will help the database functions search through the table quicker. Probably not. If the pri

Re: MySQL FreeBSD LinuxThreads

2002-07-16 Thread Ken Menzel
Hi Oleg, I have similar problems on FreeBSD with one or two slow queries hogging the CPU. I am running native threads. I am looking at a parameter in the kernel (/usr/src/sys/i386/conf/LINT). It is the HZ parameter and has to do with polling frequency. The default is 100, I am experimenting

version

2002-07-16 Thread Narcis GRATIANU
Please tell me if the MySQL 4.0.2-alpha Windows 95/98/NT/2000/XP (17.2M) supports the subselect command. Thank you ! _ Narcis GRATIANU ICQ#: 13344551 More ways to contact me: http://wwp.icq.com/13344551 _

Re:UPDATE command..

2002-07-16 Thread Oliver Six
Patrick J Okui <[EMAIL PROTECTED]> wrote on 16.07.2002 15:47:50: > >I have two collumns in my mysql database like this > >+--++ >|id|domain | >+--++ >|user@domain1com |domain1.com | >|[EMAIL PROTECTED] |domain1.com | >

RE: UPDATE command..

2002-07-16 Thread Cal Evans
well, #1, I would revision my data model. since user and domain are 2 distinct pieces of information, I would suggest that you consider pulling them apart and placing them in separate fields. #2 update users set is = concat(left(id,position('@',id)),'domain2.com') where domain = "domain1.com" o

Re: UPDATE command..

2002-07-16 Thread Anil Garg
update set id = replace(id, '1', '2'); hope this helps anil - Original Message - From: "Patrick J Okui" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 9:47 AM Subject: UPDATE command.. > > > I have two collumns in my mysql database like this > > +

Re: Calculating rows in a result set

2002-07-16 Thread Ralf Narozny
Walter D. Funk wrote: >Hi everybody, > >is there a way to calculate the number of rows retrieved by a mysql query, >without actually performing it? > >I want to make a paginated result like in most search engines, and for that >I need to display the number of pages >the result would have, but I

RE: Calculating rows in a result set

2002-07-16 Thread Cal Evans
Not without actually performing SOME kind of query. You could select count(*) from... and insert the rest of your query there. This would give you the count. Then store this in a session variable (PHP) for subsequent pages. Most of the time though, I just put a NEXT button. ADODB has some gr

Re: UPDATE command..

2002-07-16 Thread Ralf Narozny
Patrick J Okui wrote: >I have two collumns in my mysql database like this > >+--++ >|id|domain | >+--++ >|user@domain1com |domain1.com | >|[EMAIL PROTECTED] |domain1.com | >|[EMAIL PROTECTED] |domain1.com | >+---

RE: Beginner's question

2002-07-16 Thread Matthew Scarrow
Try adding a primary key to the table. alter table webpage add autoid INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT This will help the database functions search through the table quicker. I think another area where the query is getting slowed down is in the translation of the Java. Java is a

Re: MySQL security

2002-07-16 Thread Dan Lamb
We use MySQL to store financial data and have never had a problem. The things you mentioned (transactions/backup/power failure security) should be used with ANY database that stores critical information that cannot be lost. No database is completely bullet proof. Regular backups stored at an of

problems with gr-secured kernel

2002-07-16 Thread Tobias Gablunsky
Hi! I found out, that the MySQL-daemon /usr/sbin/mysqld (Version 4.02, the rpm version), installed under RedHat 7.3 (i386) doesn't like the option "Randomize mmap() base" from the Grsecurity kernel patch suite... Greetings, tobias gablunsky __ Te

Calculating rows in a result set

2002-07-16 Thread Walter D. Funk
Hi everybody, is there a way to calculate the number of rows retrieved by a mysql query, without actually performing it? I want to make a paginated result like in most search engines, and for that I need to display the number of pages the result would have, but I do not want to actually retrieve

UPDATE command..

2002-07-16 Thread Patrick J Okui
I have two collumns in my mysql database like this +--++ |id|domain | +--++ |user@domain1com |domain1.com | |[EMAIL PROTECTED] |domain1.com | |[EMAIL PROTECTED] |domain1.com | +--++ in a

RE: Use MySQL and Visual Basic 6.0

2002-07-16 Thread Francisco Reinaldo
Hi, This is not related with your issue but if you want to do serious development, don't use Windows 98 in any of its versions. It is going to give a lot of problems. Bye and Good Luck. --- Matthew Scarrow <[EMAIL PROTECTED]> wrote: > I've built a whole program with vb6 and mysql > database back

Re: query

2002-07-16 Thread Gerald Clark
Difficult to answer without knowing what the "unix-socket problem" is. p shah wrote: >Hi, > >I want to know one thing about MYSQl, >Why does this software always give the unix-socket >problem when compiled and installed. > >I am installing on redhat 7.1. > >Is there a remedy to this or this will

3.23.51 bug ? ( was RE: Load problems with 3.23.51 )

2002-07-16 Thread David BORDAS
Hi list, Same thing here, mysql 3.23.51 works well during about 2 hours then suddently load average grow up to 200 and more ... Load average is less than 4 with 3.23.49. We're using binary tar.gz non max versions from Mysql.com OS : Linux Red hat 7.2 kernel : 2.4.10 1 Go RAM 2 * Intel 1 Ghz Du

MySQL security

2002-07-16 Thread Mathias Bertelsen
Hello I have a question for all you MySQL people out there We are a group of people planning to make a small open source ERP/accounting/finance program. We have earlier used MySQL to great satisfaction in other areas and would like to use it here. My question is: Do you think MySQL is secure en

Re: MyISAM v. InnoDB

2002-07-16 Thread Chris Boget
>> Of the data? Or of the queries? > Not the data. Just your query, the output from explain and a create > table statement. Query: SELECT DISTINCT cards_crypt.* FROM user_haves, cards_crypt WHERE cards_crypt.name LIKE "%harrod%" AND user_haves.card_name = cards_crypt.name AND user_haves.tota

Re: Load problems with 3.23.51 ( same here )

2002-07-16 Thread David BORDAS
Hi list, Same thing here, mysql 3.23.51 works well during about 2 hours then suddently load average grow up to 200 and more ... Load average is less than 4 with 3.23.49. We're using binary tar.gz non max versions from Mysql.com OS : Linux Red hat 7.2 kernel : 2.4.10 1 Go RAM 2 * Intel 1 Ghz Du

Re: --bind-address

2002-07-16 Thread Egor Egorov
Chris, Tuesday, July 16, 2002, 2:13:57 AM, you wrote: CK> Can MySQL bind to two or more IP addresses? Nope. CK> i.e. --bind-address 127.0.0.1 --bind-address x.x.x.x --bind-address y.y.y.y CK> ? -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is spon

Re: Re: sql: create duplicate record

2002-07-16 Thread Victoria Reznichenko
AR>> I want to write sql query to duplicate a row. It has a PRI key called ID. AR>> The MySQL database looks like AR>> IDNameAddress AR>> 345 Aman42, sb AR>> 346 AR>> 347... AR>> I want to duplicate the ID=345. AR>> Any suggestions ? VR> You can have d

RE: How can I make and execute .sql file

2002-07-16 Thread Jay Blanchard
[snip] Can anybody tell me the query or procedure by which i can generate the .sql file. So that I dont need to write the query again and again on prompt. [/snip] Create a text file containing your query commands and then save it as filename.sql (calling it whatever you wish of course) and then c

RE: Calculations in mysql

2002-07-16 Thread Jay Blanchard
[snip] sqltext2 = "Select sum(orders.amount * products.price) AS total from orders,products where orders.product=products.productid AND cluster = '" & cluster & "'and orderdate > '" & printdate & "';" [/snip] If the query conditioals are the same for both queries you can just include sum(orders.a

Re: Weighted average

2002-07-16 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ian M. Evans wrote: | | SELECT @totalVotes:=COUNT(titleid) FROM movieratings | | What version of MySQL are you using? I just tried this on MySQL-4.0.2 and it worked. If your version of MySQL doesn't support variables (they go pretty far back, 3.23

Re: innodb problem

2002-07-16 Thread Egor Egorov
Massimo, Tuesday, July 16, 2002, 1:02:15 PM, you wrote: MP> I am a new user of mysql MP> I installed 3.23.51 on my nt MP> this is my my.ini files. MP> [mysqld] MP> innodb_data_home_dir = MP> innodb_data_file_path = ibdata1:30M:autoextend MP> default-table-type=innodb MP> [WinMySQLAdmin] MP> S

Re: RE: Interesting

2002-07-16 Thread Victoria Reznichenko
Nick, Monday, July 15, 2002, 5:58:31 PM, you wrote: NM> I'm using version 3.23.53 on Win 2k. NM> The same things happens to me. NM> I've also noticed that if you don't specify a WHERE clause and you have a NM> Auto-incrementing ID field, it is reset to zero and the next record you NM> create st

Re: Re: How to display the warning message

2002-07-16 Thread Victoria Reznichenko
Xinguang, Monday, July 15, 2002, 6:01:35 PM, you wrote: >> I have been trying to use the LOAD data command to load the data XS> instead of using the sql insert into table. It works fine but I have XS> got some warnings, how can I see these warnings, is there a log for XS> it, how can I see the

Re: Referential Integrity in mySQL

2002-07-16 Thread Egor Egorov
Adnan, Tuesday, July 16, 2002, 2:18:22 PM, you wrote: AY> I am having a problem in referential Integrity in mySQL. I have AY> created a parent table which have deptno from 1-10. When i insert a row in AY> child table that has deptno as foreign key it accept a value 11 which is AY> actuall

Re: sql: create duplicate record

2002-07-16 Thread Victoria Reznichenko
Aman, Monday, July 15, 2002, 8:35:16 PM, you wrote: AR> I want to write sql query to duplicate a row. It has a PRI key called ID. AR> The MySQL database looks like AR> IDNameAddress AR> 345 Aman42, sb AR> 346 AR> 347... AR> I want to duplicate the ID=345

  1   2   >