Re: RAID RAID_CHUNKS speed differences

2001-11-15 Thread Jeremy Zawodny
On Thu, Nov 15, 2001 at 04:14:58PM -0600, Michael Brunson wrote: > > Has anyone ran any benchmarks as to what affect different number of > RAID_CHUNKS has on speed? The more chunks, the slower your retrieval speed is likely to be. But how many chunks do you really need? More than a few? > mysq

RE: What do I need for Perl

2001-11-15 Thread Patrick Nelson
Ken Kinder wrote: - The mysql-perl had something called the Perl DBI. Go to this url: http://www.mysql.com/downloads/api-dbi.html Get the DBI and the Mysql-Perl tarballs. They are funny to install, but basicly you untar them: tar zxvf then, in the directory crea

Re: DBMS that integrates well with object-oriented programming

2001-11-15 Thread Jeremy Zawodny
On Thu, Nov 15, 2001 at 03:18:58AM -0800, Bennett Haselton wrote: > > > >Hmm... I'm sure plenty of people would disagree strongly with your > >remark of bad OO support in Perl. But, that is beside the > >point. You could either search CPAN (http://www.cpan.org/) and see > >if you find what you nee

Re: About huge numbers

2001-11-15 Thread Gyulay Gabor
On Thu, 15 Nov 2001, Shankar Unni wrote: Thank you for your answers. > Generally, you don't want to store currencies in floating point, anyway, > and it's unfortunate that MySQL implements DECIMAL as floating point rather > than a variable-length BCD (which is exact). Yes. This is strange,

Re: DBMS that integrates well with object-oriented programming

2001-11-15 Thread Jeremy Zawodny
On Thu, Nov 15, 2001 at 01:49:31AM -0800, Bennett Haselton wrote: > > After converting the data in my project from text files to MySQL > tables, things are certainly working more smoothly than they were > before, Good to hear. > but since I use objects (in Perl, which barely supports objects, bu

Re: replication setup

2001-11-15 Thread Jeremy Zawodny
On Thu, Nov 15, 2001 at 09:32:56AM +0100, Jure Koren wrote: > Hello! > > I've set up replication with a master and two slaves, all running > 3.23.43, and it works like a charm. Except for... > > When the master goes down, the slave tries to reconnect after 60 > seconds, but just once. That shou

May i know ....

2001-11-15 Thread Gabrielle
hello I need some help. May i know where can i find all the terminologies about the Database,tables,attributes,tuples,relataion database,primary key,foreign key, composite primary key all. And their charactieris,purpose,adavantage and disadvantage? thnak you Sincery, Carmen

Re: Problem related to not equal to function

2001-11-15 Thread Michael Brunson
On Fri, 16 Nov 2001 10:41:31 +0530, Manish Mehta used a few recycled electrons to form: | Hello , | | I have a problem related to not <> or != (not equal to function) . | | The SQL Query is | | select a.cBook_Name from tbl_bookmaster as a , tbl_empbookrelation as b | where a.nb

Problem related to not equal to function

2001-11-15 Thread Manish Mehta
Hello , I have a problem related to not <> or != (not equal to function) . The SQL Query is select a.cBook_Name from tbl_bookmaster as a , tbl_empbookrelation as b where a.nbook_id != b.nbook_id It shows me wrong result. It shows me those rows also which are already presen

Record Locking in InnoDB

2001-11-15 Thread Kishor K
Hi, I am using jsp-mysal combination in my application. In my case i need the second user accessing the record to edit to get a error message "this record is being edited by another user. try later" if the record is being edited by first user. In the page i have used i have set autocommit=0 then

Re: myisamchk/corrupt tables

2001-11-15 Thread Van
Jennifer Slis wrote: > > I am extremely new to mySQL (and the Linux environment all together). I have > been building/maintaining a mySQL/PHP site. Today, the site began giving me > errno 145 (cannot open file) errors. I found that meant I had at least one > corrupt table, so I went into mySQL, f

myisamchk/corrupt tables

2001-11-15 Thread Jennifer Slis
I am extremely new to mySQL (and the Linux environment all together). I have been building/maintaining a mySQL/PHP site. Today, the site began giving me errno 145 (cannot open file) errors. I found that meant I had at least one corrupt table, so I went into mySQL, found I had two corrupt tables

RE: How to Access MySql Database?

2001-11-15 Thread Todd Williamsen
Sounds like you have a TCP socket problem. Is the database on a local machine or a hosting provider? What platform is it on wintel or *nix? Thank you, Todd Williamsen, MCSE home: 847.265.4692 Cell: 847.867.9427 -Original Message- From: Georgina Fang [mailto:[EMAIL PROTECTED]] Sent:

How to Access MySql Database?

2001-11-15 Thread Georgina Fang
Hi: I telnet to the server. But I can not get into MySql database. What's the problem? % mysql ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) % mysql -p linksdb Enter password: Then I type in password, and got the following: ERROR 2002: C

ADVICE ON GRANT PRIVILEGES

2001-11-15 Thread tpchan
Hi, I resubmited again for anyone with solution to assist me. I had one question. I would like to set permission for remotely backup using mysqldump. Let's assume I want to use B(10.0.0.2) server to remotely backup A(10.0.0.1) server. The command I run at B server are: mysqldump --opt -h10.0.0

crashed queries cause big database slowdown - using innodb

2001-11-15 Thread Richard Clarke
Hi, I'm building an application which uses Innodb. It is very imperative that all data is processed as quickly as it possibly can and so the problem I have is quite a concern. My perl script executes the queries however if if make an error in the code and the script crashes half way through th

Re: connection question

2001-11-15 Thread Arjen G. Lentz
Hi, - Original Message - From: "Brent Simpson" <[EMAIL PROTECTED]> > I've been reading up on this most of the day and still can't get it! You'll say DOH! later ;-) > I need to use PHP to make connections to MySQL. When I use my actual > host name to make the connection I get this: > W

install

2001-11-15 Thread Peter . Liu
mysqlHow to install mysql on unix? Ö Àñ£¡ Peter.Liu - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) T

