Re: Query Error

2002-09-23 Thread Ralf Narozny
>CREATE TABLE relay_ip ( > rei_aid int(11) NOT NULL auto_increment, > rei_uname varchar(30) NOT NULL default '', > rei_domain varchar(128) NOT NULL default '', > rei_ip varchar(64) NOT NULL default '', > rei_ts datetime NOT NULL default '00

Re: MySQL++ hates me

2002-09-20 Thread Ralf Narozny
help? > >I even tried to run the compiled version of >"simple1.cc" (present in mysql++-1.7.9/examples). But >it said : >* >ld.so.1: simple1: fatal: libmysqlclient.so.10: open >failed: No such file or directory >Killed >********** &g

Re: mysql LIKE number

2002-09-18 Thread Ralf Narozny
> column1 REGEXP "[0-9]" -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660 97 20 mailto:[EMAIL PROTECTED], http://www.splendid.de --

Re: which version to use?

2002-09-06 Thread Ralf Narozny
thing else... ;-) Anil Garg wrote: >hi >What version combinations of mysql and php should be used? >regards >anil > > > -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660 97 20 mailto:[EMAIL

Re: [MySQL] HELP: Can MySQL run external programs... Sendmail for example

2002-09-06 Thread Ralf Narozny
:" pwd >"/tmp/mail.txt"; print "" >"/tmp/mail.txt"; print "Be aware that your password will be saved in an encrypted format, so noone can read it!" >"/tmp/mail.txt"; close( "/tmp/mail.txt"); cmd = "cat /tmp/

Re: MySQL Backup

2002-09-03 Thread Ralf Narozny
e done this for some time and nothing has gone wrong, no data corrupted >either. Running source compiled 4.0.2-alpha: >Uptime: 70 days 6 hours 42 min 24 sec >Threads: 11 Questions: 215514424 Slow queries: 613 Opens: 87 Flush >tables: 1 Open tables: 59 Queries per se

Re: Replication

2002-09-02 Thread Ralf Narozny
>>> >>> log=/var/log/mysqld.log >>> --- >>> >>> MASTER--> >>> [mysqld] >>> socket=/var/lib/mysql/mysql.sock >>> server-id=1 >>> >>> log=/var/log/mysqld.log >>> log-bin >>> &

Re: Query problem in Perl

2002-09-02 Thread Ralf Narozny
the outer while. Use a different variable for the inner handle. In the inner while you already fetched all rows for sth returning to the next outer loop will fail. > $sth->execute || &error("Fout bij het communiceren met de database: >$DBI::errstr"); >$sth->bi

Re: granting grant option creates a (new) user ?!

2002-08-29 Thread Ralf Narozny
ave a site with some >databases to administer > Sounds evil indeed, how about giving grant rights and revoking insert rights for mysql.users mysql.db and mysql.table? Greetings Ralf > > -- Ralf Narozny Besuchen Sie uns auf der DMS-Expo. SAP, Dokumenten- management oder das komplette

Re: Replication

2002-08-27 Thread Ralf Narozny
---+---+--+--+ > > 1 row in set (0.00 sec) > As far as I can see the message is quite obvious: On your replication machine the table radcheck has no column of the name 'status' -- Ralf Narozny Besuchen Sie uns auf der DMS-Expo. SAP, Dokumenten- m

Re: Double Join

2002-08-02 Thread Ralf Narozny
deas? > > Sure, simply leave the brackets away. Greetings Ralf -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660 97 20 mailto:[EMAIL PROTECTED], http://www.splendid.de -

Re: Linux Installation (make) problem

2002-08-01 Thread Ralf Narozny
d no makefile found. Stop. >>[root@neelsl mysql-3.23.51-pc-linux-gnu-i686]# make install >>make: *** No rule to make target `install'. Stop. >> >>What is the problem, I am following the instructions provided in the >> >&

Re: How to speed up slow query from OR

2002-08-01 Thread Ralf Narozny
an: > >select something from table where index1 = 'value'; >or >select something from table where index2 = 'value'; > > Does it have a compund index, created like this: CREATE INDEX myindex ON table (index1,index2); ??? Greetings Ralf -- Ralf Narozny SPLENDI

Re: Changing existing column data type question

2002-07-30 Thread Ralf Narozny
0 records. I don't want to loose any of my current data in this >column. > > > Greetings Ralf -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660 97 20 mailto:[EMAIL PROT

Re: Sql Create a column the multiple of two other columns

2002-07-30 Thread Ralf Narozny
FAIK there is no way to automaically set the value via DEFAULT, since DEFAULT has to be constant and since there are no triggers by now, try: INSERT INTO table VALUES (a,b,a*b); Greetings Ralf -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon:

Re: Facing some problem in installation

2002-07-27 Thread Ralf Narozny
might be sufficient (it is, if after compiling there is a directory where my.cnf resides) Greetings Ralf sql query -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49

Re: inner join query don't work

2002-07-26 Thread Ralf Narozny
ise an error or just delivers 0 rows or wrong rows? Without that information I wouldn'T even try to take a look at that query ;-) Greetings Ralf -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109

Re: Need help with Tables/Attributes

2002-07-26 Thread Ralf Narozny
ADD COLUMN Full_name int AFTER ID; UPDATE test SET Full_name = Name; ALTER TABLE test DROP COLUMN Name; Greetings Ralf sql query -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660

Re: Selecting from one table to UPDATE another.

2002-07-25 Thread Ralf Narozny
t1.ProductID, ' WHERE UserID = ', t1.UserID, ';' ) INTO OUTFILE '/tmp/update.sql' FROM Table1 t1 LEFT JOIN Table2 t2 ON (t1.Old_UserID = t2.UserID) WHERE t2.UserID IS NOT NULL ; \. /tmp/update.sql This might help...but b

