Re: subqurey syntax error

2004-01-26 Thread Nitin Mehta
subqueries are introduced in 4.1 only - Original Message - From: Emmanuel Ohannessian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 26, 2004 12:10 PM Subject: subqurey syntax error I am getting the error message: mysql SELECT s1 FROM t1 WHERE s1 IN(SELECT s1

Installing from SOURCE or from RPM: your recommendation

2004-01-26 Thread Director General: NEFACOMP
Hi group? What do you recommend someone who wants to install MySQL on RedHat? Using RPMs or installing from SOURCE? What are the main differences and/or benefits? Thanks, __ NZEYIMANA Emery Fabrice NEFA Computing Services, Inc. P.O. Box 5078 Kigali Office Phone:

RE: Initial running of MySql on OS X 10.3

2004-01-26 Thread Kev
Here is the /tmp directory after doing a ls -al listing: Kevins-Computer:/tmp kevinbarry$ ls -al total 16 drwxrwxrwt 6 root wheel 204 25 Jan 20:23 . drwxr-xr-x 5 root wheel 170 25 Jan 16:17 .. drwx-- 3 kevinbar wheel 102 25 Jan 16:44 501 -rw-r--r-- 1 kevinbar wheel 818 25

create threads rate

2004-01-26 Thread Varshavchick Alexander
Hi, I have a 4.0.7 mysql server which services requests from several virtual web sites. Most of the times all works well but periodically the mysql server suddently gets loaded to impossibly high values - load average up to several hundred. During such periods the server sleeps and is not

Memory Problems on G5/OSX/MySql4.0.17

2004-01-26 Thread Adam Goldstein
I cannot seem to allocate any large amounts of memory to Mysql on our system... Can anyone suggest any settings/changes/etc to get this running to the best of it's ability? Dual 2Ghz G5, 4G ram, OSX 10.3.2, 73G-10Krpm Sata Raptor drives Using both the 'Complete Mysql4.0.15 and Standard binary

Re: Installing from SOURCE or from RPM: your recommendation

2004-01-26 Thread Neculai Macarie
Hi group? What do you recommend someone who wants to install MySQL on RedHat? Using RPMs or installing from SOURCE? Install from the rpm's on mysql.com webseite. What are the main differences and/or benefits? By compiling your own mysql you can tune it better to your environment. If you

Problem with mysql_free_result()

2004-01-26 Thread Deven Phillips
Hello all, I have a C function which makes various calls to the MySQL C API. Every few times through the loop, the program SEGFAULTs on mysql_free_result(). Now, tracing through the code using steps in GDB and running inside of a memory profiler (valgrind) shows me nothing concrete aside

yearweek() result back to date format?

2004-01-26 Thread Trevor Smith
How can I use the output string of the yearweek() function (for example, 200346 below): mysql select dayname(2003-11-12), yearweek(2003-11-12); +---++ | dayname(2003-11-12) | yearweek(2003-11-12) |

Re: In replication, can you have a slave act as a master to a different slave?

2004-01-26 Thread Egor Egorov
Bill Thomason [EMAIL PROTECTED] wrote: Here is my scenario: I have 3 linux boxes - 2 with mysql 4.0.16 and 1 with 4.0.17. I have a 4.0.16 master (sys1) replicating a database (db1) that is roughly 1.5GB to a slave system (sys2) running 4.0.17. For the sake of a formal representation I'll

TRIM to replace?

2004-01-26 Thread Bernd Tannenbaum
Hi all, Me needs to change the format of some telephone numbers which are placed in a mysql database. Current format: 49xyz Wanted format: 0xyz Now i know how to remove the leading 49: UPDATE table SET field=(TRIM(LEADING '49' FROM field)); But how can i replace the 49 with a 0? Or maybe in 2

how to upgrade / dependencies problem

2004-01-26 Thread Trevor Smith
When I try to upgrade from v4 to v4.1, I get the following dependencies problems: [EMAIL PROTECTED] trevor]# rpm -Uvh MySQL-shared-4.1.1-0.i386.rpm error: Failed dependencies: libcrypto.so.0.9.6 is needed by MySQL-shared-4.1.1-0 libssl.so.0.9.6 is needed by MySQL-shared-4.1.1-0

