Re: Limit characters in a long text

2006-03-22 Thread Bill Adams
http://dev.mysql.com/doc/refman/5.0/en/string-functions.html I recommend "LEFT( )". If you are looking to do it in PHP then this is the wrong email list. Good luck. b. CodeHeads wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, Have a question: I would like to limit the amou

Re: copy one field value to another

2006-03-21 Thread Bill Adams
UPDATE table SET field_a=field_b; b. Ravi Malghan wrote: Hi: is there a way to copy all field values from one field to another from the mysql prompt? Thanks Ravi __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: innodb in 4.1.18

2006-03-21 Thread Bill Adams
InnoDB always needs the shared tablespace because it puts its internal data dictionary and undo logs there. The .ibd files are not sufficient for InnoDB to operate. well, thats what I found before. But it doesn't explain why InnoDB does need a logfile even when all transactions are committ

Re: innodb in 4.1.18

2006-03-21 Thread Bill Adams
Marten Lehmann wrote: I had a lot of trouble today because the InnoDB integration in MySQL is lousy. I read the manual and worked with innodb_per_file_table. So when I shutdown mysql I should be able to delete ib_logfile0, ib_logfile1 and ibdata1, because all table-data should be stored in th

Upper Limit to max_join_size? (4.1.18)

2006-03-17 Thread Bill Adams
I am having a problem where I cannot seem to increase the max_join_size of 4.1.18 above a hard limit that is way too low for my use. Has anyone run into this and know of a solution that does not involve upgrading to 5.x.x? (That is presently not an option for another month or so.) I also want t

RE: 'GROUP BY' behavior

2005-10-28 Thread Bill Adams
Shawn, That's a very reasonable answer. Thanks for pointing me to the examples. This one addresses the second question: http://dev.mysql.com/doc/refman/4.1/en/example-maximum-column-group-row. html . There is no example answering both questions in one query. Regards, Bill __

'GROUP BY' behavior

2005-10-28 Thread Bill Adams
All, In the following query, some of the values are averaged over several rows, but some are not: SELECT hostname, volname, qtreename, round(avg(used/allocated*100),0), round(avg(used)), allocated, available FROM quota_entries WHERE date_sub(now(), interval 1 day) < time

RE: MySQL + Access + MyODBC + LARGE Tables

2002-02-22 Thread Bill Adams
.patch --- ../myodbc-3.51.orig/execute.c Fri Feb 22 10:55:35 2002 +++ execute.c Fri Feb 22 10:53:48 2002 @@ -72,7 +72,26 @@ query=tmp_buffer; } } - } + } + /* Terrible hack by Bill Adams */ + else if( + !my_casecmp(query, "select", 6) && +

RE: MySQL + Access + MyODBC + LARGE Tables

2002-02-15 Thread Bill Adams
Spoiler: Venu's Suggestion about "Dynamic Cursor" is the answer On Thu, 2002-02-14 at 20:34, Venu wrote: > > MyODBC, as compiled today, uses mysql_store_result to get records. This > > is fine for reasonably sized tables. However, if the table has millions > > of records, writing the resul

MySQL + Access + MyODBC + LARGE Tables

2002-02-14 Thread Bill Adams
Monty, Venu, I hope you read this... :) I really, really want to use MySQL as the database backend for my datawarehouse. Mind you I have played around with merge tables quite a bit and know that MySQL is more than up to the task. There are numerous (not necessarily cost related) reasons as to

Re: index questions 2nd request

2001-11-28 Thread Bill Adams
rick herbel wrote: > Question - Why is key len,ref null ?? Is it not using my key? Why does it > say type range > here and below it says type ref the table has 134000 records in it so it > should be using key. Have you run myisamchk -a on the table? (Or ANALYZE TABLE from the sql prompt?) b.

Re: error codes question

2001-11-28 Thread Bill Adams
Cindy wrote: > I tried checking for error codes in the documentation, but didn't find > anything particularly useful. > > I'm getting this: > mysql> load data infile '/export/home/Scratch/WordIndex.txt' into table wordindex >(aid, wid, wordform, start, length); > ERROR 1030: Got error 28 from ta

Re: Another basic question - index()

