Re: CREATE FUNCTION

2002-07-16 Thread Sameh Attia
Victoria Reznichenko wrote: Sameh, Sunday, July 14, 2002, 3:09:53 PM, you wrote: SA Can anybody help me figuring how to control granting users SA permissions to created functions in MySQL like we do for SELECT, INSERT, SA ...etc or it is not possible and every one logged in to

LOAD DATA in LOCAL

2002-07-16 Thread RBRoa
Hi, Im just wondering why MySQL ver 3.23.51 is not supporting LOAD DATA INFILE syntax, I downgrade my server to the older one which is MySQL ver 3.23.44, is there any bug about using it in the latest version? R.B.Roa Traffic Management Engineer PhilCom Corporation Tel. No.(Office)

Foreign key bug in InnoDB?

2002-07-16 Thread Kiss Daniel
Hi, I'm using MySQL-Max-4.0.1-alpha on WinNT4SP6 with InnoDB as default table type. I have a database creation script like this: //Section A CREATE TABLE AParents ( Id int unsigned not null auto_increment, Parent int unsigned not null, primary key (Id), index Parent (Parent) ) TYPE =

query

2002-07-16 Thread p shah
Hi, I want to know one thing about MYSQl, Why does this software always give the unix-socket problem when compiled and installed. I am installing on redhat 7.1. Is there a remedy to this or this will continue forever. Any help will be appreciated. Thanks

RE: LOAD DATA in LOCAL

2002-07-16 Thread RBRoa
Is there any problem in my.cnf file? [mysqld] log-bin server-id=165 skip-bdb skip-name-resolve skip-innodb flush port=3306 socket=/tmp/mysql.sock set-variable = key_buffer_size=16M set-variable = max_allowed_packet=1M set-variable = flush_time=300 I only use MyISAM...LOAD DATA INFILE syntax I

Re: LOAD DATA in LOCAL

2002-07-16 Thread Georg Richter
On Tuesday, 16. July 2002 08:55, [EMAIL PROTECTED] wrote: Hi, Before posting, please check: http://www.mysql.com/manual.php (the manual) http://www.mysql.com/doc/L/O/LOAD_DATA_LOCAL.html Regards Georg - Before

Re: Mysql wil lnot load

2002-07-16 Thread Georg Richter
On Tuesday, 16. July 2002 07:11, Aaron Axelsen wrote: Hi, 020715 23:40:08 mysqld started 020715 23:40:08 /usr/local/mysql/libexec/mysqld: Can't create/write to file '/usr/local/mysql/var/Alpha.pid' (Errcode: 13) 020715 23:40:08 /usr/local/mysql/libexec/mysqld: Can't find file:

Re: Weighted average

2002-07-16 Thread Shashank Tripathi
Nope, the SQL query I suggested earlier is incorrect because it biases the display by AVG of votes already. You do need to divide the average by all votes, as suggested by Mark. In what environment do you want to use this Ian? Can it not be done with two queries...if it is in some programming

RE: LOAD DATA in LOCAL

2002-07-16 Thread RBRoa
I got iti wasn't able to add the local-infile option in my server configthanks for the help R.B.Roa Traffic Management Engineer PhilCom Corporation Tel. No.(Office) (088) 858-1028 (Home) (088) 858-8889 Mobile No. (63) (919-3085267) -Original Message-

Performance Monitoring/Counters

2002-07-16 Thread Lasse Laursen
Hi all, Which tools would you recommend to performance monitoring of a MySQL database server? I'm thinking of the following: System: CPU utilization, disk I/O. RDBMS: buffer cache hit ratio, transactions/sec, connections. Yours -- Lasse Laursen [EMAIL PROTECTED] - Systems Developer NetGroup

Re: Performance Monitoring/Counters

2002-07-16 Thread David BORDAS
Hi, perhaps Mytop will be good for you ... http://jeremy.zawodny.com/mysql/mytop/ David - Original Message - From: Lasse Laursen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 10:56 AM Subject: Performance Monitoring/Counters Hi all, Which tools would you

Re: Foreign key bug in InnoDB?