afds

2001-11-15 Thread Peter . Liu
mysql£¬ÄúºÃ£¡ fdsa Ö Àñ£¡ Peter.Liu [EMAIL PROTECTED] - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

connection question

2001-11-15 Thread Brent Simpson
I've been reading up on this most of the day and still can't get it! I need to use PHP to make connections to MySQL. When I use my actual host name to make the connection I get this: Warning: Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) in /var/www/html/php/db_mysql.inc on l

SupportWizard: bug in mysql: "ALTER TABLE CHANGE COLUMN A" can damage autoincrement column B!

2001-11-15 Thread Max
>Description: I am using russian values(cp1251 charset) for ENUM items. Here is an example how to damage ID field by query to change F_Category Enum. >How-To-Repeat: # Create tableA with ID field. CREATE TABLE tableA ( ID int(11) NOT NULL auto_increment, F_ReportID b

ORDERING A LEFT JOINED TABLE

2001-11-15 Thread Brett Lytle
I'm having a problem sorting records that are used in a left join statement. Basically what happens is that any record that is not in table1 doesn't get sorted correctly. It first sorts all the records that have valid 'c2' records in both table1 and table2, then moves on to all the records that o

Re: Should I use a MERGE table?

2001-11-15 Thread Anthony R. J. Ball
Hrm... so it is going to need to rebuild all the indexes, not just the table I am adding... doh... oh well, should still be faster, I'd guess. Probably my best bet in this case is to create a new merged table with the new table and all the other old ones, then replace the old merged table with

What maintenance is needed for MyISAM tables?

2001-11-15 Thread Rick Robinson
Hi all, I'm using a MyISAM table in a high availability environment as a rudimentary persistent FIFO queue. The table definition is simple - the key is an auto_increment unsigned bigint and the data is a blob (it holds the contents of a C structure with a length of 200-400 bytes). I've got a cou

Re: RAID RAID_CHUNKS speed differences

2001-11-15 Thread Michael Brunson
Here is the same data in a little easy format. Raid Chunks count like %like % % 10.00 sec 0.33 sec 2 min 3.70 sec 30.00 sec 0.39 sec 14 min 59.83 sec 50.00 sec 0.38 sec 6 min 44.92 sec 15 0.00 sec 0.39 sec 6 min 33.72 sec

Re: InnoDB Clarifications for InnoDB newbie