Re: yearweek() result back to date format?

2004-01-26 Thread KKoTY
hi, i was solving same problem before month and i finished it by this way: select dayname(2003-11-12), yearweek(2003-11-12),ADDDATE('2003-01-06', INTERVAL 7*(WEEK('2003-11-12')-1) DAY),ADDDATE('2003-01-06', INTERVAL 7*(WEEK('2003-11-12')-1)+6 DAY); but there is constant '2003-01-06', that's

Re: how to upgrade / dependencies problem

2004-01-26 Thread Duncan Hill
On Monday 26 January 2004 13:17, Trevor Smith wrote: When I try to upgrade from v4 to v4.1, I get the following dependencies problems: [EMAIL PROTECTED] trevor]# rpm -Uvh MySQL-shared-4.1.1-0.i386.rpm error: Failed dependencies: libcrypto.so.0.9.6 is needed by MySQL-shared-4.1.1-0

Re: If Else statement

2004-01-26 Thread Egor Egorov
Mike Tuller [EMAIL PROTECTED] wrote: I am trying write a shell script to check to see if a record exists and if it does, update information, and if it doesn't insert information. Is there a way to do an if else statement in MySql? If you have PRIMARY KEY or UNIQUE index, take a look at

Inserting One new User = 2 entries in mysql.user when using MySQL 4.0.17?!

2004-01-26 Thread Lutz Maibach
Hello, I'm using the same sqls to append a new user to the MySQL-DB since 2 years.After upgrading from 3.23.57 to 4.0.17 I added a replication-user with the same script that always worked right. When controlling the new entry I was really surprised that I found two entries for the new user

Re: question regarding MAX() and INSERT

2004-01-26 Thread gerald_clark
Perhaps you could use an autoincrement field? [EMAIL PROTECTED] wrote: I would like to do the following: INSERT INTO tt (a,i) VALUES ('text',MAX(i)+1); This doesn't work b/c MAX() isn't allowed here. Does anyone know how I can still achieve this with ONE query? Thanks. Dan -- MySQL

RE: how to upgrade / dependencies problem

2004-01-26 Thread Donny Simonton
I figured out a little trick yesterday, I do not recommend it, but I did work for me. I installed the rpm of MySQL-server, installed the client via rpm, then when it came to the shared libraries. I went and downloaded the binary build of MySQL then found the files I needed and put them in the

Re: (Left) Join and Union

2004-01-26 Thread Victoria Reznichenko
Chris Boget [EMAIL PROTECTED] wrote: Can you UNION 2 queries and use the result to JOIN with another table? (SELECT tableA.name, tableC.company FROM tableA) UNION (SELECT tableB.name FROM tableB) LEFT JOIN tableC ON tableA.name = tableC.name; This doesn't work. But I don't know if it

Re: how to upgrade / dependencies problem

2004-01-26 Thread Duncan Hill
On Monday 26 January 2004 14:08, Donny Simonton wrote: I figured out a little trick yesterday, I do not recommend it, but I did work for me. I installed the rpm of MySQL-server, installed the client via rpm, then when it came to the shared libraries. I went and downloaded the binary build of

Test!!!Please ignore this message