2001-11-28 Thread Bill Adams
Etienne Marcotte wrote: > What is the exact difference between > this > index(col1,col2). Create a single index on col1 and col2. > > that > index(col1),index(col2). Creat two indexes, one on col1, one on col2. > > and this > index(col1),index(col2),index(col1,col2). Do all three. Note that

Re: Should I use a MERGE table?

2001-11-15 Thread Bill Adams
Thu, Nov 15, 2001 at 02:01:44PM -0800, Bill Adams wrote: > > "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

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 Bill Adams
--- > Before posting, please check: >http://www.mysql.com/manual.php (the manual) >http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Tro

Re: Text qualifiers

2001-11-14 Thread Bill Adams
... Then if you want to move the data to a different db you can move either the .MYI, .MYD, and .frm to the right place OR you can use mysqldump. b. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Adams > Sent: Wednesday,

Re: Text qualifiers

2001-11-14 Thread Bill Adams
Won Lee wrote: > I have an slew of Access DBs that I need to port some of the info into a > MySQL DB. > I guess my main problem is my I have no idea in what format to export my > data from the Access DB. > In general I export it as a tab delimited file with no text qualifiers. > Unfortunately, mu

Re: Non-Buffered mysqld

2001-11-14 Thread Bill Adams
Jeremy Zawodny wrote: > On Wed, Nov 14, 2001 at 12:07:04PM -0800, Bill Adams wrote: > > The most important exception is the mysql_use_result attribute: This > > forces the driver to use mysql_use_result rather than > > mysql_store_result. The former is faster and less memo

Re: Non-Buffered mysqld

2001-11-14 Thread Bill Adams
Man I just cannot stop replying to myself... Bill Adams wrote: > Bill Adams wrote: > > > Rick Emery wrote: > > > > > If you use PHP, the answer is:mysql_unbuffered_query() > > > > Well, I get the delay if I query with perl DBI or enter the query direc

Re: Non-Buffered mysqld

2001-11-14 Thread Bill Adams
Bill Adams wrote: > Rick Emery wrote: > > > If you use PHP, the answer is:mysql_unbuffered_query() > > Well, I get the delay if I query with perl DBI or enter the query directly in > the mysql client. perl DBI + Informix does not buffer so I know that it is > not

Re: Non-Buffered mysqld

