Re: Scanning Directory/Inserting Image Links to DB

2002-04-14 Thread Michael A Chase
From: "Will K." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, April 14, 2002 23:21 Subject: Scanning Directory/Inserting Image Links to DB > Can someone recommend a Perl script/technique that will scan a Unix > directory of image/text files, and then insert the l

Scanning Directory/Inserting Image Links to DB

2002-04-14 Thread Will K.
Greets Folks, Can someone recommend a Perl script/technique that will scan a Unix directory of image/text files, and then insert the links into a MySQL database? I used to have a good one, but it got misplaced... Doh! Thanks, Will

RE: Difference between MySQL and MySQL Max

2002-04-14 Thread Matthew Walker
MySQL is the 'standard' MySQL. MySQL-Max include high end features, for big systems. Things like InnoDB, for one. Stuff that the average user might not want. So, essentially, it just tells you what features are in that release. Matthew Walker Senior Software Engineer ePliant Marketing -Or

Re: How does DISTINCT really work ?

2002-04-14 Thread Heikki Tuuri
Hi! - Original Message - From: "SDiZ (UHome)" <[EMAIL PROTECTED]> To: "Heikki Tuuri" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, April 15, 2002 7:51 AM Subject: Re: How does DISTINCT really work ? > I think every thing are documented. > > http://www.mysql.com/doc/B/u/Bugs.htm

RE: MySQL counter for HIGH traffic site

2002-04-14 Thread Matthew Walker
Actually, with a pconnect, there would be a trade off. Since it uses a shared connection, the last insert ID could change between the update and calling the api function. But as I said, it doesn't matter for the counter. Matthew Walker Senior Software Engineer ePliant Marketing -Original M

hello, i need help, about mysql MISSING charsets

2002-04-14 Thread Xuefer
mysql: mysql-4.01 binary package windows also the same in linux source/binary package when SHOW VARIABLES got: - character_set gbk character_sets latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew w

Multiple updates

2002-04-14 Thread Mark Dale
I'm now trying to UPDATE the three records with one query. Once the data is INSERTED into the db with this - insert into mytable (id,name,job_number,job_date) values ('1','Mark','AA1','2002-04-15'), ('2','Mark','AA2','2002-04-16'), ('3','Mark','AA3','2002-04-17'); a form page is displayed wher

regarding mysql sever startup...

2002-04-14 Thread Chetan Lavti
hi, I am starting my Mysql Serevr like this.. > cd /bin/sbin > mysqld-max --user=root Is there any another method which doesn't require starting the server by Root..(root privileges) please, help me out in this direction. Thanks and regards, Chetan Lavti -

Load Data Infile: select fields to import (or not import)

