Re: Changing own password on 3.x

2005-01-31 Thread Sasha Pachev
uot; of this user, he needs to log in from each of his "personality" hosts, and set it on a case-by-case basis. -- Sasha Pachev AskSasha Linux Consulting http://www.asksasha.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: disappearing data

2005-01-31 Thread Sasha Pachev
the records or something crazy like that, and this will help you detect it. -- Sasha Pachev AskSasha Linux Consulting http://www.asksasha.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: FULLTEXT index on InnoDB tables (looking for a workaround)

2005-01-28 Thread Sasha Pachev
option is to contact Heikki and coax him into hiring somebody to add FULLTEXT to InnoDB tables. -- Sasha Pachev AskSasha Linux Consulting http://www.asksasha.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Data in different tables or is one big table just as fast?

2005-01-28 Thread Sasha Pachev
the most recent items. You need to add an ORDER BY some timestamp DESC for it to work right. I would, however, be seriously concerned about diskspace if a table is adding 200 MB a day with no archiving/compression/purges. -- Sasha Pachev AskSasha Linux Consulting http://www.asksasha.com -- MySQ

Re: Date Conversion on Mysql 4.0.2

2005-01-28 Thread Sasha Pachev
o_date, but it keeps failing. Looks like it's not in version 4.0.2? Minh: Your options are: * upgrade to 4.1 * parse and convert the date in your applications * use an ugly combination of SUBSTRING() and CASE to parse out the date * write a UDF implementing STR_TO_DATE() * backport STR_TO_DATE

Re: Why MySQL is very slow in dropping indexes?

2005-01-28 Thread Sasha Pachev
ity. Also note that in MyISAM all keys are stored in one MYI file. So dropping a key is not as easy as just deleting a file. -- Sasha Pachev AskSasha Linux Consulting http://www.asksasha.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscrib

Re: How big is too big?

2005-01-27 Thread Sasha Pachev
es for when the trouble starts is largely application dependent. -- Sasha Pachev AskSasha Linux Consulting http://www.asksasha.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Doubt about Performance

2005-01-18 Thread Sasha Pachev
#x27;ll do fine on modern hardware - this query under those curcumstances should take the order of maginitude of 0.01 s. However, if you have more records in the table, and the WHERE clause is not optimized, things could get bad, and this time the query cache does not save you. -- Sasha Pachev Crea

Re: use of soundex in queries

2005-01-13 Thread Sasha Pachev
_id = 1 and b.doc_id = 2 and a.col_soundex = b.col_soundex and name_soundex.col_soundex = a.col_soundex -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: use of soundex in queries

2005-01-01 Thread Sasha Pachev
ems like a struggling user prints a lot. You cannot be 100% sure about the cause and effect relationship, though, but trying to go printless might activate something that speeds up skill acquisition. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List

Re: Multiple MySQLs on Mandrake 9.x?

2004-12-30 Thread Sasha Pachev
side. Just install 4.1 under a different root (e.g /opt/mysql-4.1), and make sure to fix up mysqld_safe from 4.1 to read the correct my.cnf 4.1 should be a fairly safe bet at this point if you mostly use the features that are from 4.0. -- Sasha Pachev Create online surveys at http://www.surveyz.com

Re: Install fails

2004-12-30 Thread Sasha Pachev
ainst incompatible libraries. Another option is dig deep into Solaris and try to figure out the SUNW_1.4 mystery. Unfortunately, in the end the answer is still very likely to be that you just need to build your own binary. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL Ge

Re: A Complicated SELECT query

2004-12-30 Thread Sasha Pachev
s studying your problem, so it is very likely that I might have overlooked something. However, at this point it appears to me that you should just use two separate queries and a temporary table (or just post-process in the application) to get the results you need. -- Sasha Pachev Create online s

Re: MYSQLD and permissions

2004-12-30 Thread Sasha Pachev
12-29 08:36 mysql.sock drwxrwxr-x 2 root mysql 48 2004-12-28 09:49 test Russ: chown -R mysql.mysql /var/lib/mysql add user=mysql in /etc/my.cnf that should be enough, if for odd some reason it is not, read the error log, it will tell you what else needs to be fixed. -- Sasha Pachev Creat