Re: compiling mysql 3.23.37

2002-07-25 Thread Ralf Narozny
gt; >>To unsubscribe, e-mail >> >> ><[EMAIL PROTECTED]> > > >>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php >> >> >> > > >- >Before

Re: SQL Syntax (May be OT)

2002-07-25 Thread Ralf Narozny
the word within the > field. WHERE field LIKE '%keyword%' maybe WHERE upper(field) LIKE upper('%keyword%') Greetings Ralf -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660 97 20 mailto

Re: Facing some problem in installation

2002-07-25 Thread Ralf Narozny
eck: > 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]> >Trouble unsubscribing? Try

Re: Performance Problem - LEFT JOIN

2002-07-25 Thread Ralf Narozny
r ammount of data (1800 records) it takes 26 seconds to >return data and it consumes 100% of processor. This situation happens when I >have all tableA.id registered on tableB.ida or tableC.ida. > >Any ideas? > > > Of course you have indexes on all of the id, idA, idB columns? Gre

Re: Splitting textarea values to put into a database

2002-07-25 Thread Ralf Narozny
$q); $q .= ")" print $q."\n"; ## sh -c test.pl < - Dogs Cats Fish ^D This would print something like: INSERT INTO tab VALUES ('Dogs','Cats','Fish') Greetings Ralf > > sql, query -- Ralf Narozny

Re: question about varchars

2002-07-25 Thread Ralf Narozny
database developers use lengths to restrict the size of the entries. For example storing the zipcodes from more than one country might need at max 15 characters, so why allowing 255, preventing MySQL to raise an error, if the ZIP is 100 chars long. Greetings Ralf -- Ralf Narozny SPLENDID Inte

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

2002-07-25 Thread Ralf Narozny
BTW the processing time was about <1 second for the new syntax and up to 30 seconds for the old method. (Tables had about 300.000 - 1.000.000 rows) Greetings Ralf sql sql sql sql sql sql sql sql sql sql sql sql sql query query query query query query query query query query query P.S.:

Re: Problem accessing a DB!

2002-07-22 Thread Ralf Narozny
line 33." > > Is it possible that the connect() did not succeed? that would explain why $dbh->prepare() would not work. >I don't know why this is happening, although I have read as much as I >could fine on the net regarding this subject. >I'd be grateful for any hel

Re: Problem accessing a DB!

2002-07-22 Thread Ralf Narozny
erver as the MySQL is running? And maybe change the line: $dbh = DBI->connect($connectionInfo,$userid,$passwd); to: $dbh = DBI->connect($connectionInfo,$userid,$passwd) or print "Connect failed"; Maybe you get the info then. > > >Ralf Narozny wrote: > > >>

Re: Select Problem

2002-07-22 Thread Ralf Narozny
s makes some sort of sense. > > Greetings Ralf > > -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660 97 20 mailto:[EMAIL PROTECTED], http://www.splendid.de

Re: undo command from mysql prompt

2002-07-22 Thread Ralf Narozny
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]> >Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.