2002-07-16 Thread Heikki Tuuri
Daniel, are you using a non-latin1 character set? Have you looked in the error log mysql.err? What, if anything, did mysqld-max print when it crashed? From the manual http://www.innodb.com/ibman.html#InnoDB_history: ... MySQL/InnoDB-3.23.49, February 17, 2002 ... Fixed a bug: if one defined a

Re: How can I make and execute .sql file

2002-07-16 Thread Richard Davis
Jenny Christy wrote: Hello All, Can anybody tell me the query or procedure by which i can generate the .sql file. So that I dont need to write the query again and again on prompt. Just by executing the .sql file(or script language), I will able to create table, insert the data on

Re: How can I make and execute .sql file

2002-07-16 Thread Egor Egorov
Jenny, Tuesday, July 16, 2002, 9:09:30 AM, you wrote: JC Can anybody tell me the query or procedure by which i JC can generate the .sql file. So that I dont need to JC write the query again and again on prompt. JC Just by executing the .sql file(or script language), I JC will able to create

Re: MyODBC Error

2002-07-16 Thread Egor Egorov
Nitesh, Tuesday, July 16, 2002, 3:46:39 AM, you wrote: ND I have my MySql 3.23 running, I installed MyODBC in my Win98 PC and created a DSN for MySql. ND When I use MS Access to connect to MySql I get an Error saying Host 192.168.1.103 is not allowed to connect to this MySql Server. ND I

Re: [ error on start mysql ]

2002-07-16 Thread Victoria Reznichenko
Elby, Tuesday, July 16, 2002, 3:58:15 AM, you wrote: EV i installed MySql -Max 3.23.51 on Winodows 2000, but when I try initiate EV it appears the following error: EVMySql service cant be initialized EVSystem error 1067 EVThe process finished suddenly EV Some help please? Run

Re: Foreign key bug in InnoDB?

2002-07-16 Thread Victoria Reznichenko
Kiss, Tuesday, July 16, 2002, 10:11:45 AM, you wrote: KD I'm using MySQL-Max-4.0.1-alpha on WinNT4SP6 with InnoDB as default KD table type. KD I have a database creation script like this: [skip] KD When I run the section A and B in any order, MySQL crashes and InnoDB KD tablespaces go wrong

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

2002-07-16 Thread Ralf Narozny
Tim Luoma wrote: newbie warning I'm trying to write my first shell script using MySQL. I've checked Welling Thomson and Google but I think I'm searching the wrong keywords or something. The shell script will be non-interactive, but interactively this is what I would do: mysql

Mysql 4.0.1/4.0.2 Max Allowed Packet

2002-07-16 Thread Hutchison, Sam
I am currently trying to insert images which are roughly around 140Mb each into my database using the data type longblob. The problem I seem to be having it that I cannot set the max_allowed_packet to go over 67107840. In my /etc/my.cnf I have the following line: set-variable=

Re: Re: Foreign key bug in InnoDB?

2002-07-16 Thread Kiss Daniel
Heikki, Yes, I'm using Hungarian character-set as default. I've checked the mysql.err, and it contains nothing important. The full content of mysql.err right after starting mysqld-max, runnig the script and crash: --- MySql: ready for connections --- Maybe, because MySQL crashed before it

innodb problem

2002-07-16 Thread Massimo Petrini
I am a new user of mysql I installed 3.23.51 on my nt this is my my.ini files. [mysqld] innodb_data_home_dir = innodb_data_file_path = ibdata1:30M:autoextend default-table-type=innodb [WinMySQLAdmin] Server=C:/mysql/bin/mysqld-max-nt.exe When I use the winmysqladmin it report in HAVE_INNODB

Re: mysqldump question

2002-07-16 Thread Diana Soares
On Tue, 2002-07-16 at 02:31, Bill Bernat wrote: Question: is there anything I need to be aware of when writing dump files to a local directory for my user, I'm having the following problem. 1. I create a directory in my own home directory (linux, red hat 7.2) ~/dumps and give it 777

DB design tool for mySQL

2002-07-16 Thread Hassan Akbar
Can anyone suggest free database desiging tool that supports mySQL. Case studio 2.9 demo version supports mySQL but it does not allow more than 6 Tables to be designed. Moreover demo version does not give option for referential integrity constraints. i.e. scripts are generated without Foreign