Re: Weird server timeout problem

2004-12-30 Thread Sasha Pachev
our table for a long time once in a while. This would explain the results you are observing. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to speed up ANALYZE TABLE?

2004-12-30 Thread Sasha Pachev
mizer is making bad choices because of incorrect key statistics, you can instruct it to use the correct key with FORCE INDEX -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: MySQL tweaking.

2004-12-21 Thread Sasha Pachev
first. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MyISAM vs. InnoDB for heavily-indexed, read-mostly data

2004-12-21 Thread Sasha Pachev
os and cons of each engine for my particular situation? Homan: I believe in your situation MyISAM is better. I do not expect to see it becoming obsolete for at least another 5 years. If it does at some point in time, you will be able to run ALTER TABLE to covert to a better table type. -- Sasha P

Re: Help with a join query please!

2004-12-21 Thread Sasha Pachev
ser_ID AND A.Project_ID = '11' ORDER BY User_Firstname; Shaun: If I understand the problem right, it sounds like you are missing AND B.Bookings_ID is NULL in the where clause. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For

Re: How to create random table names on the fly

2004-12-18 Thread Sasha Pachev
that possible with MySql? Mauricio: I do not know of a way to do it without generating the name in the client langauge, or hacking MySQL source. However, MySQL 4.1 does support a subselect. This may solve the need for the temporary table creation in your case. -- Sasha Pachev Create online surve

Re: queries and mail function

2004-12-18 Thread Sasha Pachev
uld be appreciated. John: You are assigning to $myaddress outside of the loop after the row has been invalidated. Try while ($myrow = mysql_fetch_array($result)) { echo $myrow[Email]; $myaddress = $myrow[Email]; } -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Ma

Re: Newbie problem

2004-12-18 Thread Sasha Pachev
ny other MySQL mirror. The problem with sprintf() is that it does not check buffer boundaries, and does not escape the strings. snprintf() will check the boundaries, but you would have to do the escaping yourself. mysnprintf() will do both for you. If sprintf() fix/check does not help, get valgrind

Re: Very Slow preformance of mysql 4.1.7 innodb

2004-12-02 Thread Sasha Pachev
hen both reads and writes are small. With InnoDB it becomes particularly important that you use good keys. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Tunning Problem

2004-11-29 Thread Sasha Pachev
cting. Each time you connect, you have some overhead on the order of a few megabytes. Times 55, and you can easily eat up the remaining 300 MB. Also, mysqld is probably not the only process on the system. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing

Re: glibc & thread_stack

2004-11-29 Thread Sasha Pachev
nt you try to connect to it. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: host blocked, but can't see errors

2004-11-29 Thread Sasha Pachev
rrors will help. Also, try increasing connect_timeout. And set up a cron job that runs FLUSH HOSTS every so often. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.m

Re: relay log file maintenance problem

2004-11-29 Thread Sasha Pachev
rtition, or set max-relay-log-size to a lower value. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL Books

2004-11-19 Thread Sasha Pachev
that big of a minus. Due to the strong commitment of the MySQL team to backwards compatibility, most if not almost everything the book says applies to 4.1 and 5.0. It is just that the newer versions have some new features and options that the book does not cover. -- Sasha Pachev Create online

Re: 4.1.7 serious problems

2004-11-18 Thread Sasha Pachev
/errmsg.sys host: ssh host mkdir mysql-data ./mysqld --skip-grant --skip-net --datadir=`pwd`/mysql-data --language=`pwd` --socket=`pwd`/mysql-data/mysql-test.sock & you can now connect on socket `pwd`/mysql-data/mysql-test.sock and issue queries. -- Sasha Pachev Create online surveys at

Re: Optimizing MySQL

2004-11-18 Thread Sasha Pachev
uery that creates a temporary table. Enable log-long-format and try to figure out what those queries are. See if you can optimize the ones that are scanning a lot of rows by adding a key, or by convincing your developers to re-write them. -- Sasha Pachev Create online surveys at http://www.s

Re: Solaris 10 performance improvements??

2004-11-18 Thread Sasha Pachev
u may need to do some special tuning of Solaris to make it cache better. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: long update query does not replicate correctly (cont.)