Re: Incorrect GRANT syntax messes up user.* and crashes Mysqld

2002-07-22 Thread Ralf Narozny
/share --includedir=/usr/include --with-extra-charsets=complex --with-unix-socket-path=/var/lib/mysql/mysql.sock --with-libwrap > > > > > > > > > > > > > > > > > > > > &

Re: Problem accessing a DB!

2002-07-22 Thread Ralf Narozny
ee.cgi line 33." > > Is it possible that the connect() did not succeed? that would explain why $dbh->prepare() would not work. >I don't know why this is happening, although I have read as much as I >could fine on the net regarding this subject. >I'd be gra

Re: Incorrect GRANT syntax messes up user.* and crashes Mysqld

2002-07-22 Thread Ralf Narozny
lib >--libexecdir=/usr/sbin --localstatedir=/var/lib/mysql --mandir=/usr/share/man >--prefix=/usr --sysconfdir=/etc --with-mysqld-user=mysql --without-debug >--datadir=/usr/share --includedir=/usr/include --with-extra-charsets=complex >--with-unix-socket-path=/var/lib/mysql/mysql.sock --with-lib

Re: undo command from mysql prompt

2002-07-22 Thread Ralf Narozny
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]> >Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Re: Select Problem

2002-07-22 Thread Ralf Narozny
makes some sort of sense. > > Greetings Ralf > > -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660 97 20 mailto:[EMAIL PROTECTED], http://www.splendid.de

Re: Create DataBase tabe for a user

2002-07-19 Thread Ralf Narozny
ry at /var/lib/mysql/poll ! >So, can you help me ? > > Maybe stupid question, but you issued 'CREATE DATABASE poll;'? Greetings Ralf sql , query -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0,

Re: Table types in replication

2002-07-18 Thread Ralf Narozny
pening. >When both are in sync then take them down and point allupdating >clients to the new database machine. > >Any comments ? Converting the tables "in situ" is painfully slow - a >couple of days I suspect. > > Greetings Ralf > > -- Ralf Narozny SPLENDID Intern

Re: backup

2002-07-18 Thread Ralf Narozny
py line 8. > > What is DBI.pm? DataBase Interface . Perl Module (iirc) which indicates that you need Perl DBI Module for mysqlhotcopy. Greetings Ralf sql , query -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fa

Re: MySQL Privileges Question

2002-07-18 Thread Ralf Narozny
>>application with this account, I should have the same access through >>> >>> >JDBC. > > >>>2) Does this mean I have to use an account which has a global access >>>privilege(s) in order to access the db through JDBC?? >>> >>>

Re: MYSQL Problem (Will not write to but will read)

2002-07-17 Thread Ralf Narozny
.php (the 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 > > > -- Ralf Narozny

Re: Calculating rows in a result set

2002-07-16 Thread Ralf Narozny
the result will have, I >think there must be a better way to do it, isn't it? > > No way! Should the database guess on it? ;-) SELECT count(*) FROM ... WHERE ...; Just like your query looks like is the only way. > > -- Ralf Narozny SPLENDID Internet GmbH & Co KG Ska

Re: UPDATE command..

2002-07-16 Thread Ralf Narozny
>+--+ >|[EMAIL PROTECTED] | >|[EMAIL PROTECTED] | >|[EMAIL PROTECTED] | >+--+ > > How about: UPDATE SET id = concat(left(id, locate(id, '@')), 'domain2.com') WHERE domain = "domain1.com"; -- Ralf Narozny SPL

Re: pulling information from 2 tables based on information from firstselect

2002-07-16 Thread Ralf Narozny
> 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-m

Re: character occurrence count in MySQL

2002-07-15 Thread Ralf Narozny
--- >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]> >Trouble

Re: Help - query suggestion needed - interesting case

2002-07-15 Thread Ralf Narozny
t;Is >> >> >>>it >>> >>> >>>>possible to get that result in just one query? >>>>The result should be something like this: >>>> >>>>event_id time >>>>1012000-10-24 >>>>1012000-10-25 >>&g

Re: Interesting

