Re: Problem running MySQL on MacOS X.3

2004-05-11 Thread Gabriel Ricard
Did you configure MySQL and run the /usr/local/mysql/scripts/mysql_install_db to initialize your data directory? - Gabriel On May 10, 2004, at 5:21 PM, Tim Jarman wrote: I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and ran the binary installer (mysql-standard-4.0.18.pkg

replication problems

2004-05-10 Thread Gabriel Ricard
I'm not sure what's going on with our replication. Everything was working fine, then all of a sudden it stopped. I did STOP SLAVE; RESET SLAVE; LOAD DATA FROM MASTER and it completed after a few minutes, but when I checked SHOW SLAVE STATUS it no longer had any information about the master. I

MySQL Distribution and Shared Libraries

2004-04-21 Thread Gabriel Ricard
Why doesn't the MySQL binary distribution include the shared libraries? (At least, the Mac OS X version does not) I'd prefer to use this distribution, but I have to roll my own in order to get shared libs to use with PHP, Perl (for mytop), etc. - Gabriel -- MySQL General Mailing List For list

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:

Re: More OS X/mySQL problems

2003-12-22 Thread Gabriel Ricard
Have you run mysql_install_db? Does the mysql user have full permissions (read, write, execute) on the mysql data directory you created with mysql_install_db? - Gabriel On Dec 20, 2003, at 9:00 AM, Jon Pearse wrote: ... you can tell that this isn't going my way at all ... I've got mysqld

Re: Specs for a dedicated MySQL server

2003-12-08 Thread Gabriel Ricard
There's actually a MySQL Database Appliance out there. Have you looked at that yet? http://pogolinux.com/mysql/index.html You could run MySQL on any number of different machines. Intel, Athlon, PowerPC, etc. Linux, FreeBSD, Windows, Mac OS X. - Gabriel On Dec 7, 2003, at 4:41 PM, Defryn, Guy

Re: stress testing

2003-12-02 Thread Gabriel Ricard
On Dec 2, 2003, at 3:48 PM, Ari Davidow wrote: We have just put up a new MySQL 3.23.x on a modest Sun V120 with 1GB RAM and a few gig of hard disk space. We're running Solaris 2.8. Why are you using an old version of MySQL? MySQL4.0 is the recommend production version currently. We seem to be

Re: Any word on G5/64bit compiles of mysql?

2003-12-02 Thread Gabriel Ricard
Here are benchmarks for an optimized build of MySQL 4.0.16: (used -mpowerpc-gpopt and -mpowerpc64 gcc arguments) alter-table: Total time: 18 wallclock secs ( 0.03 usr 0.06 sys + 0.00 cusr 0.00 csys = 0.09 CPU) ATIS: Total time: 19 wallclock secs ( 8.65 usr 8.40 sys + 0.00 cusr 0.00 csys

Adding a New Slave to a Live Replication Master

2003-11-21 Thread Gabriel Ricard
I've got two database servers in production, one of which is a master for a handful of tables and the other is a slave for these few tables. I want to add an additional slave server without taking down the master to create a snapshot. Is it possible to just setup the replication for the slave

Re: Dirt Slow Query On Datetime Range...the saga continues

2003-11-12 Thread Gabriel Ricard
In order to make sure of a multi-column index, you have to order the WHERE clauses in the same order as the columns in the index. Since you query Realm first, then AcctStartTime, then AcctStopTime, MySQL would use an index on those columns in that order. You can either add a differently

Re: MySQL benchmarks on the G5: Jaguar vs. Panther

2003-11-10 Thread Gabriel Ricard
InnoDB as well, or if you use InnoDB tables only, then you should give innodb_buffer_pool_size a good portion of your RAM, and perhaps 16-32MB or so for innodb_additional_mem_pool_size. - Gabriel On Friday, November 7, 2003, at 06:32 PM, Jan Pieter Kunst wrote: At 13:21 -0500 07-11-2003, Gabriel

Re: Benchmark differences: Mac OS X - Linux

2003-11-07 Thread Gabriel Ricard
On Friday, November 7, 2003, at 09:05 AM, David Steinbrunner wrote: The Mac was HFS+ journaled. Disk: the stock Apple-supplied one. The Linux machine was a default SuSE 8.0 installation. ext2 as the filesystem? No idea about journaling. No SCSI or RAID, just an internal IDE disk. Both machines

Re: MySQL benchmarks on the G5: Jaguar vs. Panther

2003-11-07 Thread Gabriel Ricard
On Friday, November 7, 2003, at 03:06 AM, Jan Pieter Kunst wrote: Hardware: 1.8 GHz G5 with 1GB RAM Panther (Mac OS X 10.3) doesn't have the sudden slowness in the 'insert' test that Jaguar (Mac OS X 10.2) has. Total time for Panther is faster than total time for Jaguar (5561.00 secs vs.

Re: Issues with Mysql 4.0 and PHP in a production environment

2003-11-07 Thread Gabriel Ricard
We've been using PHP 4.3.x and MySQL 4.0.x for a few months now on our production systems and had encountered only one problem unrelated to PHP (an issue where LOAD DATA FROM MASTER would wipe out all of the tables in the database, even if it was just using wildcard replication for a few

Re: mysql processes

2003-11-07 Thread Gabriel Ricard
On Friday, November 7, 2003, at 01:21 PM, Hugh Beaumont wrote: Hi List, I've searched the archives and the web many times in the past for answers to the following questions but never really got a complete understanding of what is going on. Hopefully someone on the list will be able to take

Re: Benchmark differences: Mac OS X - Linux

2003-11-06 Thread Gabriel Ricard
On Thursday, November 6, 2003, at 11:38 AM, Jan Pieter Kunst wrote: I'd be curious what kind of numbers Panther shows. Once I get my xServe setup, just arrived, I'll try running some tests myself. I just installed Panther on my G5 at home. Unfortunately, for some reason I can't get the Perl

Re: InnoDB and raw tablespace

2003-11-05 Thread Gabriel Ricard
No, files can be bigger than 2GB. In OSX prior to Panther there is a 2GB per-process memory limit though. Then again, on anything other than the PowerMac G5 this doesn't matter because the G5 is the only Mac that can hold more than 2GB of RAM. - Gabriel On Tuesday, November 4, 2003, at 04:42

Re: Can dbx update Tables asynchronous, like ADO.

2003-11-05 Thread Gabriel Ricard
If you are referring to the dbx database abstraction layer extension for PHP, it is literally just a C-level wrapper for the database extensions it supports. If PHP's MySQL extension supports asynchronous table updates, then dbx will. What exactly are these asynchronous table updates anyways?

Re: Benchmark differences: Mac OS X - Linux

2003-11-05 Thread Gabriel Ricard
I'm not entirely sure what to do about the slow insert results, they are the slowest part no matter how you configure it, it seems. I've attached some benchmark results I ran on a dual 2GHz G5 for comparison. Both MyISAM and InnoDB. Here are the insert results though: MyISAM: insert: Total

Re: Benchmark differences: Mac OS X - Linux

2003-11-05 Thread Gabriel Ricard
FYI, I've found 'iostat' to be quite useful in monitoring the drive transfer rates while benchmarking in OSX. Then again, in Panther all you really need to do is pop open Activity Monitor (formerly Process Viewer) which now has some nifty graphing for system status: cpu, disk, ram activity and

Re: Mysql on panther

2003-11-05 Thread Gabriel Ricard
Are you using Panther client or server? my.cnf is usually in /etc. Have you run mysql_install_db yet? - Gabriel On Wednesday, November 5, 2003, at 05:57 PM, Nestor Florez wrote: Hi guys, I just was given the OK to play with a new server running Mac OS X (Panther) When I give the command (it

Re: Removing MySQL from OS X Jaguar

2003-11-05 Thread Gabriel Ricard
Any package that is installed in OSX leaves a receipt behind. Look in /Library/Receipts/. Each package leaves a directory in there. In each package's directory is a .bom file. Usually it's something like /Library/Receipts/PackageName.pkg/Contents/Archive.bom or

Re: InnoDB and raw tablespace

2003-11-04 Thread Gabriel Ricard
On Tuesday, November 4, 2003, at 11:25 AM, Harald Fuchs wrote: In article [EMAIL PROTECTED], Mark Lubratt [EMAIL PROTECTED] writes: I'm considering using the raw tablespace from InnoDB for a project I'm working on. I noticed a couple of years ago that there were reports of tablespace corruption

Re: InnoDB Questions

2003-11-04 Thread Gabriel Ricard
On Tuesday, November 4, 2003, at 07:58 AM, Leo Huang wrote: In InnoDB documentation, it suggests to add another file ibdata2 to get higher performance. Can I do that now, after I have created the ibdata1 and used it for a while? How exactly does this increase performance? Will InnoDB store some

Re: mysql 4.0.16/4.0.15a build fails on Mac OS X 10.3

2003-11-04 Thread Gabriel Ricard
Interestingly enough, when I configure 4.0.16 like this it builds ok: ./configure --prefix=/usr/local --sysconfdir=/ --enable-shared --with-server-suffix=-imax-G5 --with-mysqld-user=mysql --with-comment --with-query-cache --without-docs --with-innodb --enable-thread-safe-client --with-bench

Re: Optimizing table (so-called VACUUM on postgreSQL) and InnoDB

2003-10-30 Thread Gabriel Ricard
On Thursday, October 30, 2003, at 08:19 AM, Leonardo Rodrigues wrote: My question are: are these commands similar to VACUUM? What´s the difference? How can I run on InnoDB? I don't know much about PostgreSQL, so I'm not sure. If you describe what VACUUM does, I may be able to help explain how

mysql 4.0.16/4.0.15a build fails on Mac OS X 10.3

2003-10-28 Thread Gabriel Ricard
source='sort.c' object='sort.o' libtool=no \ depfile='.deps/sort.Po' tmpdepfile='.deps/sort.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include -O3 -DDBUG_OFF -c `test -f sort.c || echo './'`sort.c /bin/sh ../libtool --mode=link gcc -O3

InnoDB on Raw partitions in OSX (was Re: MySQL/InnoDB-4.0.16 is released + sneak peek of 4.1.1)

2003-10-27 Thread Gabriel Ricard
On Monday, October 27, 2003, at 07:45 AM, Chris Nolan wrote: 2. I personally use ReiserFS for all of my stuff, most of which is based upon InnoDB. One thing you have to remember is that InnoDB treats the space inside the tablespace as a Berkeley Fast Filesystem-style space, using the

Re: integer field

2003-10-23 Thread Gabriel Ricard
FYI, PHP will automatically convert the data type to an integer if to use increment it like that. Just like if you had $var = 123; and then did $var .= foo it would be converted into the string 123foo. If you're still unable to change the value of $myrow, then I would consult the PHP mailing

Re: Innodb vs myisam

2003-10-23 Thread Gabriel Ricard
I thought I read a message on this list that said you can't use full text indexes with InnoDB yet. Can anyone confirm that? - Gabriel On Thursday, October 23, 2003, at 11:50 AM, Travis Reeder wrote: I'm sure this has been asked before, but after seeing some benchmarks, it looks like using

Re: Mysql Performance Question

2003-10-21 Thread Gabriel Ricard
On Tuesday, October 21, 2003, at 12:48 PM, Rainer Sip wrote: I'm running a community site (Xoops) on Mysql 4.0.14. I found that the speed of my site is slow during peak hours, when there are 450 concurrent uers hanging on the site. Mytop showed that the queries per second maxed at 500. I

gemini

2003-10-21 Thread Gabriel Ricard
Someone recently asked about Gemini tables on this list and it got me curious about what ever happened to that technology... NuSphere still seems to exist, and they still sell their PHPEd product along with the NuSphere Technology Platform which appears to contain a build of MySQL. Did they

Re: mysql to mssql query

2003-10-21 Thread Gabriel Ricard
Well, even if you don't find an alternative for that syntax, you could always do the date subtraction in application space and make the query like this: SELECT * FROM myTable WHERE date_field = '2003-10-12' - Gabriel On Tuesday, October 21, 2003, at 05:49 PM, DevList wrote: Does anybody

Re: Check for data before inserting

2003-10-17 Thread Gabriel Ricard
FYI, as I stated in a previous email, INSERT . ON DUPLICATE KEY UPDATE is only available in MySQL 4.1+, which is still in development and not recommended for production use. - Gabriel On Friday, October 17, 2003, at 04:04 AM, Director General: NEFACOMP wrote: The REPLACE

Re: Fixed Font

2003-10-17 Thread Gabriel Ricard
Agreed. Most emails are sent to the list in plain text format, which does not include and font or style information. You could do that with HTML formatted emails, but I imagine a large number of people would dislike reading HTML email if their mail client cannot render it. - Gabriel On

Re: Challenging query....

2003-10-16 Thread Gabriel Ricard
I think the closest you can get is something like this: SELECT YEAR(TheDate) AS Year,MONTH(TheDate) AS Month,CustomerName,CustomerID,SUM(Revenue*Quantity) AS Revenue FROM rev GROUP BY Year, Month ORDER BY Year,Month,CustomerID A table with this data:

Re: Challenging query....

2003-10-16 Thread Gabriel Ricard
Or you could just do one simply query as I explained previously, retrieve the data in PHP, and group it by date rather than spending the same time in PHP generating a massive, inefficient query (and if you have a large number of customers, you won't generate a query larger than the maximum

Re: Challenging query....

2003-10-16 Thread Gabriel Ricard
will be a simple multi-dimensional array with a minimal SQL query and minimal application code. Jeff -Original Message- From: Gabriel Ricard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 1:47 PM To: Jeff McKeon; [EMAIL PROTECTED] Subject: Re: Challenging query Or you could just do one

Re: Challenging query....

2003-10-16 Thread Gabriel Ricard
. Jeff -Original Message- From: Gabriel Ricard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 2:11 PM To: Jeff McKeon Cc: [EMAIL PROTECTED] Subject: Re: Challenging query On Thursday, October 16, 2003, at 02:04 PM, Jeff McKeon wrote: Do this query: SELECT YEAR(TheDate

Re: Anyone using MySQL 4.x on Apple's G5?

2003-10-16 Thread Gabriel Ricard
On Thursday, October 16, 2003, at 01:36 PM, Jeremy Zawodny wrote: On Wed, Oct 15, 2003 at 06:35:03PM -0400, Gabriel Ricard wrote: On Wednesday, October 15, 2003, at 03:10 PM, Jeremy Zawodny wrote: I'd be interested to know if you can get a test running that uses either a key_buffer

Re: Anyone using MySQL 4.x on Apple's G5?

2003-10-15 Thread Gabriel Ricard
I am currently testing this on a new dual 2GHz G5 with 4GB of RAM. Seems pretty nice so far. I've loaded up a copy of our production database (4GB of data for real estate web sites) and moderate property search queries of ours run much faster than on our dual G4 MDD PowerMac. I guess we're

Re: Anyone using MySQL 4.x on Apple's G5?

2003-10-15 Thread Gabriel Ricard
wrote: Wow, new dual processor G5... behaviordrool/behavior How are the bulk operations performing? -Original Message- From: Gabriel Ricard [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 11:05 AM To: [EMAIL PROTECTED] Subject: Re: Anyone using MySQL 4.x on Apple's G5? I am

Re: OR in MySQL statement?

2003-10-15 Thread Gabriel Ricard
You can do it exactly like that, or you could use the IN() syntax if you have a large number of values to check. SELECT * FROM list WHERE name IN('$this1', '$this2', '$this3') - Gabriel On Wednesday, October 15, 2003, at 04:16 PM, Mike At Spy wrote: How could I write a statement that uses

Re: Anyone using MySQL 4.x on Apple's G5?

2003-10-15 Thread Gabriel Ricard
On Wednesday, October 15, 2003, at 03:10 PM, Jeremy Zawodny wrote: I'd be interested to know if you can get a test running that uses either a key_buffer or an innodb_buffer_pool in the 3.5GB range. Interestingly enough, I can't seem to get MySQL to use more than 2GB of RAM. I get errors like

Re: how-to: benchmarking and query analysis?

2003-10-14 Thread Gabriel Ricard
I've just finished reading through most of the MySQL Enterprise Solutions book by Alexander Pachev and I think you might want to take a look at it. There is a section that deals with testing and MySQL benchmarking tools. These tools are available in the mysql/sql-bench (if your MySQL was

storing tables in ram / compressed myisam tables

2003-10-09 Thread Gabriel Ricard
So, we just got this handy dandy new G5 with 4GB of RAM and I'm trying to get it to store as much of our 4.3GB database in RAM as possible. I've tuned most of the usual parameters (query cache, tmp table size, sort buffer, key buffer, record buffer, table cache, myisam sort buffer, etc.) but

mysql memory usage

2003-09-18 Thread Gabriel Ricard
Is there any way to see what MySQL is storing in memory? Like, for instance, what is stored in the query cache, or at least what tables have data stored in the query cache, and how much they have stored? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

MySQL 4.0.x LOAD DATA FROM MASTER wiping out tables...

2003-09-09 Thread Gabriel Ricard
the replicated tables? Gabriel Ricard iMaxSales.net -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

problems with replication in mac os x

2002-07-08 Thread Gabriel Ricard
-- Gabriel Ricard [EMAIL PROTECTED] - 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

Re: InnoDB books

2002-03-25 Thread Gabriel Ricard
Core MySQL ISBN: 0130661902 http://shop.barnesandnoble.com/booksearch/isbnInquiry.asp?isbn=0130661902 [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 25 March 2002 07:59 To: Sean O'Donnell Subject: Re: InnoDB books Your message

building latest mysql on mac os x

2002-03-25 Thread Gabriel Ricard
of 3.23.50 or .49a, whichever is more stable, on OS X soon. So if there isn't one available then I guess I'll build it myself. Are there any known issues with building these versions on Mac OS X? Thanks, Gabriel Ricard - Before

Re: MySQL running on a MacOSX webserver - issues?

2002-03-25 Thread Gabriel Ricard
We've been using MySQL 3.23 in OSX on our production servers for about 6 months now. The system was in development for over a year prior to that. We have a legacy application in RealBASIC (it's not my fault!) that uses ODBC to issue numerous REPLACE queries to the database on an hourly basis

Re: Impact of Free ORACLE

2002-03-25 Thread Gabriel Ricard
Since when? Even if Oracle was free, it would still take a bit of convincing for me to want to switch from MySQL. Unless of course they decided to port to OSX and release that for free, oh and while they're at it, cut out all the Java garbage that has no business residing in a database.

Re: database and web servers

2002-03-21 Thread Gabriel Ricard
As long as you've got a fat pipe on both ends speed could be ok. But, then again, you never know. Some backhoe in Nebraska could cut your sweb server off from your database. Of course you'll want it to be secure as well. MySQL 4 has support for SSL. I suppose you could setup an ssh port

Status of InnoDB support.

2002-03-21 Thread Gabriel Ricard
to 3.23.49(a?), or if I should just download the source and build it myself? Thanks, Gabriel Ricard - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list

Re: select speed

2002-03-19 Thread Gabriel Ricard
enough, using LIMIT 1 in the query did speed it up, so it only took 0.01 seconds, however, using EXPLAIN with that query showed that it wasn't using the index at all. That really confuses me... - Gabriel Ricard _ Do You Yahoo!? Get

select speed

2002-03-18 Thread Gabriel Ricard
? Is it perhaps because of where the records are situated on the hard disk (seek times)? Is it maybe a caching issue? Thanks for any help. - Gabriel Ricard - Before posting, please check: http://www.mysql.com/manual.php

Re: select speed

2002-03-18 Thread Gabriel Ricard
key_buffer is 384M, table1.MYI is 17.5MB. Jeremy Zawodny wrote: On Mon, Mar 18, 2002 at 11:39:09AM -0500, Gabriel Ricard wrote: Greetings, We're running MySQL 3.23.47 on MacOS X 10.1.2. We've got a rather large table ( 200,000+ records, 120+ columns) and some simple queries on that table have

Re: MySQL | Company | Contact Us

2002-03-18 Thread Gabriel Ricard
I'd highly recommend just downloading the binary distribution from mysql.com. Works great for me. Jim Weber wrote: Friends, I am trying to install MySQL on a Powerbook G$ running Mac OS 10.1.3 and am having problems. I've followed your instructions and installed Fink but when I go to