2004-11-18 Thread Sasha Pachev
Przemyslaw Popielarski wrote: Sasha Pachev <[EMAIL PROTECTED]> wrote: Check if you have any replication restricting rules on the slave. There might be a bug that incorrectly flags a query to be excluded. If that is the case, then try to re-write the rules to see if you can get around the bug

Re: 4.1.7 serious problems

2004-11-18 Thread Sasha Pachev
sages file has the expected number. Otherwise, if you are within the same version, mysqld will be able to deal with all the files from the old one. Hmmm, ok. Do you think I should file a bug? Lenz is already looking at it. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ --

Re: long update query does not replicate correctly (cont.)

2004-11-12 Thread Sasha Pachev
uilding 4.1.7 from source - there was another user that was reporting a really strange crash that went away after he complied the binary himself. So there is some strong evidence that the standard MySQL 4.1.7 binary was not built properly, in which case, odd behaviour is to be expected. -- Sasha Pachev

Re: 4.1.7 serious problems

2004-11-12 Thread Sasha Pachev
ly like to know what is wrong when I'm using the binary distribution. Most likely a mistake of some kind on the part of MySQL AB. A similar problem has happened in the past. I hope somebody on the build team is listening. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -

Re: 4.1.7 serious problems

2004-11-12 Thread Sasha Pachev
Ugo Bellavance wrote: Sasha Pachev wrote: I tested the memory and it seems ok. I doubt this is an hardware issue, since version 4.1.3 works perfectly. Ugo: Do the production and the test server run on the same hardware? One is a single Athlon XP, the other is a dual Athlon MP. Are you using the

Re: InnoDB data files keep growing with innodb_file_per_table

2004-11-11 Thread Sasha Pachev
quite what you wrote to it in the first place due to OS/hardware problems. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: 4.1.7 serious problems

2004-11-11 Thread Sasha Pachev
not been compiled for the right processor type. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysqld segfaults.

2004-11-11 Thread Sasha Pachev
th indexes is ~1.4GB Running NetBSD 1.6.2 and mysql 4.0.21 What can cause these segfaults? and is there anything i can tune to get rid of them? Try lowering your sort_buffer_size and read_buffer_size - those are allocated per thread, and with a lot of connections can cause a memory shortage if they

Re: Master and slave with different versions

2004-07-21 Thread Sasha Pachev
4.0 to 4.0. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL GROUP, ORDER problem.

2004-06-14 Thread Sasha Pachev
TEMPORARY TABLE t1 (,UNIQUE KEY(size)) then INSERT IGNORE INTO t1 SELECT ... ORDER BY size,if(ServerName='primary_server',0,1) and then SELECT * FROM t1 DROP TABLE t1 A little convoluted, but nothing better really comes to my mind at this point. -- Sasha Pachev Create online surve

Re: Notifying User when DB is Updated via browser

2004-06-14 Thread Sasha Pachev
minute or so. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: SSL Conections

2004-06-14 Thread Sasha Pachev
o do it in Visual Studio: Download the source, and load it in VS. Go to the Properties of mysqld, and where you can add Define statements, add HAVE_VIO and HAVE_OPENSSL (not WITH_OPENSSL). then compile the mysqld project, and you're done!" -- Sasha Pachev Create online surveys at ht

Re: R: query string make mysqld crash (mysqld 4.0.20)

2004-06-14 Thread Sasha Pachev
. It is, nevertheless, a bug, for the server to coredump on this. The code does thread stack checking to make sure it does not exceed the limit, but apparently it does miss some cases. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives

Re: Speed differences between joins and subqueries?

2004-06-04 Thread Sasha Pachev
it is even possible to write a machine subquery optimizer that will outperform a good human "optimizer" that re-writes them into something better digestible. Kind of like no super-smart JIT will ever beat a good C programmer on execution speed, although it might help with the develop

Re: Questions on index and 'order by'

2004-05-31 Thread Sasha Pachev
exing only a prefix of the address in the (name,address). Try key(name(16),address). In general, order by on a key or key part cannot use prefix-indexed fields. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Feature Request: UPDATE 'error codes' or mysql_affected_rows() to be more "accurate"