2001-11-14 Thread Bill Adams
ile the query is running w/o any results being returned yet, the process list shows "sending data". b. > > > -Original Message----- > From: Bill Adams [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 11:38 AM > To: Mysql List > Subject: Non-Bu

Re: myisamchk -a + indexes + hidden...?

2001-11-14 Thread Bill Adams
n/rm -fv $TMP if [ $? != 0 ]; then echo "Could not remove temp file?" exit fi done done > > > Or I could be completely off base. It wouldn't > be the first time. :-) > > Jon Gardiner. > > > -Original Message- > >

Re: Alphabetizing book titles

2001-11-14 Thread Bill Adams
orked like a charm, yet MySQL doesn't seem to accept that. Any > > > solutions or advice? > > > > > > -- > > > Ian Evans > > > Digital Hit Entertainment > > > http://www.digitalhit.com > > > > > > > > > > -

Non-Buffered mysqld

2001-11-14 Thread Bill Adams
MySQL 4.0 Is there a way to prevent mysql(d) from buffering the output ala 'mysqldump -q'? The specific case I am thinking of is a simple SELECT ... FROM ... WHERE (with no ORDER BY, no GROUP BY, etc.). In this case there is no reason [that I can think of] why mysqld cannot start returning reco

Re: mysqld shutdown

2001-11-14 Thread Bill Adams
> > PS: If I run the mysqladmin shutdown command, then check "top" in > another console, both the daemon and the mysqladmin command continue to > run indefinitely -- and I have waited an hour to see if it's just slow. > That doesn't seem to be the case. > This seems like an OS bug to me. All o

Re: mysqld shutdown

2001-11-14 Thread Bill Adams
Erik Price wrote: > All, > > Well, I solved the mystery of the missing Unix socket. It needs to be > defined at the time the daemon is started with: > --socket=/path/to/socket. Well, at least in my installation it does. > > But now I'm having the OPPOSITE problem -- shutting down the server >

Re: Search Engines

2001-11-13 Thread Bill Adams
"Karl J. Stubsjoen" wrote: > Hello, > > I need to create a search engine out of a few MySQL tables I should > say: I need to search MySQL records like a search engin might. However, my > first go ended up as a complete failure because it is highly un-optimized to > search for (as an exampl

Re: Show query page by page

2001-11-13 Thread Bill Adams
Auri Net SAC wrote: > Hi, > > I have a query result with 50 register and i want to show them in 5 pages, > every page show 10 register. LIMIT (see the manual) will help you. b. mysql - Before posting, please check: http:/

Re: Same table aliased twice causes infinite loop

2001-11-13 Thread Bill Adams
Sinisa Milivojevic wrote: > Nick de Voil writes: > > I am running MySQL 3.23 on Windows 2000. > > > > I have a SQL statement which looks fine to me, although it does reference > > the same table twice. > > > > Here it is: > > > > SELECT DISTINCT u.inserted_usr_id, g.inserted_ugp_id FROM raw_users

Re: Timezone offset question

2001-11-13 Thread Bill Adams
Jeremy Wilson wrote: > At 01:07 PM 11/13/01 -0600, Gerald Clark wrote: > >Start the server with the desired TZ set. > > That's all fine and good, but difficult switch back and forth every 10 > minutes while that query runs for local data, then for the remote data. The way I deal with it (and I d

Re: table corrupted after an error free load

2001-11-13 Thread Bill Adams
Riccardo Cohen wrote: > Hi, > Sorry to disturb, but I cannot find any answer in online doc and web archive. > > >Description: > I insert 34000 rows in a simple table with all text fields, and myisamchk >tells the table is corrupted, while a select into outfile does not give any error >c

myisamchk -a + indexes + hidden...?

2001-11-13 Thread Bill Adams
otal Time: 31 seconds (18251 rows, 588 rows/sec) Shutdown MySQL Set key buffer size to 0 start mysql Time to start getting results: 10 seconds. Total Time: 29 seconds (18251 rows, 629 rows/sec) myisamchk -a Time to start getting results: 145 seconds. Total Time: 164 seconds (18251 rows, 1

Re: creating a Unix socket

2001-11-12 Thread Bill Adams
--- > Before posting, please check: >http://www.mysql.com/manual.php (the manual) >http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Tr

Optimizing by drop then create an index

2001-11-12 Thread Bill Adams
The MySQL manual http://www.mysql.com/documentation/mysql/bychapter/manual_MySQL_Optimisation.html#MySQL_indexes states "All MySQL indexes (PRIMARY, UNIQUE, and INDEX) are stored in B-trees. Strings are automatically prefix- and end-space compressed.". Other RDBMSes out there state in the their

Re: Sub Count -- Correction

2001-11-12 Thread Bill Adams
he manual) >http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- Bill Adams TriQuint Semiconduc

Re: Mysqladmin help please help

2001-11-12 Thread Bill Adams
"Wells, Kenneth L" wrote: > Please help > > I'm at the end of my rope... > > I just ran a script to create databases in my SQl server, it runs fine > > When it completes it says remember to set a password for the mysql root > user! > > I entered this? > > /usr/local/mysql/bin/mysqladmin -u ro

Re: how to move db

2001-11-12 Thread Bill Adams
[EMAIL PROTECTED] wrote: > I'm switching over to a bigger better faster server. My old server is running > version 3.23.22-6 mysql on RH and I need to move all the db's to my new box > using 3.23.41 installed on RH7.2. So do I just simply move all of the db > directories from /var/lib/mysql from

Re: Losing data

2001-11-12 Thread Bill Adams
(Sorry for the double email Simon, forgot to switch the email to text...) Simon Windsor wrote: > Hi > > The OS is Redhat 7.1 on a dual processor Pentium box, running MySQL 3.23.36, > the standard RedHat version. > > The machine is running two databases, one is a full archive while the other > on

Re: Losing data

2001-11-12 Thread Bill Adams
Simon Windsor wrote: > Hi > > The OS is Redhat 7.1 on a dual processor Pentium box, running MySQL 3.23.36, > the standard RedHat version. > > The machine is running two databases, one is a full archive while the other > ones holds current data. The same five records are unavailable using SQL in >

Re: Can't stop mysql / possible bug?

2001-11-12 Thread Bill Adams
[EMAIL PROTECTED] wrote: > I changed the script and now all is well. However I have two concerns: > 1) Paranoid about the password being in this script. Is there a way around this. chown root:root /etc/rc.d/init.d/mysqld chmod go-rx /etc/rc.d/init.d/mysqld > 2) Since I had to change the script