2004-01-26 Thread Gelu Gogancea
Title: Test!!!Please ignore this message Hi fellows, ...just a test.Please ignore this message. _ G.NET SOFTWARE COMPANY SYSTEM INTEGRATOR - AUTOMATION SOFTWARE DEVELOPER Permanent e-mail address : [EMAIL PROTECTED] [EMAIL

Re: unable to access mysql as anyone besideslinux user= root

2004-01-26 Thread gerald_clark
smrtalec wrote: whenever I try to connect to mysql logged on as anyone besides root I get teh error below. This isnt' making sence to me. The ps-ef output and the permissions info is also included. mysql 2524 2500 0 15:41 pts/100:00:00 /usr/sbin/mysqld-max --basedir=/usr

Re: Memory Problems on G5/OSX/MySql4.0.17

2004-01-26 Thread Brent Baisley
You may be hitting an OSX limit. While you can install more than 2GB on a system, I don't think any one process is allowed to allocated more than 2GB of RAM to itself. It's not a 64-bit OS yet. You should be able to search the Apple website for this limit. On Jan 26, 2004, at 6:10 AM, Adam

RE: order of elements in where clause

2004-01-26 Thread Larry Brown
ok, I have a table with 100,000+ records. 98% of these records are jobs that have been completed. I have created an index for status. Status=4 is one of 4 different states a job can be in prior to completion so we aren't talking about a lot of records that meet that status level. query = SELECT

Database design, which is better

2004-01-26 Thread Alex croes
I have an question about the design of a database. What is the best way to design tables. Is it better to create many small tables, or create fewer big tables. Which of those two options will get the best performance? TIA, Alex Croes -- MySQL General Mailing List For list archives:

Re: MySQL Administration Tools

2004-01-26 Thread jurban
At 11:19 -0800 1/22/04, David Blomstrom wrote: I'm using a preconfigured package that includes PHPMyAdmin, which seems to be a pretty good program. However, I just read that similar programs are available, including MySQL Control Center, EMS MySQL Manager, urSAL, PremiumSoft MySQL Studio

Re: Database design, which is better

2004-01-26 Thread Jochem van Dieten
Alex croes said: I have an question about the design of a database. What is the best way to design tables. Is it better to create many small tables, or create fewer big tables. Which of those two options will get the best performance? Don't worry about performance. If performance is really

Re: Memory Problems on G5/OSX/MySql4.0.17

2004-01-26 Thread Adam Goldstein
Others on this list have claimed to be able to set over 3G, and my failure is with even less than 2G (though, I am unsure if there is a combination of other memory settings working together to create an 2GB situation combined) Even at 1.6G, which seems to work (though, -not- why we got 4G of

RE: order of elements in where clause

2004-01-26 Thread Larry Brown
My bad... I was sure I had created a status index, however, after inspection it appears I had not. I created it and presto! Performance is as good if not better than when I had +- 20,000 records last week. Thanks to anyone who concidered commenting, Larry -Original Message- From:

Re: Database design, which is better

2004-01-26 Thread Mike
I have an question about the design of a database. What is the best way to design tables. Is it better to create many small tables, or create fewer big tables. Which of those two options will get the best performance? If you are asking whether to store the data all in one big table or a bunch

Reset Auto-Incriment?

2004-01-26 Thread Paul Fine
I realize that this might be problematic/devastating if you had an AI PK and did this, however in my case there is no problem as there is no related data in the database yet lol. My question is, how can I reset AI? For example I deleted several rows and now my AI starts with the AI number after

Re: Reset Auto-Incriment?

2004-01-26 Thread Chris Elsworth
On Mon, Jan 26, 2004 at 10:40:02AM -0600, Paul Fine wrote: I realize that this might be problematic/devastating if you had an AI PK and did this, however in my case there is no problem as there is no related data in the database yet lol. My question is, how can I reset AI? For example I

Re: Memory Problems on G5/OSX/MySql4.0.17

2004-01-26 Thread Gabriel Ricard
2GB was the per-process memory limit in Mac OS X 10.2 and earlier. 10.3 increased this to 4GB per-process. I've gotten MySQL running with 3GB of RAM on the G5 previously. This is an excerpt from a prior email to the list from back in October when I was first testing MySQL on the G5:

Resetting auto_increment field in an INNODB table

2004-01-26 Thread Hassan Shaikh
Hi, How do I reset an AUTO_INCREMENT column? My table type is InnoDB and the method mentioned in the manual is not applicable. I am using MySQL 4.0.17. Thanks. Hassan -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

update syntax

2004-01-26 Thread Gronquist, James M
This statement works if I enter it directly into mysql: UPDATE BEX_USER_REG_INFO SET STATUS_ID=5 WHERE BEX_USER_REG_INFO.BEX_USER_REG_INFO_ID=2 Utilizing the openquery command I'm trying to do the same thing from a MS SQL Server SELECT * FROM OPENQUERY(MYSQLTEST, 'UPDATE BEX_USER_REG_INFO

Re: TRIM to replace?

2004-01-26 Thread Roger Baklund
* Bernd Tannenbaum Me needs to change the format of some telephone numbers which are placed in a mysql database. Current format: 49xyz Wanted format:0xyz Now i know how to remove the leading 49: UPDATE table SET field=(TRIM(LEADING '49' FROM field)); But how can i

How to do a check to see if I update or insert

2004-01-26 Thread Mike Tuller
I am stuck on this problem, and know there has to be a solution. I have a shell script, where I want to check to see if a record exists, and if it does then update the record with new information. If it doesn't then insert the information gathered by a script. How, in MySql, using a shell

Re: MySQL 3.23.58 seg faults occasionally

2004-01-26 Thread Michael Bacarella
the crashes below happen in independent areas of code. The 2 first are inside InnoDB, and the third inside MySQL. This looks like random thread crashes, or random memory corruption. My colleague tells me that the third stack trace (the one inside MySQL) is from a RESET MASTER. This

Re: TRIM to replace?

2004-01-26 Thread Roger Baklund
* Roger Baklund UPDATE table SET field=CONCAT(0,TRIM(LEADING '49' FROM field)); .. and this will of course prefix _all_ numbers with a '0', not only those that started with '49'... you should append WHERE field LIKE '49%' to you update statement. -- Roger -- MySQL General Mailing List For

HELP!!!!! (JOIN, GROUP BY INDEX)

2004-01-26 Thread Hsiu-Hui Tseng
how come no one response to my email? thanks! My question is below: Hi, I have some question on JOIN and INDEX usage on GROUP BY. Hope you can help me. thanks! 1. If there is any performance differenct for join from a small table to a big table and join from a big table to a small table? 2. If

Re: How to do a check to see if I update or insert

2004-01-26 Thread John Jolet
you SURE you want to do that in a shell script? I'd do it in perl On Monday 26 January 2004 11:39 am, Mike Tuller wrote: I am stuck on this problem, and know there has to be a solution. I have a shell script, where I want to check to see if a record exists, and if it does then update the

Index Creation Bottlenecks

2004-01-26 Thread Chris Fossenier
We have a large database that consists of 1 table with 400 fields. I know, the first thing you are thinking is normalize, it's not an option right now and the database gets reloaded every 3 months. The table contains marketing data so it is not as easy to normalize as an employee database, or

Left Join takes too long

2004-01-26 Thread Jacque Scott
I have a fairly simple query where I feel it takes too long to run. SELECT Products.NSIPartNumber,Products.Cost, Products.ModelNo, Products.USPrice, Products.VendorPart, Products.Description , Products.ProductID, Sum(tblInvTransaction.Qty) AS SumOfQty FROM Products LEFT JOIN tblInvTransaction ON

Re: Left Join takes too long

2004-01-26 Thread Daniel Kasak
Jacque Scott wrote: I have a fairly simple query where I feel it takes too long to run. SELECT Products.NSIPartNumber,Products.Cost, Products.ModelNo, Products.USPrice, Products.VendorPart, Products.Description , Products.ProductID, Sum(tblInvTransaction.Qty) AS SumOfQty FROM Products LEFT JOIN

Re: Memory Problems on G5/OSX/MySql4.0.17

2004-01-26 Thread Adam Goldstein
Yes, I saw this port before... I am not sure why I cannot allocate more ram on this box- It is a clean 10.3 install, with 10.3.2 update. I got this box as I love OSX, and have always loved apple, but, this is not working out great. Much less powerful (and less expensive) units can do a better

Re: Index Creation Bottlenecks

2004-01-26 Thread mos
At 12:23 PM 1/26/2004, you wrote: We have a large database that consists of 1 table with 400 fields. I know, the first thing you are thinking is normalize, it's not an option right now and the database gets reloaded every 3 months. The table contains marketing data so it is not as easy to

Re: Left Join takes too long

2004-01-26 Thread Jacque Scott
In Access 2.0 and mySQL Products.ProductID is indexed but tblInvTransaction.ProductID is not. I tried to set tblInvTransaction.ProductID as indexed but it still took a long time. Daniel Kasak [EMAIL PROTECTED] 1/26/2004 12:18:46 PM Jacque Scott wrote: I have a fairly simple query where I

Re: Left Join takes too long

2004-01-26 Thread mos
At 02:18 PM 1/26/2004, you wrote: Jacque Scott wrote: I have a fairly simple query where I feel it takes too long to run. SELECT Products.NSIPartNumber,Products.Cost, Products.ModelNo, Products.USPrice, Products.VendorPart, Products.Description , Products.ProductID, Sum(tblInvTransaction.Qty) AS

RE: Index Creation Bottlenecks

2004-01-26 Thread Chris Fossenier
Mike, Thanks for the input. I also received this tip from Peter of the MySQL team. We'll see if it works. Chris. -Original Message- From: mos [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 3:03 PM To: Chris Fossenier Cc: MySQL List Subject: Re: Index Creation Bottlenecks

Re: Memory Problems on G5/OSX/MySql4.0.17

2004-01-26 Thread Brent Baisley
Have you tried reworking your queries a bit? I try to avoid using IN as much as possible. What does EXPLAIN say about how the long queries are executed? If I have to match something against a lot of values, I select the values into a HEAP table and then do a join. Especially if YOU are going

Export Database Structure sans data

2004-01-26 Thread David Perron
Im looknig for the function that will allow me to export the database structure into a static file, without the actual data. I would like to create an ERD diagram with the output file. David

Re: Left Join takes too long

2004-01-26 Thread Brent Baisley
How did you determine the bottleneck was the left join? I would have thought it was the WHERE clause. I'd be curious what the times are on these queries: SELECT count(*) FROM Products LEFT JOIN tblInvTransaction ON Products.ProductID = tblInvTransaction.ProductID Where ((NSIPartNumber Like

Re: Export Database Structure sans data

2004-01-26 Thread Daniel Kasak
David Perron wrote: Im looknig for the function that will allow me to export the database structure into a static file, without the actual data. I would like to create an ERD diagram with the output file. David mysqldump -d -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77

Re: Memory Problems on G5/OSX/MySql4.0.17

2004-01-26 Thread Adam Goldstein
The primary server (Dual Athlon) has several U160 scsi disks, 10K and 15K rpm... Approximately half the full size images are on one 73G U160, the other half on another (about 120G of large images alone being stored... I am trying to get him to abandon/archive old/unused images). The

Re: Memory Problems on G5/OSX/MySql4.0.17

2004-01-26 Thread Adam Goldstein
I have added these settings to my newer my.cnf, including replacing the key_buffer=1600M with this 768M... It was a touch late today to see if it has a big effect during the heavy load period (~3am to 4pm EST, site has mostly european users) I did not have any of these settings explicitly set

Re: Export Database Structure sans data

2004-01-26 Thread Adam Goldstein
phpMyAdmin also give a nice, simple frontend for doing this... copy tables or db's with/without data. Personally, I don't think mysql should be used on a box without phpMyAdmin on it, at least as a backup admin tool;) -- Adam Goldstein White Wolf Networks http://whitewlf.net On Jan 26, 2004,

MaxDB

2004-01-26 Thread Sidar LC.
Can I install MaxDB 7.5 on Suse 9? If yes How? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Left Join takes too long

2004-01-26 Thread Jacque Scott
The first query that you wrote took 5.93 seconds with count of 523. The second query took so long I aborted it. The way I figured it was the 'Left Join' was by running the following query. #1: This takes out the join and sets 'Products.ProductID = tblInvTransaction.ProductID' to join the two

Re: Left Join takes too long

2004-01-26 Thread Jacque Scott
Mike, I used Explain and I don't see anything that says indexes. I use the Control Center for all of my stuff. Would it show in there? 88 rows are returned both in mySQL and Access. Brent Baisley [EMAIL PROTECTED] 1/26/2004 2:03:10 PM How did you determine the bottleneck was the left

RE: Index Creation Bottlenecks

2004-01-26 Thread Donny Simonton
Chris, We have found the same thing, the more indexes you add the longer it takes to add another index. This is because at least from what I understand is the index/MYI file is recreated when you add another index. I don't know enough about INNODB but based on what I do know you would do much

InnoDB development

2004-01-26 Thread Chris Nolan
Hi all, I've been away from the list for a while and am wondering if the following question has been answered: Given that the extremely funky InnoDB is going to gain a new file format in the future, would it be a fair guess to say that any additions to InnoDB requiring file format changes would

can't install DBI on panther

2004-01-26 Thread tait sanders
i've run both 'perl -MCPAN -eshell' and 'make DBI' and both come back reporting heaps of errors like the following: from Perl.xs:1: /System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE/perl.h:380: 30: sys/types.h: No such file or directory

updates on slave server??

2004-01-26 Thread Mike Mapsnac
Hello I found today that some data on slave server were different than on master server. I don’t know how that can happen. Slave server was running, show slave status show no errors If I make some updates on slave server. Does this updates will be reflected on master server? Or slave cannot

Installation Direcotry Question

2004-01-26 Thread Bret Jordan
Setup: MySQL 4.0.17 Source Install, Linux 2.4.20 I am trying to specify the locations of the lib, include, and share directories with the configure script. When I use a --prefix (as is mentioned in the manual in section 2.1.8) I get the locations such as lib/mysql, include/mysql, share/mysql.

Re: can't install DBI on panther

2004-01-26 Thread Douglas Sims
I installed DBI and dbd:mysql on 10.3.2 a few months ago and had all sort of problems but I finally got it to work. I don't exactly remember what finally did it, though. I think it might have been running the install with sudo, as in: sudo perl -MCPAN ... etc. but I'm not sure. If you

Re: can't install DBI on panther

2004-01-26 Thread tait sanders
i'm already logged in as SU so sudo won't help. thanks anyways. ta tait On 27/01/2004, at 12:12 PM, Douglas Sims wrote: I installed DBI and dbd:mysql on 10.3.2 a few months ago and had all sort of problems but I finally got it to work. I don't exactly remember what finally did it, though. I

Startup error on 4.0.15

2004-01-26 Thread Kev
I just installed the server logistics package of mysql 4.0.15 and am getting the following error entry in the error log on attempting to start the server: 040126 20:43:45 mysqld started /Library/MySQL/libexec/mysqld: ERROR: unknown variable 'innodb_buffer_pool_size = 70M' 040126 20:43:45

Search multiple fields across multiple tables

2004-01-26 Thread Erich Beyrent
Hi everyone, Sorry to ask this question, because this is going to get complicated... Okay - what I need to do is be able to search for data across multiple fields which are organized in multiple tables. Here is a basic description of my database schema (not quite all of the fields...): Table

Re: updates on slave server??

2004-01-26 Thread Paul DuBois
At 0:49 + 1/27/04, Mike Mapsnac wrote: Hello I found today that some data on slave server were different than on master server. I don’t know how that can happen. Slave server was running, show slave status show no errors If I make some updates on slave server. Does this updates will be

querying tables in the url address?

2004-01-26 Thread Chris Ripley
What is the general format for querying a database using hyperlinks? example: http://www.site.com/page? (then what?) I can't seem to find an easy way to do that? -C = Chris Ripley [EMAIL PROTECTED] KOZE Radio __ Do you Yahoo!? Yahoo! SiteBuilder - Free web

Re: querying tables in the url address?

2004-01-26 Thread Bret Jordan
Anything after the ? is a URL variable and you can use that in your Perl code by referencing the $ENV{'QUERY_STRING'}. A quick hack example (you will obviously want to check to make sure the data is what you think it is and does not contain garbage stuff:: $someData = $ENV{'QUERY_STRING'};

Re: can't install DBI on panther

2004-01-26 Thread Adam Goldstein
Fink works excellent for DBI, and even for mysql. You can also change the mysql.info file to add compiler options, like G5 optimizations, openssl, etc. http://fink.sourceforge.net/ -- Adam Goldstein White Wolf Networks http://whitewlf.net On Jan 26, 2004, at 8:50 PM, tait sanders wrote:

Re: Startup error on 4.0.15

2004-01-26 Thread Adam Goldstein
Try commenting out the entry in the file /Library/MySQL/var/my.cnf If it does not exist, copy one of the files from /Library/MySQL/dist/my-small,medium,large.cnf renamed to the above location, or, to /etc/my.cnf Though, you may want to try uninstalling the package and reinstalling it