2004-05-31 Thread Sasha Pachev
or faster) you are looking at the order of magnitude of 10,000 per seconds. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL performance on FreeBSD compared to Linux

2004-05-21 Thread Sasha Pachev
thing I would check is if the kernel was configured to be SMP-cabaple/enabled. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysqld sock conflicts

2004-05-21 Thread Sasha Pachev
Greg Willits wrote: Greg Willits wrote: On May 20, 2004, at 11:08 AM, Sasha Pachev wrote: Greg Willits wrote: I have two mysql apps running on the same machine (OS X 10.3.3). A mysql 3.23.54 on port 14551, and a mysql 4.0.16 on 3306. Each has a config file specifying the port and a unique socket

Re: Join Issue

2004-05-21 Thread Sasha Pachev
) select serial,sum(cost) from conveyor,accessory where conveyor.serial = accessory.serial group by serial; select s.serial,s.cost as support_cost,a.cost as accessory_cost from support_cost s, accessory_cost a where s.serial = a.serial; -- Sasha Pachev Create online surveys at http

Re: upgraded hardware: new server is faster, but "GROUP BY" opera tions are slower???

2004-05-21 Thread Sasha Pachev
is written with a lot of care to use the CPU cache efficiently. Having a larger cache will compensate for the lack of CPU speed to a great extent. So the results do look about right. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list arch

Re: Copy a mysql user's permissions

2004-05-21 Thread Sasha Pachev
where db='db' and user='user1' and host='host'; update tmp_db set user='user2'; insert into db select * from db; drop table tmp_db; flush privileges; -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archi

Re: mysqld sock conflicts

2004-05-21 Thread Sasha Pachev
Greg Willits wrote: On May 20, 2004, at 11:08 AM, Sasha Pachev wrote: Greg Willits wrote: I have two mysql apps running on the same machine (OS X 10.3.3). A mysql 3.23.54 on port 14551, and a mysql 4.0.16 on 3306. Each has a config file specifying the port and a unique socket name in /tmp. They

Re: Heap table limitations

2004-05-20 Thread Sasha Pachev
heap tables? Amount of RAM + max_heap_table_size setting in the server. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: User information in the binlog (again...)

2004-05-20 Thread Sasha Pachev
back to that old thread? Shawn: Enable both log and log-bin. Then you can match the thread_id field in mysqlbinlog output with the Connect command and track down the user. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: h

Re: Table Relation Design Question

2004-05-20 Thread Sasha Pachev
to a normalized design. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Limit operations by condition

2004-05-20 Thread Sasha Pachev
irect access, they can either read no rows, or all of them. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysqld sock conflicts

2004-05-20 Thread Sasha Pachev
m would be to create small shell scripts called mysql-3 and mysql-4 that will connect to the right instance. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Multi-threading problems in MySql

2004-05-20 Thread Sasha Pachev
does not want to give up CPU, it will not be forced to do so. What platform is this on? In any case, my recommendation would be to do whatever it takes to keep that queyr from running for 2 minutes. Try to optimize it, or re-write it so it gets its data in small chunks. -- Sasha Pachev Create

Re: MySQL and NPTL

2004-05-18 Thread Sasha Pachev
Any particular reason to use 2.4.x vs 2.6.x from kernel for base? 2.6 has not been around long enough to prove itself, in my opinion. I know 2.4 will work well, but I cannot say the same about 2.6 with the same degree of confidence. -- Sasha Pachev Create online surveys at http

Re: MySQL and NPTL

2004-05-18 Thread Sasha Pachev
the trick does work. In three years of doing MySQL support I have learned this simple formula: RH kernel from 7.0 and newer + MySQL + high load = highly probable instability -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://li

Re: Comments/questions on "High Performance MySQL"

2004-05-17 Thread Sasha Pachev
uld find a good way to sell it, I would write it. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Counting multiple tables

2004-05-17 Thread Sasha Pachev
3 | f | |6 | f1 | |7 | ft1| +--++ 3 rows in set (0.00 sec) Once the bug gets fixed, you would not need to pad. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: "table marked as crashed", then repaired by "check"?