Re: primary key based on unique value for two columns

2001-11-12 Thread Bill Adams
Brendin wrote: > I would like to have a table that has a primary key defined on a > combination of two columns in the table. In other words a unique key > based upon the values in two columns. > > I don't think I am able to do this in mysql. I think you can only have > a primary key on one colu

Re: Can't stop mysql

2001-11-12 Thread Bill Adams
[EMAIL PROTECTED] wrote: > The only reference to mysqladmin is for the reload at the end. I think this > whole thing started after doing the mysql_install_db and then creating the root > password - but it may be a coincidence. > > Any and all help is welcome as to why /etc/init.d/mysqld stop fail

Re: Can't stop mysql

2001-11-12 Thread Bill Adams
[EMAIL PROTECTED] wrote: > I'll agree with you but - when I shutdown my linux box or restart it, it tries > to stop the mysql server and it can't. The command /etc/init.d/mysqld stop > should work and it isn't. The question is why can't I stop the mysql server with > this command. As a matter of

Re: Losing data

2001-11-12 Thread Bill Adams
Simon Windsor wrote: > Hi > > I appear to have lost several records, but on doing mysqldump the > records are there. > > I have tried optimize|repair and the data hasn't re-appeared. > > Any ideas ? Not with this level of information. (Try including some sql, what you are trying to match, etc.

Re: Fulltext search variable

2001-11-12 Thread Bill Adams
Craig Issod wrote: > >Craig Issod wrote: > > > >> Using 3.23.32 on FreeBsd 3.2 > >> > >> Have gotten a sample fulltext search going, but cannot figure out how > >> to shorten the word length to 2 o3 3, from the default 4. > >> > > > Yes, I've read the docs, and tried the following: > >> Sett

Re: Can't stop mysql

2001-11-12 Thread Bill Adams
[EMAIL PROTECTED] wrote: > Howdy, > I'm running version 3.23.41 on RH7.2. For the life of me I can't figure out why > I can't stop mysqld. Linuxconf was where I first noticed this where mysqld would > not respond to the stop request. I then tried to reboot the box and watched the > shutdown proce

Re: Fulltext search variable

2001-11-12 Thread Bill Adams
Craig Issod wrote: > Using 3.23.32 on FreeBsd 3.2 > > Have gotten a sample fulltext search going, but cannot figure out how > to shorten the word length to 2 o3 3, from the default 4. > > Yes, I've read the docs, and tried the following: > Setting variable using mysqld on command line...it won't

Re: Unique and case-insensitivity with indexes