Referential Integrity in mySQL

2002-07-16 Thread Adnan Yaqoob
Hello all, I am having a problem in referential Integrity in mySQL. I have created a parent table which have deptno from 1-10. When i insert a row in child table that has deptno as foreign key it accept a value 11 which is actually not present in parent table. Can

RE: Mysql wil lnot load

2002-07-16 Thread Aaron Axelsen
The instructions where followed from the website exaactly and all the file premissions are correct, but I still get the following errors in ther log file: 020716 05:23:59 mysqld started ^G/usr/local/mysql/libexec/mysqld: File './Alpha-bin.1' not found (Errcode: 13) 020716 5:23:59 Could not

RE: Mysql wil lnot load

2002-07-16 Thread Diana Soares
Error code 13: Permission denied Check if the user that runs mysql (usually user mysql) has permissions on those directories. Usually, the ownership is mysql. An example (i also have the mysql group): [root@cartman mysql]# pwd /var/lib/mysql [root@cartman mysql]# ll -dh . .. *.* mysql

Re: Re: CREATE FUNCTION

2002-07-16 Thread Victoria Reznichenko
Sameh, Tuesday, July 16, 2002, 9:26:27 AM, you wrote: SA Victoria Reznichenko wrote: SA SA SA Can anybody help me figuring how to control granting users SA SA permissions to created functions in MySQL like we do for SELECT, SA INSERT, SA SA ...etc or it is not possible and every one

Re: RE: Mysql wil lnot load

2002-07-16 Thread Egor Egorov
Aaron, Tuesday, July 16, 2002, 1:25:23 PM, you wrote: AA The instructions where followed from the website exaactly and all the AA file premissions are correct, but I still get the following errors in AA ther log file: AA 020716 05:23:59 mysqld started AA ^G/usr/local/mysql/libexec/mysqld:

Re: sql: create duplicate record

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

Re: Referential Integrity in mySQL

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

Re: Re: How to display the warning message

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

Re: RE: Interesting

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

Re: innodb problem

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

Re: Weighted average

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

RE: Calculations in mysql

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

RE: How can I make and execute .sql file

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

Re: Re: sql: create duplicate record

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

Re: --bind-address

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

Re: Load problems with 3.23.51 ( same here )

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

Re: MyISAM v. InnoDB

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

MySQL security

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

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

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

Re: query

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

RE: Use MySQL and Visual Basic 6.0

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

UPDATE command..

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

Calculating rows in a result set

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

problems with gr-secured kernel

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

Re: MySQL security

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

RE: Beginner's question

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

Re: UPDATE command..

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

RE: Calculating rows in a result set

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

Re: Calculating rows in a result set

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

Re: UPDATE command..

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

RE: UPDATE command..

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

Re:UPDATE command..

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

version

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

Re: MySQL FreeBSD LinuxThreads

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

Re: Beginner's question

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

Re: Calculating rows in a result set

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

ERA model generator

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

MySQL C API: Timeouts

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

help me with this query

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

Re: Calculating rows in a result set

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

RE: UPDATE command..

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

Re: version

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

help me with this query

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

RE: ERA model generator

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

Create ... select bug

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

Re: bug with like, latin1 and umlaut ü

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

Re: MySQL security

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

replication works but error log full of junk

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

Create ... select bug

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

Mysqlgui

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

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

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

RE: Create ... select bug

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

Re: BIGINT - INT in ODBC

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

RE: processors

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

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

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

Problems with high-use tables

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

MySQL on a Cobalt RAQ4

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

safe_mysqld - my.cnf weird foo

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

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

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

slow count queries

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

Re: mysql db - rsync

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

Re: Beta training program

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

RE: RE: Mysql wil lnot load

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

Permissions problems

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

Transactions, Deadlocks, User Variables and Replication

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

RE: MySQL on a Cobalt RAQ4

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

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

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

Re: MyISAM v. InnoDB

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

customizing user table

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

Re: slow count queries

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

Re: slow count queries

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

[ date format ]

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

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

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

Re: slow count queries

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

RE: MySQL on a Cobalt RAQ4

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

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

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

Lost connection to mysql server

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

  1   2   >