2004-05-14 Thread Sasha Pachev
bsequent modifications (delete/insert/update) have fixed or obscured the corruption * CHECK TABLE has a bug that resets some flag in the table status area which obscures the corruption -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Restore 20 gigabytes of binary logfiles

2004-05-12 Thread Sasha Pachev
the end of the last log. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: security and extended ascii characters

2004-05-12 Thread Sasha Pachev
ers in Europe won't have these problems? Chris: You need to use mysql_real_escape_string() on user input before you insert it. Then there will be no need on character code range limitations. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing Lis

Re: Saving PDF's as Blobs

2004-05-12 Thread Sasha Pachev
To verify - md5sum /path/to/fname, and compare that with select md5(content) where ... If that fails, file a bug report to MySQL developers after doing the regular nose pinching routine to make sure you are seeing things as they really are. -- Sasha Pachev Create online surveys at http://www.s

Re: unexpected create table as lock issue

2004-05-12 Thread Sasha Pachev
orts the transaction. If this is indeed a bug, I am sure Heikki would like to fix it ASAP. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Thread safeness

2004-05-12 Thread Sasha Pachev
elease it after mysql_store_result() returns. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Sorting Varchar

2004-05-11 Thread Sasha Pachev
all of the text is "By County." Ken: Consider having two columns - num_val, and text_val, and then order by num_val, text_val -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: fastest filesystem for MySQL

2004-05-11 Thread Sasha Pachev
a lot of read/write syscalls. To illustrate the difference - I recall a case when performance on MyISAM was terrible over NFS (well, that is to be expected), but once the table was changed to InnoDB, it improved drastically. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL

Re: Saving PDF's as Blobs

2004-05-11 Thread Sasha Pachev
s on the client, use some client language (C,Perl,PHP), call mysql_real_escape_string() on the contents of the file and insert the escaped string. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: Slow login

2004-05-11 Thread Sasha Pachev
ng to 3.23.58 or 4.0.18. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: replication problems

2004-05-10 Thread Sasha Pachev
useful help in the manual or archives when I searched for those errors. Gabriel: Check the master error log to see what binary log it is trying to read, and why the read is not successful, eg. ownership/permission problems. -- Sasha Pachev Create online surveys at http://www.surveyz.com

Re: mysqldump problem

2004-05-10 Thread Sasha Pachev
ficiet to restore. P.S. If you are using MyISAM, binary snapshot would work better for this much data. For InnoDB, hotbackup utility is a good investment. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: my.cnf setup

2004-05-10 Thread Sasha Pachev
_join). Enable log-slow-queries and log-long-format in my.cnf, then police the slow log fixing the queries/table schema as you go along. Start with the ones that examine most rows. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives:

Re: Problem running MySQL on MacOS X.3

2004-05-10 Thread Sasha Pachev
-h 127.0.0.1 instead to bypass the Unix socket and use TCP/IP. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Can't find host.MYD

2004-05-08 Thread Sasha Pachev
add debugging messages to mysqld_safe script (safe_mysqld in the older versions). -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Directory Permissions on files

2004-05-08 Thread Sasha Pachev
user that mysqld runs as must be able to read from and write to the table files. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Newbie question: difference between MySQL shipped w/ Linux distro and downloading from mysql.com

2004-05-06 Thread Sasha Pachev
of concern, try both and see which one performs better. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Hash Index

2004-05-06 Thread Sasha Pachev
index? Just curious, Lou Lou: Are you familiar with a hash data structure? If not, you can read here: http://ciips.ee.uwa.edu.au/~morris/Year2/PLDS210/hash_tables.html or other pages that Google finds for "hash data structure". -- Sasha Pachev Create online surveys at http://www.surveyz.com/

Re: Question on Modifying MySQL

2004-05-06 Thread Sasha Pachev
you. Jason: See http://dev.mysql.com/doc/mysql/en/Adding_native_function.html I also cover this subject in the last chapter of my book "MySQL Enterprise Solutions". -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: htt