2001-11-12 Thread Bill Adams
Fulko Hew wrote: > I am using mySQL 3.22.4a-beta > yes, I know its old :-( > > I have just stumbled across a problem with how it > treats 'uniqueness' in table contents. > > I have a table with a column defined as: > > create table test (name varchar(80) not null); > alter table test ADD UNIQ

Re: Faking MS Access on MySQL linux box

2001-11-09 Thread Bill Adams
BC is on the *nix. b. mysql > > > mweb > > On Fri, Nov 09, 2001 15:22:11 at 03:22:11PM -0800, Bill Adams wrote: > > mweb wrote: > > > > > >mweb, > > > > To make sure I understand you correctly, you want to create > > >

Re: Faking MS Access on MySQL linux box

2001-11-09 Thread Bill Adams
mweb wrote: > >mweb, > > To make sure I understand you correctly, you want to create > >and > >test your PHP/MySQL database on your Linux/Apache box, then upload it > >to > >your ISP server that is running PHP/Access? I'm sorry but that's not > >going > >to work. You can't transparently s

Re: Newbie MySQL Install Question

2001-11-09 Thread Bill Adams
into the grant tables, as it were, you need to get into the mysql db: 'mysql -u root -pyour?new.password mysql'. Note that there is NO space between the '-p' and the password. b. > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROT

Re: Newbie MySQL Install Question

2001-11-09 Thread Bill Adams
Dan Tappin wrote: > I tried that but it came back with a 'mysqld is running already' error. Actually your command is wrong. If you never set the password before it should be (without the -p): mysqladmin -u root password your?new.password note that 'password' IS the command. > Side Question:

Re: Newbie MySQL Install Question

2001-11-09 Thread Bill Adams
Dan Tappin wrote: > I have some experience with MySQL on MacOS X but that was with a pretty GUI > installer. > > I am now trying to get MySQL installed on Redhat 7.0. I download the client > and server versions and followed the install procedures. > > The problem I am having is with mysqladmin.

Re: show processlist

2001-11-09 Thread Bill Adams
Stuart Scamman wrote: > How do I show processlist from a specific computer, not everything ? > Thanks. mysqladmin processlist |grep 'the.host.you.care.about' -- Bill Adams TriQuint Semiconductor - Before

Re: Large MySQL setup

2001-11-09 Thread Bill Adams
Aaron Williams wrote: > The tables run upwards of around 13-15 gigs each. The nature of the > data forces me to search the entire contents (looking for unique > values) around 3000 times a day. The server is running Solaris 2.8, Do you have an index on the columns you are querying for unique val

Re: mysql corruption tables in production environment (Urgent)

2001-11-09 Thread Bill Adams
Rui Barreiros wrote: > Hi, > > We have several mysql server in production evironment, and most of them > when they have millions of rows, they all get MyIsam tables corrupted. > > One of the servers has ext2 filesystem with scsi harddrives, after the > myisamchk -r it repairs the table, but after

Re: String composite key vs auto_increment

2001-11-08 Thread Bill Adams
Christian Stromberger wrote: > Disclaimer: SQL/database newbie here. > > Let's say I have a table of authors with columns for last name and first > name. Is there any general guideline re using a separate integer for the > primary key as opposed to a combination of the last and first names as th

Re: HOW do I return the results of a count to a variable

2001-10-31 Thread Bill Adams
Paul DuBois wrote: > [snip] > > >Of all the methods suggested I like the look of the one above and will > >try that one first. > > > >$count = $sth->fetchrow_array(); > > > >$rows = $sth->rows() > > Note that use of rows() to get the row count for a SELECT is deprecated > in the DBI docs, which s

Re: key question

2001-10-31 Thread Bill Adams
Federico Schwindt wrote: > hi, > > i'm not sure if this belongs here, but i cannot seem to find the > answer anywhere else. > first, what's the difference between: > > PRIMARY KEY (key1, key2) > PRIMARY KEY (key1), KEY (key2) The first line creates a single, unique key on the columns key

Re: Left join w/o on or using join_condition

2001-10-31 Thread Bill Adams
tbl1 T2 WHERE T1.a=T2.a AND T1.c='R' AND T2.c='T'; My real query is much worse than this. Any suggestions? --Bill > > > -Original Message- > From: Bill Adams [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 31, 2001 12:21 PM > To: Mysql List >

Re: Alternative for UNION

2001-10-31 Thread Bill Adams
Harpreet wrote: > I had a view on sqlserver which i am trying to convert to work with mysql. > It uses a union which i believe does not work with mysql. What is another > alternative for union. > > Sql with union: > > select a.asset_id,a.material_id,b.material_id as parent_material_id from > lib_

Left join w/o on or using join_condition

2001-10-31 Thread Bill Adams
My mind is not working with me this morning... According to the manual about join syntax: http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#JOIN One should be able to do a LEFT JOIN without a join_condition, eg. an "ON" or a "USING": > table_reference LEFT [OUTER] JOIN tab

Re: PHP/MySQL Problem

2001-10-30 Thread Bill Adams
> > > Before posting, please check: > >http://www.mysql.com/manual.php (the > manual) > >http://lists.mysql.com/ (the list > archive) > > > > To request this thread, e-mail > <[EMAIL PROTECTED]> > > To unsubs

Re: busy site w/ high cpu usage on mysql

2001-10-29 Thread Bill Adams
alexus wrote: > Hello > > I have a very busy site (www site) w/ a lot of hits > > my site is very heavily integrated w/ mysql > > and when i do top it shows me like over 80% of cpu > > even though i have dual p3 850mhz w/ 1.5 gig of ram > > any ideas what to do about it so it'll drop down? Have

Re: Optimizing query (2nd attempt)

2001-10-29 Thread Bill Adams
- > -+---+-+-+-+--- > > --+----+ > 4 rows in set (0.00 sec) > > It's just simply not using the index on users.. > Did I miss something? > > David > > -- > -- Original Message - > From: "Bi

Re: Optimizing query (2nd attempt)

2001-10-29 Thread Bill Adams
; > > > > > David > > > > > > > > > > > > > > > - > > > Before posting, please check: > > >http://www.mysql.com/manual.php (the manual) > > &

Re: Generate random, unique value...

2001-10-26 Thread Bill Adams
Kyle Hayes wrote: > On Friday 26 October 2001 10:00, Dana Holt wrote: > > Can I automatically generate a random, unique, integer value in a certain > > range when inserting data into a column using SQL? > > > > If so, how? > > Random is easy. Just find a good RNG (random number generator) somewh

Re: Autoincrement question

2001-10-26 Thread Bill Adams
Bill Adams wrote: > Demirchyan Oganes-AOD098 wrote: > > > Hello everyone, > > > > I wanted to ask you 2 questions. > > > > 1. I have a table that has 2 columns, user_id, > user_name. > > User_id has been setup to a default value 1000 > and t

Re: Autoincrement question

2001-10-26 Thread Bill Adams
Demirchyan Oganes-AOD098 wrote: > Hello everyone, > > I wanted to ask you 2 questions. > > 1. I have a table that has 2 columns, user_id, user_name. > User_id has been setup to a default value 1000 and to AUTO_INCREMENT. > > When I insert a record, Insert Into User_Table (user_id,user_name) Value

Re: copying database from linux server to NT server

2001-10-25 Thread Bill Adams
[EMAIL PROTECTED] wrote: > Hi. I've been reading for several hours on this one. I've tried everything > I've read. I'm either doing something really stupid or I've missed the > point completely. > > I have a db on a linux server. I used phpAdmin to create a dump file > (pe.sql) and retrieved it o

Re: MySQL problem with Traffic and Updates

2001-10-25 Thread Bill Adams
jim barchuk wrote: > Hi Ryan! > > > Today after my server got a real traffic hit for the first time since I > > installed PhpAdsNew (a MySQL/PHP Ad software), MySQL was crashed. Here's how > > it happened: watching the "top" load levels, I saw it slow creep up about to > > 3, then rockets quickly

Re: Request for information (MS Access & MySQL)

2001-10-25 Thread Bill Adams
Rob Vonsee wrote: > Dear developer, > > In the past several years, we have developed a database application in > MicroSoft's Access '97. > With our user base growing, we're encountering more and more limitations in > the Microsoft development environment, especially in the stability and > number

Re: query memory problem

2001-10-25 Thread Bill Adams
Elm Gysel wrote: >/* perform query */ >query.execute(nr, Date.str(), Op, Hi, Lo, Cl, Vo); > The problem is in the above line I think. If I comment it out the memory > usage doesn't explode. > I get around 1.5MB more mem usage each time I insert 2000 records. > I have no clue what

Re: FW: pls help for index problem

2001-10-24 Thread Bill Adams
u [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 24, 2001 9:42 AM > To: 'Bill Adams' > Subject: RE: pls help for index problem > > Thanks yr promptly reply !! > > It seems no any change(improvement) by running explain again after erase > quotes. I also ran

Re: Connecting to a remote database.

2001-10-24 Thread Bill Adams
Jason Whitlow wrote: > Sorry for for the dumb question buuut. > > I have been connecting to a database on my localhost using perl's DBI.pm > > This is how I currently do it. > > use DBI; > $data = "databasename"; > $driver = "DBI:mysql"; > my $dbh = DBI->connect("$driver:database=$data", "use

Re: Sessions

2001-10-24 Thread Bill Adams
"Ing. Gustavo Edelstein" wrote: > Thanks for your answer, but I need to know the names of the users currently > logged in the database. > Regards, SHOW will do that as will 'mysqladmin processlist'. http://www.mysql.com/doc/S/H/SHOW_PROCESSLIST.html b. --

Re: Install help

2001-10-24 Thread Bill Adams
Tom Hicks wrote: > I am thinking of running MySQL on my box for some work with PHP. I am > concerned about the mods to the directory structure. I can't seem to > find a list for mods it will make on RedHat7.1 > Could you please help me out with that? Not sure what you mean by 'mod', but you can

Re: forgot manager password

2001-10-24 Thread Bill Adams
"Oscar Castaneda V." wrote: > Hi, > > i ran into a pretty boxy problem this morning, as I tried to login as mysql manager > with > #mysql -u root -p > # (i forgot the password) > > its either this, or the other administrator, whom i cannot contact right now, >changed the password without my know

Re: Table Crashes Constantly on prod server!!

2001-10-24 Thread Bill Adams
Michael Blood wrote: > I am running 3.23.40 on a dual pentium III 800 with 1 GB Ram. > > I have been getting an table handler returns error 127 error > > If I fix the table with myisamchk -r or -o it will work for a while and then > I will get the same error again. Try dumping and restroing the

Re: concatenating fields

2001-10-24 Thread Bill Adams
Harpreet wrote: > I am using concat in my sql and it runs fine on mysql client. But when use > din php it gives me an error: > Supplied argument is not a valid MySQL result resource in > /var/www/html/scripts/cfg_code_delete.php on line < > > $ssql="select concat(category, "-", code) as fill_colu

Re: Printing

2001-10-24 Thread Bill Adams
"Wix,Christian XCW" wrote: > Hi! > > How print the result from a query on my printer? I'm using the command line > on linux. > Lets say that I want to print everything from the table "Mercedes" in the > database "Cars". Pipes. > How do I adjust the lenght of the lines? man nenscript Basically

Re: mysql 4.0

2001-10-24 Thread Bill Adams
Sommai Fongnamthip wrote: > Hi, > If I install mysql-4.0 to upgrade in mysql-3.23.xx with old setting value > (use myisam type), Could I need to change or re-load my old db? AFAIK, If you are keeping the table type, you can just copy the .MYI, .MYD, and .frm files to the new location. O

Re: Length limit of 500 on primary keys?

2001-10-23 Thread Bill Adams
Steve Meyers wrote: > > > At a previous job, we tested a 32-bit hash function by running it > > > against hundreds of thousands of unique URL's stored in our > > > database. We found one collision. A 64-bit hash is billions of > > > times better (4 billion, to be exact). > > > > Good to know.

Re: Rotating error log?

2001-10-23 Thread Bill Adams
Rafal Jank wrote: > Hi! > Is there a possibility to rotate mysql error log without stoping the server? I was waiting for someone else to respond. But some possibilities are 1: use the apache program 'rotatelog'. Not sure how you would do this. In Linux you can rename the file while the server

Re: SQL String max length ?

2001-10-23 Thread Bill Adams
TOMASSONI Dominique wrote: > I stored a sql string in a file and when I launch it, it doesn't perform > because the string is truncated before the end. > > Does mysql limit the length of an sql string ? Not that I have ever run into. But ODBC does. What command are you running? E.g. on linux

Re: Best Table And Index Structure

2001-10-23 Thread Bill Adams
Martyn Wendon wrote: > Hi, > > I'm new to MySQL and indeed SQL in general (coming from an MS Access and > Flat Text File background). > > I have data in text form at the moment of the following fields: > > ID (Auto increment) > ARTIST (Text up to 255 characters long) > DESCRIPTION (Text up to 255

Re: Length of columns and attachents as a column...

2001-10-23 Thread Bill Adams
[EMAIL PROTECTED] wrote: > Hi all, > Is it possible to have an external file as an attachment in MySQL? > An example would be a .gif, .doc, .ppt, .ram etc. > If there is no way directly have MySQL table to store an attachment, is there > any work around? > Any guidance will be appreciated. To st

Re: pls help for index problem

2001-10-23 Thread Bill Adams
kmlau wrote: > I encountered a problem about indexing. I want to add index on timerecord > field in table gw (shown as below) to speed up query relating with time. > However, I use explain command (explain select * from gw where timerecord = > '010902') to analyze the performace. As a resul

Re: Fw: Can't Connect To MySQL

2001-10-23 Thread Bill Adams
"M. Alageswaran" wrote: > Thanks man, I tried that but still no hope.. > when I did a ps -ef | grep mysqld there is nothing in my output! -ef is for HP-UX (I think). For Linux you want 'ps ax |grep mysqld' note there is no dash in front of the ax. b.

[OT] Re: Antigen found VBS/VBSWG_based@mm.Worm (Norman) virus

2001-10-22 Thread Bill Adams
Carl Troein wrote: > Bill Adams writes: > > > > This is odd. The only machine in cricalix.net (which I own/run) is a > > > linux box. Who has a badly configured server out there? > > Even more odd is that the 'from' address I saw was [EMAIL PROTECT

Re: Could not load module libz.a(shr.o) for run scripts/mysql_install_db

2001-10-22 Thread Bill Adams
[EMAIL PROTECTED] wrote: > >Description: >The following is the error message: > #scripts/mysql_install_db > Could not load program ./bin/my_print_defaults: > Dependent module libz.a(shr.o) could not be loaded. > Could not load module libz.a(shr.o). > Error was: No such file or directo

Re: Frequently corrupt tables

2001-10-22 Thread Bill Adams
I realized that I was using an older version of libmysqlclient. So I recompiled and linked the msql-mysql-modules against mysql-3.23.41... Bill Adams wrote: > o If there is no call to 'flush tables', even a small data load will cause > myisamcheck to report "warning:

Re: Antigen found VBS/VBSWG_based@mm.Worm (Norman) virus

2001-10-22 Thread Bill Adams
Duncan Hill wrote: > On 22 Oct 2001 [EMAIL PROTECTED] wrote: > > > Antigen for Exchange found Unknown infected with > > [EMAIL PROTECTED] (Norman) virus. The file is currently > > Removed. The message, "SV: Here you have, ;o)", was sent from Pål > > Wester and was discovered in Public Folders\Ma

Re: Frequently corrupt tables

2001-10-19 Thread Bill Adams
Bill Adams wrote: > Spoiler: You may be right about the bad libs... [snip] > *** OMG *** > But haha I cannot believe this, I was just looking at the libraries linked by > mysqld with ldd and it is using the informix libpthread.so. Hmm, crap. *me > slaps head* Small Update: o

Re: mysql.sock

2001-10-19 Thread Bill Adams
cedric wrote: > /usr/bin/mysql start returns the error message: > Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock. > It was there, but now it's not. That is the wrong command, use either safe_mysqld or mysqld_safe. Or possibly /etc/rc.d/init.d/mysql start > Also,

Re: Mysql server doesn't run

2001-10-19 Thread Bill Adams
Mark Coldheart wrote: > I've a little bit problem about running mysqld > server. I've run "/etc/rc.d/init.d/mysqld start" it > will appear "mysqld dead but subsys locked". But if i > stop the service, it will fail. It is also happened > when i kill the service. Mm, redhat question. Make sur

Re: join tables on UPDATE

2001-10-19 Thread Bill Adams
JohnHomer wrote: > can mysql allow table joins when using UPDATE query? like The manual answers these questions. > update tranfer left join transferdetails > on transfer.docno = transferdetails.docno > set transferdetails.docno = concat('SJ',transferdetails.DocNo) > where > transferdetails.docn

Re: Frequently corrupt tables

2001-10-19 Thread Bill Adams
Spoiler: You may be right about the bad libs... Kyle Hayes wrote: > On Thursday 18 October 2001 12:31, Bill Adams wrote: > Hmm, 2.2 doesn't do SMP really well. However, its drawbacks are limited to > underuse of the CPUs rather than any kind of corruption or other issue. You &g

Re: Frequently corrupt tables

2001-10-18 Thread Bill Adams
Kyle Hayes wrote: > > I found yesterday (at the advice of this list) that adding an occasional > > call to "FLUSH TABLES" fixed my corruption problems. I would do that right > > before the disconnect or program exit. > > What kernel are you using? Some of the 2.4 series have... odd... behavior

  1   2   >