2002-07-15 Thread Ralf Narozny
/ (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 > > &

Re: Replication problems

2002-07-12 Thread Ralf Narozny
t;> server-id = 3 >> >> master-host = spiderman.terravista.srv >> master-user = replica >> master-password = x >> >> *** >> >> Any suggestion? >> >> Thanks in advance. >> >> Sa

Re: Remote entry

2002-07-12 Thread Ralf Narozny
machine, is there any options >so that the same entry is made in the remote machine mysql db >If there is any option pls. let me know >Thanx in advance > > > -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fa

Re: Help - query suggestion needed - interesting case

2002-07-12 Thread Ralf Narozny
>> >>> >know > > >>>how to get the time column in the same query. >>>Here is my current query: >>> >>>SELECT >>>event_id, >>>count(DISTINCT time) AS Ranges >>>FROM >>>events >>>

Re: Mass Delete

2002-07-11 Thread Ralf Narozny
he result at defined word borders (for bash that is maybe true for ksh clones too) for EMAIL in `cat remove.txt` ; do echo "DELETE FROM churchmail WHERE email = '$EMAIL';" ; done | mysql midtn that was it...pretty easy isn't it? That's why I really love Linux :-) Gre

Re: Mass Delete

2002-07-10 Thread Ralf Narozny
Using Linux/Unix I'd say: echo "SELECT concat('DELETE FROM mailtab WHERE mailaddress=',mailaddress,';') FROM mailtab WHERE " | mysql | mysql [EMAIL PROTECTED] wrote: >I have about 40,000 email addresses in a MySQL database. > >I also have a list of 1500 email addresses that need to be remove

Re: how to limit the cpu usage in MySql

2002-07-05 Thread Ralf Narozny
I don't run the risk again of having >googlebot or other web robots interrupt my other server operations in my >computer. > >Thank you > >Edwin > > sql query -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 4

Privileges needed to execute PURGE MASTER LOGS

2002-07-03 Thread Ralf Narozny
Hello! The subject says it all: What rights does a user need to have (minimal rights of course) to be able to execute PURGE MASTER LOGS command? Thanks in advance Ralf For the poor little filter: sql query -- Ralf Narozny SPLENDID Internet GmbH & Co KG Skandinaviendamm 212, 24109

Re: I can login to mysql as root but not as any other user...

2002-06-27 Thread Ralf Narozny
ists.mysql.com/php/unsubscribe.php >> >> >> > > >----- >Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http

Re: Unions

2002-06-26 Thread Ralf Narozny
e alternates.. > >Regards, >-Arul > > > -- Ralf Narozny Splendid Internet GmbH Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660 97 20 mailto:[EMAIL PROTECTED], http://www.splendid.de --

Re: SubQueries and Temp Tables

2002-06-26 Thread Ralf Narozny
could have a join > between the main table and the inner table. > > Is this advisable.. > > Any other better options? > > > -- Ralf Narozny Splendid Internet GmbH Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 43

Re: environment variable ...

2002-06-25 Thread Ralf Narozny
command-line tool ... >> >> I think I can overwrite this parameter within a .my.cnf. >> what do I have to write in the ~user/.my.cnf to use completion ? >> >> I tried in the [mysql] section: >> auto-rehash >> rehash > Solution: simply delete the l

Re: subquery in delete

2002-06-25 Thread Ralf Narozny
without a table in between, you got a nice OS for that. I'm using bash doing like this: echo "SELECT concat('DELETE FROM order WHERE order_no=', order_no, ' LIMIT 1;') FROM order GROUP BY order_no HAVING copunt(*) > 1" | mysql -N -u | mysql -N

Re: delete corrupts

2002-06-13 Thread Ralf Narozny
uld delete both of them. > > delete from where limit 1; would only delete one of the rows at least in 3.23.40+ it does :) -- Ralf Narozny Splendid Internet GmbH Skandinaviendamm 212, 24109 Kiel, Germany fon: +49 431 660 97 0, fax: +49 431 660 97 20 mailto:[EMAIL PROTECTED]

Re: Help needed with JOIN on 3 tables

2002-06-13 Thread Ralf Narozny
LEFT JOIN builder_category bc ON ( b.id = bc.builderid) LEFT JOIN category c ON ( c.id = bc.builderid ) ; That should give out all names from builder which have any business given. Greetings Ralf -- Ralf Narozny Splendid Internet GmbH Skandinaviendamm 212, 24109 Kie

Re: How to write output of sql stmt to file

2002-06-04 Thread Ralf Narozny
Jay Blanchard wrote: >[snip] >I am trying to get only records out of a table mathing a query. This should >be piped into a textfile. My problem is that I have to transmit this records >to a new machine. So the output should be a kind of sql commands which I >could run with phpadmin or similar t