2001-11-15 Thread Eric J. Schwertfeger
On Thu, 15 Nov 2001 [EMAIL PROTECTED] wrote: > I am using 4.0 and switching from MyISAM to InnoDB, > so quite newbie on this: I'm still using 3.23.4X (differs depending on which machine I'm on), but I'm pretty sure that none of the questions have answers that change too much between those vers

Re: Is there any mySQL forums ?

2001-11-15 Thread Nathan
Jason The forums at http://forums.devshed.com aren't half bad either... Apache, PHP, MySQL, HTML/Javascript... # Nathan - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 4:28 PM Subject: Re: Is there any mySQL forums ? In M

Subtracting Dates

2001-11-15 Thread Ken Kinder
The date addition and subtraction functions in mysql don't seem to quiet do this. I was wondering if anyone know a way I could do this in the query: Say you have two fields, start_time, and end_time, representing the start and end of a period of time. Both are datetime datatypes. What I want is

Re: Is there any mySQL forums ?

2001-11-15 Thread Paul
In Message-ID: <[EMAIL PROTECTED]> Jason Rowski wrote: >Hi, >Is there any mySQL forums ( discussion boards) where I >can post my mySQL queries ? >Thanks >Jason Jason, I hope this isn't seen as spam... but http://dbforums.com has a forum for most mainstream databases, including web access to

shutdown still a problem on Darwin

2001-11-15 Thread Erik Price
Hello all, Some of you may recognize this post somewhat, I've asked about this problem before: I am unable to execute the "shutdown" command with mysqladmin, running on Darwin 1.4.1 (from Mac OS X 10.1.0). Originally, I had compiled MySQL 3.23.44 from source code, specifying the following optio

Re: getting multiple columns per row from databse query