2002-04-14 Thread Daniel Kasak
Hi All! And Hello MySQL spam filter. SQL. Query. How to I tell the 'load data infile' statement to ignore certain fields, eg the first 10 fields of each record? Thanks! Dan -- Daniel Kasak IT Developer * NUS Consulting Group* Level 18, 168 Walker Street North Sydney, NSW, Australia 2060 T: (+

How to find out where is the installation directory

2002-04-14 Thread Jayakumar Duraisamy
Hello, I am using Red Hat 7.1. When i use rpm query, it says that I have My SQL 3.23 Server and Client installed. Where can i find the installation directory. I am planning to use 4.0.1. How useful it is to uninstall 3.23 and install 4.0.1 for development purpose. Thanks -Jayakumar ---

Re: Multiple Inserts

2002-04-14 Thread Benjamin Pflugmann
Hi. Just use INSERT INTO mytable (id,name,job_number,job_date) VALUES ('1','Mark','AA1','2002-04-15'), ('2','Mark','AA2','2002-04-16'), ('3','Mark','AA3','2002-04-17') [and so on...] Also see http://www.mysql.com/doc/I/N/INSERT.html Bye, Benjamin. On Sun, Apr 14, 2002 at 11:10:22PM

Difference between MySQL and MySQL Max

2002-04-14 Thread Jayakumar Duraisamy
Hello, I am new to MySQL. Can anyone tell me what is the difference between MySQL and MySQL Max. Thanks -Jayakumar - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

Re: MySQL counter for HIGH traffic site

2002-04-14 Thread Benjamin Pflugmann
Hi. There is a one-query method to do that and it is even explicitly documented: http://www.mysql.com/doc/M/i/Miscellaneous_functions.html (under LAST_INSERT_ID([expr])). This requires an UPDATE and using a client API function like mysql_insert_id(). No locks needed and the operation is atomic (i

Re: Multiple Inserts

2002-04-14 Thread Mark Dale
Many thanks for that. cheers Mark On Mon, 15 Apr 2002, Kittiphum Worachat wrote: > Hi. > > insert into mytable (id,name,job_number,job_date) values > ('1','Mark','AA1','2002-04-15'),('2','Mark','AA2','2002-04-16'),('3','Mark', > 'AA3','2002-04-17'), > > Kittiphum Worachat,M.T. > www.ha

Re: SV: Trouble compiling 3.23.49 on Redhat 6.2

2002-04-14 Thread Simon Byrnand
At 05:14 15/04/02 +0200, Carsten Gehling wrote: >> Fra: Simon Byrnand [mailto:[EMAIL PROTECTED]] >> Sendt: 15. april 2002 04:00 > >> I'm currently running MySQL 3.23.40 on Redhat 6.2 and its working nicely. >> It was installed from binary RPM's. >> >> I'm not trying to update to 3.23.49, but beca

Re: MySQL counter for HIGH traffic site

2002-04-14 Thread Jason Yates
On Sun, 2002-04-14 at 22:17, Craig Westerman wrote: > I'm needing counter for site that receives 80 to 120 hits a minute at peak > load. Many I > have tried cause excessive server load and need to be deactivated or they > lose data and return to zero without warning. All tried so far have been > w

Re: Multiple Inserts

2002-04-14 Thread Kittiphum Worachat
Hi. insert into mytable (id,name,job_number,job_date) values ('1','Mark','AA1','2002-04-15'),('2','Mark','AA2','2002-04-16'),('3','Mark', 'AA3','2002-04-17'), Kittiphum Worachat,M.T. www.hatyailab.com > > Does anyone know if it's possible to insert mutilple records into 1 table > in one q

SV: Trouble compiling 3.23.49 on Redhat 6.2

2002-04-14 Thread Carsten Gehling
> Fra: Simon Byrnand [mailto:[EMAIL PROTECTED]] > Sendt: 15. april 2002 04:00 > I'm currently running MySQL 3.23.40 on Redhat 6.2 and its working nicely. > It was installed from binary RPM's. > > I'm not trying to update to 3.23.49, but because the binary RPM's > available > require GLIBC 2.2 (Re

Re: MySQL counter for HIGH traffic site

2002-04-14 Thread Scott Gifford
"Craig Westerman" <[EMAIL PROTECTED]> writes: > I'm needing counter for site that receives 80 to 120 hits a minute > at peak load. Many I have tried cause excessive server load and need > to be deactivated or they lose data and return to zero without > warning. All tried so far have been written

Multiple Inserts

2002-04-14 Thread Mark Dale
Does anyone know if it's possible to insert mutilple records into 1 table in one query? Something like - insert into mytable (id,name,job_number,job_date) values ('1','Mark','AA1','2002-04-15') insert into mytable (id,name,job_number,job_date) values ('2','Mark','AA2','2002-04-16') insert int

RE: MySQL counter for HIGH traffic site

2002-04-14 Thread Matthew Walker
I'd recomment PHP4 using pconnect and MySQL. And I'd /not/ use locking on the table. Run a query to update the row, then run a select to grab the current total. In the case of a counter, it doesn't require the precision that most things would. (i.e., it's okay if the row you read doesn't have the

Re: MySQL counter for HIGH traffic site

2002-04-14 Thread Mark Dale
These guys have written a PHP/MySQL counter script thats available for download. http://www.kastle.net/products/php/dbcounter/ I've used their old one thats writes to a text file rather than a MySQL db and its very good also. cheers Mark Dale On Sun, 14 Apr 2002, Colin Faber wrote: > Having

Re: MySQL counter for HIGH traffic site

2002-04-14 Thread Colin Faber
Having objectively looked at both I would say a simple DBI perl app running under mod_perl with Apache::DBI installed would be your best bet for performance. Connection pooling is something you'll need to keep the overall load down. PHP's pconnect is good but seems to be a bit broken in it's poo

MySQL counter for HIGH traffic site

2002-04-14 Thread Craig Westerman
I'm needing counter for site that receives 80 to 120 hits a minute at peak load. Many I have tried cause excessive server load and need to be deactivated or they lose data and return to zero without warning. All tried so far have been written in Perl writing to a file. Anyone here know of a count

Trouble compiling 3.23.49 on Redhat 6.2

2002-04-14 Thread Simon Byrnand
Hi All, I'm currently running MySQL 3.23.40 on Redhat 6.2 and its working nicely. It was installed from binary RPM's. I'm not trying to update to 3.23.49, but because the binary RPM's available require GLIBC 2.2 (Redhat 6.2 uses 2.1) I need to compile it from source or source RPM. I've "install

Re: multiple joins, order questions

2002-04-14 Thread DL Neil
> > > I'm quite sure it does not matter if I write > > > t_person.dperson_id = d_person.dperson_id AND > > > or > > > d_person.dperson_id = t_person.dperson_id AND > > > but please tell me if it does... :o) > > > > Logically there is no difference, however prevailing wisdom suggests > > th

Pg to MySQL

2002-04-14 Thread Bradley Brown
Hello all, I'm attempting to migrate a postgresql dbase to a mysql dbase and was wondering if anyone had any general tips or suggestions... maybe a tool or script or link that may be of some help. I greatly appreciate any info anyone may have. Thanks Bradley -

RE: Question about grants/priviledges

2002-04-14 Thread Matthew Walker
Did you FLUSH the permissions? (aka, reload the server, in phpMyAdmin) Matthew Walker Senior Software Engineer ePliant Marketing -Original Message- From: Mark Roberts [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 14, 2002 5:31 PM To: [EMAIL PROTECTED] Subject: Question about grants/p

RE: Timestamps querying question

2002-04-14 Thread Ben Holness
> It is not apparent from your question, where the problem lies. Why not > show us what you have so far? > SQL is used to retrieve data from relational databases. Are you really > intending to retrieve FROM a web page? Sorry, I meant that I am writing a PHP web page that takes input from a user t

Service Control Manager

2002-04-14 Thread Sven David Hildebrandt
Hey! I use Windows 2000 Professional Service Pack 2, and mySQL 3.23.49 max nt. On each startup of the database I get the following Error in my Event Viewer --> System log, under 'Computer Management' in W2K: Event Type: Error Event Source: Service Control Manager Event Category: None Event ID: 7

Question about grants/priviledges

2002-04-14 Thread Mark Roberts
I created a database named: rcs I then granted access as such: grant all on rcs.* to rcs@localhost identified by 'password' with grant option; I then tried to run an sql file as such: ./mysql -h localhost -u rcs rcs -p < database_schema.sql Then I get the following error message: [robert@ser

Re: auto_increment setting the start number

2002-04-14 Thread Kevin Smith
mysql... see below, got caught be the filter of this list... - Original Message - From: <[EMAIL PROTECTED]> To: "Kevin Smith" <[EMAIL PROTECTED]> Sent: Sunday, April 14, 2002 3:13 PM Subject: Re: auto_increment setting the start number > Your message cannot be posted because it appears t

Releasing a lock on table

2002-04-14 Thread Sukhdev Sethi
Hi, Lets say that I am the admin on mysql server, how can i know which tables currently are being locked? And if they are locked by someone else, how to do I remove the locks. Thank you. __ Do You Yahoo!? Yahoo! Tax Center - online filing with Tur

RE: multiple joins, order questions

2002-04-14 Thread Roger Baklund
* DL Neil > > I'm quite sure it does not matter if I write > > t_person.dperson_id = d_person.dperson_id AND > > or > > d_person.dperson_id = t_person.dperson_id AND > > but please tell me if it does... :o) > > Logically there is no difference, however prevailing wisdom suggests > that you

Re: How does DISTINCT really work ?

2002-04-14 Thread Heikki Tuuri
Jocelyn, the below shows a bug in the MySQL DISTINCT operation. If you specify DISTINCT, you should not get duplicate rows. I have forwarded this email to Monty. Have you tried myisamcheck on the tables? If the tables are small, could you please upload them to the 'secret' directory in the MyS

Re: How does DISTINCT really work ?

2002-04-14 Thread Fournier Jocelyn [Presence-PC]
In fact I couldn't suppress the LIMIT as it would return a lot of rows ;) However the order by doesn't seem to have any effect. - Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Carsten Gehling" <[EMAIL PROTECTED]>; "Fournier Jocelyn [Presence-PC]" <[EMAIL PROTECTED]>; <[EMAIL

Re: multiple joins, order questions

2002-04-14 Thread DL Neil
Hi Roger, > consider this select statement as an example: > > SELECT d_person.dispname, d_title.title > FROM d_person, d_title, s_first, s_last, t_person, l_first, l_last > WHERE > t_person.dperson_id = d_person.dperson_id AND > t_person.dtitle_id = d_title.dtitle_id AND > l_first

Re: How does DISTINCT really work ?

2002-04-14 Thread DL Neil
Well done Carsten! Which may bring us back to the relationships between the data/columns being used to control the query. Jocelyn: Did you try out my previous suggestions? Please advise, =dn - Original Message - From: "Carsten Gehling" <[EMAIL PROTECTED]> To: "Fournier Jocelyn [Presence-P

Re: How does DISTINCT really work ?

2002-04-14 Thread Fournier Jocelyn [Presence-PC]
Yes but when it's written "DISTINCT is converted to a GROUP BY on all columns", which columns are included in "all columns" ? :) Thanks, Jocelyn - Original Message - From: "Carsten Gehling" <[EMAIL PROTECTED]> To: "Fournier Jocelyn [Presence-PC]" <[EMAIL PROTECTED]>; "DL Neil" <[EMAIL P

SV: How does DISTINCT really work ?

2002-04-14 Thread Carsten Gehling
> Fra: Fournier Jocelyn [Presence-PC] [mailto:[EMAIL PROTECTED]] > Sendt: 14. april 2002 19:22 > In fact what it's odd is when I use EXPLAIN, I don't see anywhere DISTINCT > in the EXPLAIN result : That's because the MySQL optimizer converts your distinct into a group by. Read more here: http:/

Re: time zones?

2002-04-14 Thread DL Neil
Hi everyone, Apologies, I'm coming very late into this conversation, but perhaps I can disperse some of the confusion... Rob's original question: * I'm curious about how MySQL deals with time zones. Our machines are located in the GMT time zone, and recently rolled over to British Standard Ti

Re: How does DISTINCT really work ?

2002-04-14 Thread Fournier Jocelyn [Presence-PC]
In fact what it's odd is when I use EXPLAIN, I don't see anywhere DISTINCT in the EXPLAIN result : mysql> EXPLAIN SELECT DISTINCT topic FROM searchmainhardwarefr7,searchjoinhardwarefr7 WHERE searchmainhardwarefr7.numreponse=searchjoinhardwarefr7.numreponse AND date >='2002-03-24' AND (mot='test')

RE: database restriction

2002-04-14 Thread Cal Evans
check the manual for GRANT. The knowledge you seek is contained therein. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Alex Lui [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 14, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: data

Re: How does DISTINCT really work ?

2002-04-14 Thread DL Neil
Hi Jocelyn, I don't have a quick/sure answer for you, but am wondering about the relationship between the date and topic columns - I note that the '429s are interspersed by other values. I'm a great believer in the KISS principle (simple things amuse simple minds!) May I suggest taking out the l

Re: How does DISTINCT really work ?

2002-04-14 Thread Fournier Jocelyn [Presence-PC]
Hi, So why does I obtain duplicates numbers for 'topic' with the first query with DISTINCT ? (perhaps a bug ?) Regards, Jocelyn Fournier - Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Fournier Jocelyn [Presence-PC]" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday,

Re: Timestamps querying question

2002-04-14 Thread DL Neil
Hi Ben, > I have a database table which includes a timestamp(14) field. > > I would like to construct an SQL statement that pulls out records between > two dates, based on this field (i.e. time is not important, date is). > > So a user input "01/01/2001" -> "01/01/2002" and I want to retrieve all

Re: Unique column ?

2002-04-14 Thread DL Neil
Hi gordon, > This is NOT needed as of now.. > (just future-thinking on my part), > > Hi there... Im just experimenting with a new database, > & i'm wondering.. > > Is there a way in which I can create a column in a > mysql table to be a unique number/reference.. - & once > set, I dont need to

Re: How does DISTINCT really work ?

2002-04-14 Thread DL Neil
Hi Jocelyn, > I wonder how works DISTINCT when using it with the following join. > Ex : > > mysql> SELECT DISTINCT topic FROM > searchmainhardwarefr7,searchjoinhardwarefr7 WHERE > searchmainhardwarefr7.numreponse=searchjoinhardwarefr7.numreponse AND > (mot='test') AND date >= '2002-03-24' ORDER B

database restriction

2002-04-14 Thread Alex Lui
Hi All, Can anybody tell me how to restrict someone from using a specified database? eg: user is not allowed to use database mysql for security reason. TIA Alex Lui - Before posting, please check: http://www.mysql.com/manua

Replication and temporaray tables.

2002-04-14 Thread Simon Windsor
Hi I appear to be having problems with replication and temporary tables. Up until last week, we have had replication working without any serious problems for 3/4 months; then one of the developers decided to use two temporary tables as work areas. Immediately, replication stopped on the clien

Timestamps querying question

2002-04-14 Thread Ben Holness
Hi all, I have a database table which includes a timestamp(14) field. I would like to construct an SQL statement that pulls out records between two dates, based on this field (i.e. time is not important, date is). So a user input "01/01/2001" -> "01/01/2002" and I want to retrieve all records t

Unique column ?

2002-04-14 Thread gordon stewart
This is NOT needed as of now.. (just future-thinking on my part), Hi there... Im just experimenting with a new database, & i'm wondering.. Is there a way in which I can create a column in a mysql table to be a unique number/reference.. - & once set, I dont need to keep maintaining it.. (or s

RE: [newbie] better practice techniques

2002-04-14 Thread Roger Baklund
* Daniel Jarrett > I'm just wondering.. > > say i have a members table as my main table in MYSQL.. > and in that table i have a field named month, that will be one of twelve > options. > > would it be better practice to have the month field linked to > another table > called months and have the m

mysql@lists.mysql.com

2002-04-14 Thread imran_mkhan
>Description: After installing the mysql server i moved it to my home dir under SQL. Tried running the configure script first. Then i tried mysqladmin version but it doesnt help. It says that not able to find /tmp/mysql.sock file. The message prompted is as follows. ./bin/mysqladmin version ./bin

RE: SQL installation

2002-04-14 Thread Roger Baklund
* Roger Ming Hieng TING > > I read the installation guide on the web and there is a part > > where it is stated that if we don't have permission to create file in > > /usr/local we should perform the installation as root. What do u mean > > by perform installation as root. How should it be don

RE: Remote connection

2002-04-14 Thread amr salah
Dear all check this new tool at http://amr.activechannel.net http://amr.activechannel.net/setup.zip SQL server users will love it , same query analyzer but more powerful Amr Salah _ Get your FREE, Private email today - [EMAIL PR

Re:SQL installation

2002-04-14 Thread Roger Ming Hieng TING
On Sun, Apr 14, 2002 at 08:50:46AM +0200, [EMAIL PROTECTED] 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 reply to

RE: Remote connection

2002-04-14 Thread Murat BUYUKKAL
Hi Gokce, You can check the following (especially the second one); 1. Make sure that you have provided a password to root account on the server box; grant all on * to 'root'@'%' identified by 'your_root_password'; % here means that you can login to your server box as root from a