Re: MySQL hotcopy problem (poor man's replication)

2004-05-05 Thread Sasha Pachev
nd it works different on different machines, I would start checking the RAM it make sure it is not going bad. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[

Re: optimization needed

2004-05-05 Thread Sasha Pachev
lot, this would help. * Create a record count summary table that will store the value of count(*) and update it in your application every time you insert or delete records -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.

Re: MySQL 100% CPU Spikes

2004-05-05 Thread Sasha Pachev
appear in the slow log * fix each one of them so it does not by adding the appropriate keys, rewriting it to be more efficient, and/or reorganizing the schema to avoid the slow queries -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives

Re: mysqld-threads

2004-05-04 Thread Sasha Pachev
machine. Does somebody know how I can add more "stand-by" threads for my mysqlds that mysqld become faster? The number of stand-by threads is controlled by thread_cache_size parameter. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For lis

Re: mysql-3.23.35.0 on AIX 4.3: CPU Hog

2004-05-04 Thread Sasha Pachev
AMD 1800+ (those can do 8000 indexed selects of one row per second). If some AIX fan wants to challenge my intuition with a benchmark, you are more than welcome. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http

Re: Why are compiled queries 50% slower than parsed queries

2004-04-29 Thread Sasha Pachev
once, and then run many times, rather than prepare each time. If that is indeed the case, send your code to MySQL developers and have them check out the performance bug. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http:/

Re: Build mysql 4.0.18 on Aix 5.2

2004-04-29 Thread Sasha Pachev
/mysql-4.0.18/extra' gmake: *** [all-recursive] Error 1 make: 1254-004 El código de error del último mandato es 2. Any idea ? At first glance, looks like a broken compiler. Very stranges that gcc would break like this. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MyS

Re: libmysql setting it's own signal handlers?

2004-04-29 Thread Sasha Pachev
f you really want to handle SIGPIPE while in the middle of a mysql call. In that case, recomple the client without --enable-thread-safe-client or hack the source. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysq

Re: Error 1236 corrupt binlog on master

2004-03-25 Thread Sasha Pachev
is a practical problem, and not just a study of how things work, I would suggest reporting the bug ( if this happened with the latest version), and resetting the replication. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://

Re: Mystifying mysqld memory usage explosion

2004-03-25 Thread Sasha Pachev
libc to the latest patch level? -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql as cluster service, failover causes broken replication

2004-03-25 Thread Sasha Pachev
the details to the MySQL developers. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: URGENT: Trying to recover MySQL DB on OSX 10.3.3

2004-03-24 Thread Sasha Pachev
and if so, correct it with an update query. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Mystifying mysqld memory usage explosion

2004-03-24 Thread Sasha Pachev
ing at all if you are not doing any queries. Based on the test results you have reported, I would put your libc as the primary suspect, and the next one would be bad build/compiler bugs. I would suppose that --skip-innodb just changes some memory allocation patters on startup, which possibly

Re: mysql as cluster service, failover causes broken replication

2004-03-24 Thread Sasha Pachev
y should keep reading from the old one until they catch up. Do they fail to roll over to the next one after finishing the old one? If yes, it would be a bug. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: What is Frequency of Master Binlog Dump to Slave

2004-03-24 Thread Sasha Pachev
slave connects and asks the master to give it a dump of its update log. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Replication errors...

2004-03-24 Thread Sasha Pachev
nd restart the slave SQL thread with "SLAVE START". We stopped at log ... I've seen it on my systems. The problem is a bug in DELETE in 4.0 that was fixed in 4.0.18. -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archiv

Re: Another Performance query

2004-03-24 Thread Sasha Pachev
tion for a workaround - add a column rev_reference with a key on it, update t1 set rev_reference = reverse(reference), and then do where rev_reference like '2332%'; -- Sasha Pachev Create online surveys at http://www.surveyz.com/ -- MySQL General Mailing List For list archives: http://list

Re: mysterious "can't connect" error message in our logs(2)

2004-03-24 Thread Sasha Pachev
} (...) The client should try again if the EINTR error was returned. Did we do something wrong in the configuration of the server or is this a tiny bug? Regards, Jigal. It's a bug. I would recommend to patch libmysql.c for now until MySQL developers fix it. -- Sasha Pachev Create online

  1   2   3   4   5   >