Server variables forced to be read-ony on MySQL 5.1.18

2007-05-16 Thread Giorgio Zarrelli
Hi, I compiled from source on Ubuntu server 64 bit, the new 5.1.18, using the my.cnf from 5.1.17 to run it. In the error log file now I see the following warnings: 070516 10:51:08 [Warning] Server variable data_file_path of plugin InnoDB was forced to be read-only: string variable without upda

Tuning server variables

2006-03-08 Thread Jan Pieter Kunst
Dear all, Two questions about server variables tuning. 1) key_buffer_size stores MyISAM indexes; innodb_buffer_pool_size stores InnoDB indexes and rows. So the innoDB buffer would need more space in general. It sounds like a good idea, if the number and size of MyISAM and InnoDB tables is

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-23 Thread Hank
Based on the size (and # of colums) of your result set, I'm not sure any amount of RAM would allow 360,000 records to be stored and sorted entirely in memory. After some point, mysql just decideds to use a temp table. That's the limit of my tweaking skills, so someone else is going to have to hel

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-23 Thread Grant Giddens
Thanks James. I'll definately give that a try. My test server has 1 gig of ram. In the my-huge.cnf example it says that it's mainly for servers that have mysql as the main process. On my production server, I have 1 gig of ram, but it also runs apache, mutliple webstites, mysql, DNS, ftp

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-23 Thread James Harvard
The reason I suggested that you just use the alternative my-huge.cnf file is because that is a ready-prepared config file optimised for systems with lots of RAM for MySQL to use. You don't need to know which variable to change - it's already done for you. You may want/need to tweak stuff later,

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-23 Thread Grant Giddens
Thanks Hank. I'll try to split up the query into 2 separate queries. I think that the reason the original query is so slow is that I don't have enough RAM allocated to mysql. When the original query takes place, I see a process "Copying to tmp table on disk". I believe it's writing all t

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-22 Thread Hank
> Now that I know what's causing the slow queries, what can I do to fix it? The only thing I can suggest is breaking up the query into two parts - the first part to retrieve just the product codes and salesrank, and sort and limit that.. save in a temp table or use application code to retrieve and

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread Grant Giddens
OK, I tried the following queries: 1. Use the ORDER BY and not the LIMIT <-- still slow 2. Use the LIMIT and not the ORDER BY <-- fast So it looks like it's building a whole temp table with all the items and then doing the ORDER BY. Just as a test, I removed the INDEX fr

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread Grant Giddens
It'll be a few hours before I get home and can do this query with the variations you mentioned. I don't know if I need the separate index key on `salesrank` or not. I thought it would speed up my query be having it. In the previous email I included the results from doing an EXPLAIN. It

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread Hank
Ok, so the next step would be to try the original query with just the LIMIT clause, and then just the ORDER BY (but not both). The results of "select count(*)" query would be helpful to know just how many records mysql is trying to sort and limit. And do you really need a separte index key on `sa

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread Grant Giddens
OK guys, Here is are my tables and test SELECT queries. Before every query I did a FLUSH TABLES command. Before starting these test, I did and ANALYIZE and OPTIMIZE on all the tables. Hopefully the formatting of this email isn't too bad. product table: show create table pn

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread SGreen
Hank <[EMAIL PROTECTED]> wrote on 12/21/2005 09:39:50 AM: > Grant, > > You can just to a "desc pn_pricecompare_catprod" and "desc > pn_pricecompare_product" and post the results. The CREATE TABLE > statements would be OK, but the describes are better. > > The flush the query cache, I think if

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread Hank
Grant, You can just to a "desc pn_pricecompare_catprod" and "desc pn_pricecompare_product" and post the results. The CREATE TABLE statements would be OK, but the describes are better. The flush the query cache, I think if you do a "flush tables". -Hank -- MySQL General Mailing List For list

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread James Harvard
That's why I suggested simply using the supplied my-huge.cnf config file, because I assume it was contructed by some MySQL uber-guru who does know how much RAM to allocate to each variable! James Harvard > Like I mentioned before, I am tweaking the .cnf files by blind trial and > error. I w

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread Grant Giddens
Thank Hank. I will try this. When you say the table descriptions, do you mean for me to post my CREATE TABLE syntax of how I created the table? Thanks, Grant Hank <[EMAIL PROTECTED]> wrote: I don't think the problem is going to be solved with the my.cnf file. Here's what I would try

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread Hank
I don't think the problem is going to be solved with the my.cnf file. Here's what I would try.. 1- run and time the original query without the ORDER BY or LIMIT clauses 2- run and time the following breakdown queries, to see if the indexes are at least working correctly: -- test catprod SELECT

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread Grant Giddens
r variable. Here is a link to my current server variables: http://retailretreat.com/mysql/server_variables.php.htm Here is a link to my current my.cnf file: http://retailretreat.com/mysql/my.cnf.txt Here is a link to my proposed my.cnf file. I'm not sure if there are any errors

Re: Do I need to tweak my server variables for this SELECT statement?

2005-12-21 Thread James Harvard
I've recently been doing some big table query optimisation, but after getting the query tweaked to hit the right index the query time is under very livable-with, despite the fact that MySQL seems to be examining more rows for my query than for yours. However the 'rows' column of thhe explain out

Do I need to tweak my server variables for this SELECT statement?

2005-12-20 Thread Grant Giddens
er than trial and error, I really don't know what I'm doing. Here is a link to my current server variables: http://retailretreat.com/mysql/server_variables.php.htm Here is a link to my current my.cnf file: http://retailretreat.com/mysql/my.cnf.txt Here is a link to

Optimizing server variables for unindexed queries

2005-04-03 Thread Jan Pieter Kunst
LIKE '%...%', most of them also having an ORDER BY. Both MyISAM and InnoDB tables. What would be the best server variables to tune in that case? I can think of these: sort_buffer, tmp_table_size, perhaps read_rnd_buffer_size? Do these make sense? Any other ideas? Thanks, Jan Pieter Kunst -- MySQL

Optimizing server variables for unindexed queries

2005-03-26 Thread Jan Pieter Kunst
Greetings, Suppose I have a MySQL server which processes lots of queries that cannot use indexes on VARCHAR fields because they involve REGEXP clauses and LIKE '%...%', most of them also having an ORDER BY. Both MyISAM and InnoDB tables. What would be the best server variables to tu

Server Variables

2004-04-21 Thread Kumar
hello list, i have high performance dell server. i want to increase Read_Buffer_Size server variable to 5 MB. i have found docs on this in mysql site. like this mysqld_safe --key_buffer_size=64M --table_cache=256 \ --sort_buffer_size=4M --read_buffer_size=1M & where i type that

Server variables

2003-05-31 Thread Terry Riley
This may be a PHP rather than MySQL issue I'm using 4.0.13 on Windows XP and Apache 1.3. My phpinfo() shows (among others) QUERY_STRING and REQUEST_URI in the Apache environment and _SERVER["QUERY_STRING"] with _SERVER["REQUEST_URI"] under the PHP variables. On my ISP, who is running W2K/I

server variables

2001-05-15 Thread peet klomp
hello, is it possible to set server varibales through SQL and if so what user-rights do i need? thanx in advance regards peet