2001-11-15 Thread chip . wiegand
Thanks Bill, That works great. Much appreciative, Chip Bill Adams <[EMAIL PROTECTED]>@tqs.com on 11/15/2001 10:31:45 PM Internet mail from: Sent by: [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: getting multiple columns per row from databse query Try

Re: What do I need for Perl

2001-11-15 Thread Ken Kinder
The mysql-perl had something called the Perl DBI. Go to this url: http://www.mysql.com/downloads/api-dbi.html Get the DBI and the Mysql-Perl tarballs. They are funny to install, but basicly you untar them: tar zxvf then, in the directory created by that: perl Makefile.PL make make

Re: Should I use a MERGE table?

2001-11-15 Thread Bill Adams
"Anthony R. J. Ball" wrote: > Ok, so to follow... Paul Dubois told me the little > RENAME TABLE trick to swap out a table... Will that work > on a table in a MERGE, or are there different hoops to > jump through? Your table names need to be unique. Then it should work just fine. o If you do

Re: Should I use a MERGE table?

2001-11-15 Thread Anthony R. J. Ball
Ok, so to follow... Paul Dubois told me the little RENAME TABLE trick to swap out a table... Will that work on a table in a MERGE, or are there different hoops to jump through? On Thu, Nov 15, 2001 at 02:01:44PM -0800, Bill Adams wrote: > "Anthony R. J. Ball" wrote: > > > I was just readin

What do I need for Perl

2001-11-15 Thread Patrick Nelson
I'm sorry but I have tried to solved this on my own, but I'm unable to. I have a RH system and I installed the (at the time) most current stable mysql system 3.23.43-1 and have it up and running. The problem that I have is that I want to start working with Perl and MySQL, but don't know what I r

Re: speed of mysql insert through C api

2001-11-15 Thread Jonothan Farr
There's no way to know that without knowing the schema of the table you're inserting into. How you index it is going to be the biggest factor there. --jfarr - Original Message - From: "Gabor Penoff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 2:23 PM S

speed of mysql insert through C api

2001-11-15 Thread Gabor Penoff
Hi folks, can you tell me an estimated speed about filling 100 records with mysql insert by using the C api? I know the question sounds silly - all I have now is a suspicion that I make something wrong (I mean the insert seems to be quite slow here at home). cu, fns -[ mailto:[EMAIL PROTECTE

RAID RAID_CHUNKS speed differences

2001-11-15 Thread Michael Brunson
Has anyone ran any benchmarks as to what affect different number of RAID_CHUNKS has on speed? Also, what affect does the RAID_CHUNKSIZE have? Here are a few results I've gotten all with the default CHUCKSIZE. - No RAID Tables (yes, fewer rows.. hit the 2G limit) mys

Re: Should I use a MERGE table?

2001-11-15 Thread Bill Adams
"Anthony R. J. Ball" wrote: > I was just reading DOCS for MERGE tables... and they > look like exactly what I want. > > I have a large lookup table that I use to track down > where I want to find my data, which gets loaded into > different tables at different times of the day > (financial dat

Re: getting multiple columns per row from databse query

2001-11-15 Thread Tore Van Grembergen
the easiest way is using a counter to 4 and then do reset to so you get if counter = 4 then reset counter write new line endif % calculates the modulo between $i and 2 = Remainder of $i divided by 2 - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Should I use a MERGE table?

2001-11-15 Thread Anthony R. J. Ball
I was just reading DOCS for MERGE tables... and they look like exactly what I want. I have a large lookup table that I use to track down where I want to find my data, which gets loaded into different tables at different times of the day (financial data). Now I am loading all the data into

RE: Index not used with GROUP BY?

2001-11-15 Thread Carsten H. Pedersen
> On 15 Nov 2001, at 21:59, Carsten H. Pedersen wrote: > > > > PRIMARY KEY > > > (`collection_id`,`document_id`,`tcml_field_id`,`order_number`), > > > KEY `collection_field_value` > > > (`collection_id`,`tcml_field_id`,`value`(12)), > > > KEY `value` (`value`(12)), > > > KEY `resource_

Re: getting multiple columns per row from databse query

2001-11-15 Thread Bill Adams
Try: $i++; if( $i % 3 == 0 ){ echo "\n\n"; } b. mysql [EMAIL PROTECTED] wrote: > I have a database that is names and addresses. I want to make a web page > that will display those > names and addresses in a table with 4 columns per row, as many rows as necessary. >The little > if statement

getting multiple columns per row from databse query

2001-11-15 Thread chip . wiegand
I have a database that is names and addresses. I want to make a web page that will display those names and addresses in a table with 4 columns per row, as many rows as necessary. The little if statement below works to make 2 columns, but when I change the number to 3 or higher it no longer works

Re: AUTO_INCREMENT with TYPE = INNODB

2001-11-15 Thread Joe Ellis
thanks. i'll start it with the value i need. it increments after that ;) Heikki Tuuri wrote: > Joe, > > sorry, I did not know AUTO_INCREMENT=... clause does not work with InnoDB. I > will look if it is easy to fix. > > A workaround is that you insert the first row which the auto-inc column >

RE: Index not used with GROUP BY?

2001-11-15 Thread Keith C. Ivey
On 15 Nov 2001, at 21:59, Carsten H. Pedersen wrote: > > PRIMARY KEY > > (`collection_id`,`document_id`,`tcml_field_id`,`order_number`), > > KEY `collection_field_value` > > (`collection_id`,`tcml_field_id`,`value`(12)), > > KEY `value` (`value`(12)), > > KEY `resource_id` (`resource_i

RE: Index not used with GROUP BY?

2001-11-15 Thread Carsten H. Pedersen
> I'm trying to keep a table of summary statistics for another table, > because I expected that generating the counts would take a while. > But I never expected the query to take hours, as it does. On > examination, I see that the query is not using an index, even > though the table has an index

Calculating Age

2001-11-15 Thread Zach Curtis
I am trying to calculate an approximate age from a birth month field (birthMonthVal TINYINT(3) UNSIGNED NOT NULL) and birth year field (birthYearVal SMALLINT(4) UNSIGNED NOT NULL). I do not have the day so an approximate age is OK (the results will be grouped in an aggregate format anyway). How d

Index not used with GROUP BY?

2001-11-15 Thread Keith C. Ivey
I'm trying to keep a table of summary statistics for another table, because I expected that generating the counts would take a while. But I never expected the query to take hours, as it does. On examination, I see that the query is not using an index, even though the table has an index on the th

Re: Problem with left join on not null datetime

2001-11-15 Thread Paul DuBois
At 12:57 PM -0700 11/15/01, Mark A Ohrenschall wrote: >I'm having a problem with Distrib 3.23.42 with the following query: > >select x1.*,x2.* from x1 left join x2 on x1.d1=x2.d2 where x2.d2 is null; > >I'm finding that a left join on datetime fields that do not allow nulls is not >working when I'

RE: nonstandard meaning of "KEY" in MySQL?

2001-11-15 Thread Carsten H. Pedersen
> > From: Bennett Haselton > > > > My databases textbook from college says that specifying an > > attribute as an > > "index" means that the data will be stored in such a way that > > lookups on > > that attribute are faster, and specifying an attribute as a > > "key" means > > that its values hav

Re: Dictionary

2001-11-15 Thread Colin Faber
Hi, load your dict file with LOAD DATA INFILE very easy; pretty quick ;-) If you don't want to mess with that, I just dumped my dictionary database. Here is the link to where you can download that dump file: http://brimstone.fpsn.net/~cfaber/mysql/dict.sql.gz Michael wrote: > > Does anyone

RE: INSERT with SELECT on same table

2001-11-15 Thread Carsten H. Pedersen
> insert-select on the same table is not allowed in MySQL. If I remember > right it isn't allowed in ANSI SQL either, supposedly because it > could lead > to infinite loops if implemented poorly. > > Jon Gardiner. Core SQL support does not require the DBMS to support it; enhanced SQL support a

Re: Easy SQL query??

2001-11-15 Thread Tore Van Grembergen
select max(storyID), storyCategoryID from newsStories where storyCategoryID > 0 group by storyCategoryID - Original Message - From: "Christopher Oson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 6:31 AM Subject: Easy SQL query?? > Good Day, All, > >

Problem with left join on not null datetime

2001-11-15 Thread Mark A Ohrenschall
I'm having a problem with Distrib 3.23.42 with the following query: select x1.*,x2.* from x1 left join x2 on x1.d1=x2.d2 where x2.d2 is null; I'm finding that a left join on datetime fields that do not allow nulls is not working when I'm trying to emulate a subselect to find non-matching values

Re: About huge numbers

2001-11-15 Thread Alfredo Cole
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El Jueves 15 Noviembre 2001 13:15, escribiste: > Gyulay Gabor wrote: > > The problem is that I need to store numbers with lot more > > than 16 decimal digits - e.g. 1234567890123456789012345.12 > > [...] > > > > The reason is why we need this that the

Is there any mySQL forums ?

2001-11-15 Thread Jason Rowski
Hi, Is there any mySQL forums ( discussion boards) where I can post my mySQL queries ? Thanks Jason __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com

Re:AUTO_INCREMENT with TYPE = INNODB

2001-11-15 Thread Heikki Tuuri
Joe, sorry, I did not know AUTO_INCREMENT=... clause does not work with InnoDB. I will look if it is easy to fix. A workaround is that you insert the first row which the auto-inc column value explicitly specified: INSERT INTO some_table VALUES (1500, 'joe'); Then InnoDB starts to increment fro

databases with underscores security problem

2001-11-15 Thread root
>Description: Whenever you create a database with an underscore in it and give a user rights to it, he is able to create other databases with whatever charater in place of the underscore. >How-To-Repeat: create database aa_bb; grant all privileges on aa_bb.

RE: SUB-SELECT

2001-11-15 Thread Christopher Book
they will be in mysql 4.1 -Original Message- From: Rosyna [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 2:11 PM To: Christopher Book; '[EMAIL PROTECTED]' Subject: Re: SUB-SELECT Anyone know if subselects will be available in the future? Ack, at 11/15/01, Christopher Book

Re: About huge numbers

2001-11-15 Thread Shankar Unni
Gyulay Gabor wrote: > The problem is that I need to store numbers with lot more > than 16 decimal digits - e.g. 1234567890123456789012345.12 > [...] > The reason is why we need this that there're several > currencies (like italian lire) which requires this kind of > precision. Excellent answer

LD_LIBRARY_PATH

2001-11-15 Thread Adam Kubiczek
HI! I set the LD_LIBRARY_PATH variable in my safe_mysqld file but I still get error 1124 ("no paths allowed for shared library") message while trying add new user function (by CREATE FUNCTION command). What do I do wrong? This is a part of my safe_mysqld file: trap '' 1 2

Re: DBMS that integrates well with object-oriented programming

2001-11-15 Thread Michael T. Babcock
On Thu, Nov 15, 2001 at 01:49:31AM -0800, Bennett Haselton wrote: > my $user = user.CreateFromTableRow("bennett"); > $user.sendReminderEmails(); > $user.emailaddress = '[EMAIL PROTECTED]'; You would lose some indexing features, etc., but you could easily use a language like Python that allows f

SUB-SELECT

2001-11-15 Thread Christopher Book
You can'd use sub-selects... you have to do it with a join. Chris >>>Can I make a query in mySQL like this? DELETE FROM table1 WHERE id NOT EXIST IN (SELECT id FROM table2) - Before posting, please check: http://www.mysql.

InnoDB Clarifications for InnoDB newbie

2001-11-15 Thread moka
Hi, I am using 4.0 and switching from MyISAM to InnoDB, so quite newbie on this: I have a couple of questions: 1) First, I read in the docs that the minimal thing to do is to add to /etc/my.cnf innodb_data_file_path=ibdata/ibdata1:2000M (although the ibdata file is some 67M in /var/lib/mysql)

Re: Japanese content in Mysql + PHP

2001-11-15 Thread Michael T. Babcock
On Thu, Nov 15, 2001 at 12:21:19PM -0300, Walter D. Funk wrote: > does anyone have a clue on how to manage japanese characters in a textfield > in MySQL & PHP > it works on varchar type fields , defining it as binary; but no way to make > it work in a text or blob field You have to think in

Keyword Searching using FULLTEXT

2001-11-15 Thread Brett Lytle
Hi, I have a mysql table I am searching using the FULLTEXT INDEX feature. However, the legacy database that I am working from had 90 different fields holding a keyword in each of them. Since the FULLTEXT INDEX only holds 15 different fields, I would much rather have the fields concatenated into o

RE: SUB-SELECT

2001-11-15 Thread Rick Emery
no -Original Message- From: Lyubomir Simich [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 12:04 PM To: [EMAIL PROTECTED] Subject: SUB-SELECT Importance: High Hello Can I make a query in mySQL like this? DELETE FROM table1 WHERE id NOT EXIST IN (SELECT id

SUB-SELECT

2001-11-15 Thread Lyubomir Simich
Hello Can I make a query in mySQL like this? DELETE FROM table1 WHERE id NOT EXIST IN (SELECT id FROM table2) -- WBR Lyubomir mailto:[EMAIL PROTECTED] - Before posting, please check:

Re: MySql support View?

2001-11-15 Thread Ken Kinder
I would advice against using temporary tables as views for performance reasons. On Thursday 15 November 2001 10:21 am, Alexei V. Alexandrov wrote: > > There is no support for views -- just hard-code your queries. > > It is olso possible to use temporary tables. > But still the support for views

Re: MySql support View?

2001-11-15 Thread Alexei V. Alexandrov
> There is no support for views -- just hard-code your queries. It is olso possible to use temporary tables. But still the support for views in mysql will be great :) > > On Thursday 15 November 2001 09:38 am, Alessio Torino wrote: > > hi all, > > can anyone explain me if mysql support view??? > >

Wheres the client part (not GUI) ?

2001-11-15 Thread Chrys
Hi, I installed Debian 2.2 to findout that MySQL 3.23 is not available (it's still in the testing section) so I went and got it from the download section on www.mysql.com and installed it, but where is the client (not GUI) part. I need the mysql, mysqladmin files, I can't even set a password righ

RE: INSERT with SELECT on same table

2001-11-15 Thread Jon Gardiner
insert-select on the same table is not allowed in MySQL. If I remember right it isn't allowed in ANSI SQL either, supposedly because it could lead to infinite loops if implemented poorly. Jon Gardiner. > -Original Message- > From: Votteler Marc [mailto:[EMAIL PROTECTED]] > Sent: Thursda

Re: MySql support View?

2001-11-15 Thread Ken Kinder
There is no support for views -- just hard-code your queries. On Thursday 15 November 2001 09:38 am, Alessio Torino wrote: > hi all, > can anyone explain me if mysql support view??? > if yes what is the syntax? > > thanks to all > > alessio > >

MySql support View?

2001-11-15 Thread Alessio Torino
hi all, can anyone explain me if mysql support view??? if yes what is the syntax? thanks to all alessio - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the

Re: Replacing a table safely...

2001-11-15 Thread Anthony R. J. Ball
Ahhh! Excellent. I didn't think my idea was quite right. Thanks. On Thu, Nov 15, 2001 at 09:32:38AM -0600, Paul DuBois wrote: > At 10:06 AM -0500 11/15/01, Anthony R. J. Ball wrote: > > MySQL 3.23.41 on Solaris > > > > > > Alright, I have a system where data comes in once... or maybe > >a f

Re: Replacing a table safely...

2001-11-15 Thread Paul DuBois
At 10:06 AM -0500 11/15/01, Anthony R. J. Ball wrote: > MySQL 3.23.41 on Solaris > > > Alright, I have a system where data comes in once... or maybe >a few times a day. I use this data to recreate a table, and then >I need to safely and quickly replace the old table. I was thinking >lock origin

Re: Newbie: Can't get GRANT to work

2001-11-15 Thread KEVIN ZEMBOWER
Thank you, Carl and Chris, for helping me with this problem. Something else must be happening, as I still can't log in: www:~ # mysql -u zope -p Enter password: ERROR 1045: Access denied for user: 'zope@localhost' (Using password: YES) www:~ # Mysqlaccess shows: www:~ # mysqlaccess -u zope -d

Japanese content in Mysql + PHP

2001-11-15 Thread Walter D. Funk
HI, does anyone have a clue on how to manage japanese characters in a textfield in MySQL & PHP it works on varchar type fields , defining it as binary; but no way to make it work in a text or blob field thanx - Before pos

RE: nonstandard meaning of "KEY" in MySQL?

2001-11-15 Thread Norman L. Smith
> From: Bennett Haselton > My databases textbook from college says that specifying an When I read my post I saw that I had made at least one obvious error. Please change: "An index is conceptually a container of keys arranged in such a way that each key in the index refers to a unique record.

Problem to compile Msql-Mysql-modules-1.2217

2001-11-15 Thread root
Hi guys, I get the module Msql-Mysql-modules-1.2217 to install DBD, but when is execute this command perl Makefile.PL i have a message that some library no found. The message - Which drivers do you want to insta

Replacing a table safely...

2001-11-15 Thread Anthony R. J. Ball
MySQL 3.23.41 on Solaris Alright, I have a system where data comes in once... or maybe a few times a day. I use this data to recreate a table, and then I need to safely and quickly replace the old table. I was thinking lock original table, drop it, and then rename the new table, but I wasn't

AUTO_INCREMENT with TYPE = INNODB

2001-11-15 Thread Joe Ellis
FYI: im using mysql 3.23.44 auto_increment doesn't seem to work with InnoDB. i've tried to create a table with: create table some_table ( uid INT UNSIGNED AUTO_INCREMENT NOT NULL DEFAULT 1500, user VARCHAR(100) NOT NULL, PRIMARY KEY (uid), UNIQUE KEY (uid) ) TYPE=INNODB; i've also

RE: nonstandard meaning of "KEY" in MySQL?

2001-11-15 Thread Norman L. Smith
> From: Bennett Haselton > > My databases textbook from college says that specifying an > attribute as an > "index" means that the data will be stored in such a way that > lookups on > that attribute are faster, and specifying an attribute as a > "key" means > that its values have to be unique.

Problem to compile Msql-Mysql-modules-1.2217

2001-11-15 Thread root
Hi guys, I get the module Msql-Mysql-modules-1.2217 to install DBD, but when is execute this command perl Makefile.PL i have a message that some library no found. The message - Which drivers do you want to instal

Whats the best way to export & retrieve BLOB fields?

2001-11-15 Thread M
Hello, I use BLOB fields to store pictures, it works nice, but problem arises when trying to backup/restore data, or else export BLOB fields to another database. I tried to use MysqlFront to export / import data, but it appears can't deal with BLOB, so it writes null character on TXT file for BLOB

Refix my opinion (Was MySQL with InnoDB is not reliable ? :()

2001-11-15 Thread Ady Wicaksono
After investigating my system, MySQL database server and application, i found that something wrong with my configuration, Thanks a lot for Mr. Heikki Tuuri for helping me. Now, i do really believe that innodb is faster that myISAM, and more reliable, just remember that you have to configu

Re: Problem: myisamchk: error: Checksum for key....

2001-11-15 Thread Michael Widenius
Hi! > "Sinisa" == Sinisa Milivojevic <[EMAIL PROTECTED]> writes: Sinisa> Grzegorz Paszka writes: >> On Mon, Nov 12, 2001 at 07:21:07PM +0200, Sinisa Milivojevic wrote: >> Another is as I wrote above. New database with content from >> data source is also broken. I know that is sounds strang

Re: how to make LOCATE & other functions case-insensitive?

2001-11-15 Thread Michael Widenius
Bennet> MySQL documentation says that CHAR and VARCHAR types are case-insensitive: Bennet> http://www.mysql.com/doc/C/H/CHAR.html Bennet> But I have a table with a column of type VARCHAR(255), and if I do a query Bennet> like Bennet> select * from user where LOCATE('Bennett', emailadd

Re: Row level locking in InnoDB

2001-11-15 Thread Heikki Tuuri
Kishor, >Hi, > >We are trying to implement row level locking in our appln. >we have a table Orderwe are locking the table using >SELECT * FROM Order FOR UPDATE; >but still another user is able to update this table. why? check with mysql>SHOW TABLE STATUS FROM yourdatabasename; that you

RE: Need A book for dynamic website

2001-11-15 Thread Kemp Randy-W18971
If you consider JSP, then JSP, Servlets, and MySQL by David Harms is excellent. -Original Message- From: Jeremy Zawodny [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:11 PM To: Webmaster Cc: [EMAIL PROTECTED] Subject: Re: Need A book for dynamic website On Wed, Nov 14,

Re: about Mysql_affected_rows

2001-11-15 Thread M
Paul DuBois wrote: > >Am I making wrong?, is there some function just to retrieve qty records > >selected in a query? > > mysql_num_rows() is intended for SELECT queries. Its argument should be the > result set identifier. Thanks , I checked again, and problem was exporting scripts from Windows

RE: dropping auto_increment PK/Index

2001-11-15 Thread Carsten H. Pedersen
> Hi, > > Is it possible to drop an auto_increment column index or primary key to > boost performance for bulk inserts? It seems mysql requires auto_increment > columns to be a key at all times. > > Here is the error message: > > Incorrect table definition; There can only be one auto column and it

Re: About huge numbers

2001-11-15 Thread Attila Soki
| > One more question is how to transfer these values through | > the MySQL C api ? try this site... http://www.mathtools.net/C++/Extra_precision_computation/ ati - Before posting, please check: http://www.mysql.com/manual.

Re: FROM clause order matters?

2001-11-15 Thread Sinisa Milivojevic
Hi! I have tested your test case of two SELECT's producing different outputs depending on the table ordering. Those two queries were a problem : -:- SELECT link.titel,link.id FROM link, ord as o1,ord AS o2 WHERE o1.ord like 'bethanias%' AND o2.ord like 'ung

Bad use of index when using IN

2001-11-15 Thread hg
>Description: Requests are much longer when using IN instead of =, even if the list specified after IN has only one element. >How-To-Repeat: create table tmp (a integer, b integer, c integer); create index tmp_id on tmp (a,b,c); insert into tmp values (1,2,3

Re: Performance problems

2001-11-15 Thread M. A. Alves
On Wed, 14 Nov 2001, Aaron Williams wrote: > At 3:54 PM + 11/14/01, M. A. Alves wrote: > >On Wed, 14 Nov 2001, Aaron Williams wrote: > >> . . . > >> I am not expert on innodb, or mysql either. I started playing with > >> those values after reading the performance guide on Innodb.com. > > >

Dictionary

2001-11-15 Thread Michael
Does anyone know where to get a dictionary that would be for sql. I was attempting to write up a few scripts for password stuff and thought it would be easy if someone knew where to obtain a dictionary in sql format. Any ideas would be helpful. Thanks --

Re: users@localhost problems

2001-11-15 Thread Sinisa Milivojevic
Alex Kirk writes: > > What version of MySQL are you using and is it our binary ?? > > It's 3.23.37. I built it from source on my OpenBSD-2.9 box (i386 > architecture). It didn't appear to have any trouble when I built it. > > > > > Also check the integrity in mysql database with CHECK TABLE.

Re: users@localhost problems

2001-11-15 Thread Alex Kirk
> What version of MySQL are you using and is it our binary ?? It's 3.23.37. I built it from source on my OpenBSD-2.9 box (i386 architecture). It didn't appear to have any trouble when I built it. > > Also check the integrity in mysql database with CHECK TABLE. mysql> check table user; +-

  1   2   >