Re: logging of BAD queries

2010-02-09 Thread Sebastian Mendel
related queries in the general query log. Does the general log include invalid SQL? I've also tried to use the driver logging, but on Windows it overwrites with the last SQL command so I cannot get a good capture as requests are sent to the DB. DB is MySQL 5.0.x you can try MySQL proxy -- Sebastian

Re: mysqld memory usage

2009-02-02 Thread Sebastian Tennant
wanna bring the memory usage down? WordPress blogs. Why, because my VPS is very low-powered. I have PostgreSQL installed as well and it uses less than 1.5% of memory when idle. Sebastian -- Emacs' AlsaPlayer - Music Without Jolts Lightweight, full-featured and mindful of your idyllic

Re: mysqld memory usage

2009-02-02 Thread Sebastian Tennant
. Most people have not migrated to 5.1 yet, and many people are using versions older than 5.0 . Fair enough. It's 5.0.51a-21 on 32 bit Intel Xeon. Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch

Re: mysqld memory usage

2009-02-02 Thread Sebastian Tennant
of RAM so mysqld is using about ~ 21 MB when idle. Sebastian -- Emacs' AlsaPlayer - Music Without Jolts Lightweight, full-featured and mindful of your idyllic happiness. http://home.gna.org/eap -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

No delivery of list mail

2009-02-01 Thread Sebastian Tennant
Hi all, I use Gmane (http://gmane.org) to read/post to mailing lists as news groups. Is there any way of switching off delivery of mail from this list whilst remaining subscribed? I've had a look around and there doesn't appear to be... Regards, Sebastian -- Emacs' AlsaPlayer - Music Without

mysqld memory usage

2009-02-01 Thread Sebastian Tennant
version. Is there anything I can do to bring this figure down? Any advice/tips/pointers much appreciated. Regards, Sebastian -- Emacs' AlsaPlayer - Music Without Jolts Lightweight, full-featured and mindful of your idyllic happiness. http://home.gna.org/eap -- MySQL General Mailing List

Re: Upgrade from 4.0.26 to 5.0.67

2008-08-22 Thread Sebastian Mendel
, but don't forget to run mysql_convert_table_format after upgrade (beside mysql_fix_privilege_tables) -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Install MySQL on Windows XP

2008-08-20 Thread Sebastian Mendel
Now i do not know what to do,Can someone help me? My english is not well.Do i speak clearly? take a look into your mysql error log, windows event viewer most common reason for not starting mysql is missconfigured InnoDB -- Sebastian Mendel -- MySQL General Mailing List For list archives: http

[phpMyAdmin] please vote or suggest features

2008-07-21 Thread Sebastian Mendel
Hi, for all you people out there loving phpMyAdmin ;-) please visit http://hackontest.org and vote for or suggest your favorite feature you would like to see in phpMyAdmin and that can be implemented within 24 hours by a team of three Thank you very much! -- Sebastian Mendel -- MySQL

Re: Do I need to use GROUP BY to do this?

2008-06-18 Thread Sebastian Mendel
? SELECT `sales_date`, COUNT(*) FROM `sales_activity` WHERE `sales_type` = 1 GROUP BY `sales_date` -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: delete a data from 3 tables

2008-06-17 Thread Sebastian Mendel
exactly is the problem? What exactly did you tried? What was the error? How are the foreign keys defined? -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Function Still Not Working

2008-06-12 Thread Sebastian Mendel
lettercase conversion, convert the string to a non-binary string: mysql SET @str = BINARY 'New York'; mysql SELECT LOWER(@str), LOWER(CONVERT(@str USING latin1)); -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com

Re: improve performance on FULLTEXT search.

2008-06-12 Thread Sebastian Mendel
| Using where | ++-+---+--+--+--+-+--+--+-+ 1 row in set (0.05 sec) -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Re: batch in a read loop

2008-06-11 Thread Sebastian Mendel
your quotes are wrong, did you tried mysql -u $DBUSER --password=$DBPASS --batch --execute=update -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Index/Range Problem?

2008-06-10 Thread Sebastian Mendel
) | +---+ | 85232 | +---+ 1 row in set (0.97 sec) rows is how many rows MySQL thinks it must examine to execute the query, not the number of rows possible returned http://dev.mysql.com/doc/refman/5.1/en/using-explain.html -- Sebastian Mendel -- MySQL General Mailing List For list

Re: mysql query, min, max with where conditions

2008-06-09 Thread Sebastian Mendel
= copy_low.pk AND copy_low.date 100 -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Serializing mySQLi result resource in PHP

2008-06-09 Thread Sebastian Mendel
into the eAccelerator cache but the resource returned by eA does not appear to be recognised by mysqli_fetch_assoc. than you need to fetch the result, and store this result like any other array, but not the resource -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: Matching subtables

2008-06-09 Thread Sebastian Mendel
AND T.val = Q.val HAVING ISNULL(Q.ID) OR ISNULL(T.ID) ) -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Dump problem

2008-06-09 Thread Sebastian Mendel
?? with SET NAMES, you tell MySQL which charset it should use to return content to you, or which charset has the content you send to the server http://dev.mysql.com/doc/refman/5.1/en/charset-connection.html -- Sebastian Mendel -- MySQL General Mailing List For list archives: http

Re: Learning best methods

2008-06-05 Thread Sebastian Mendel
`) FROM `domain_payments` GROUP BY `Domain`) you can also save this as a VIEW btw. `Domain` should have an index, and i think `Invid` and `Custid` too -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

Re: mysqld-nt Windows service: delay btwn svc running and accepting conx

2008-06-05 Thread Sebastian Mendel
MySQL is doing, with times you could also prioritize background processes instead of desktop processes to speedup MySQL start -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: ordered list of titles, with fallback if title is only available in another language

2008-06-05 Thread Sebastian Mendel
Jack Bates schrieb: Given columns a, b, and c, where I GROUP BY a, how do I get the value of column b in each group which corresponds to the maximum value of column c? http://dev.mysql.com/doc/refman/5.0/en/example-maximum-column-group-row.html -- Sebastian Mendel -- MySQL General Mailing

inserting client time instead of server time

2008-05-13 Thread Sebastian Mendel
Hi, is there a way or a function like NOW() except it returns the client time and not the server time? -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: connectors: per session persistent connection (PHP)

2008-05-08 Thread Sebastian Mendel
Paul DuBois schrieb: On May 7, 2008, at 4:36 AM, Sebastian Mendel wrote: Hi, wouldn't it be very helpful if mysql connectors support some sort of per session persistent connection? this would save a lot of queries in many apps, for example SET NAMES, setting variables, creating temporary

connectors: per session persistent connection (PHP)

2008-05-07 Thread Sebastian Mendel
this? -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: connectors: per session persistent connection (PHP)

2008-05-07 Thread Sebastian Mendel
isn't this the general mysql list? isn't mysqlnd maintained by mysql? Michael Dykman schrieb: This is a little off-topic for this list (recent PHP tutorials nowithstanding)... replying offline On Wed, May 7, 2008 at 5:36 AM, Sebastian Mendel [EMAIL PROTECTED] wrote: Hi, wouldn't

Re: Optimizing table (shall I create a primary field?)

2008-04-30 Thread Sebastian Mendel
with numeric ISBN -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql variables

2008-04-30 Thread Sebastian Mendel
will be omitted, and writes/reads go directly to the disk and not the RAM (cache) you do not need to worry about loosing data caused by a full cache -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

Re: running optimize/analyze command

2008-04-28 Thread Sebastian Mendel
, there would be lot of fragmention, so i used the analyze table table_name; command to defragment it, it took close to 12 hrs. Is there any better and faster way to analyze or optimize the table to defragmentation. having a fixed row length will prevent tale fragmentation -- Sebastian -- MySQL

Re: Table Design

2008-04-25 Thread Sebastian Mendel
to search this index ... -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Aggregation question

2008-04-24 Thread Sebastian Mendel
at this problem for the whole day and did not make much of a progress. If someone has any idea how to resolve this problem, I'll appreciate a tip greatly. a similar question was just answered on this list about 15 hours before your question ... http://lists.mysql.com/mysql/212457 -- Sebastian

Re: TO_DAYS Date Range Question

2008-04-24 Thread Sebastian Mendel
(TO_DAYS([Q_start]), TO_DAYS([date_start])) -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Slow Queries

2008-04-24 Thread Sebastian Mendel
bet is to rewrite the query as UNION clauses with one of your WHERE conditions in each. I know it sounds crazy, but before MySQL 5 the use of indexes with OR queries was not very good. IMHO not in this case, cause it is just a simple WHERE field IN () -- Sebastian Mendel -- MySQL General Mailing

Re: Slow Queries

2008-04-24 Thread Sebastian Mendel
', '$rcpt_dom'); you could also vary with thee index length if wite_what. and what indexes do you have currently exactly? -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Php-mssql connection problems on Windows XP

2008-04-24 Thread Sebastian Mendel
in my personal E-mail address also. $username instead of '$username' same for '$password' but what has this to do with MySQL??? -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Php-mssql connection problems on Windows XP

2008-04-24 Thread Sebastian Mendel
Padiyath Sreekumaran schrieb: Hello Sebastian, Thanks for your mail. But I donot see any difference in my $username and yours except '(). what surprise, yes, thats it! you have to use no quotes at all (or doublequotes) around variables, RTMF is this case the one from PHP but what has

Re: Slow Queries

2008-04-24 Thread Sebastian Mendel
. and what indexes do you have currently exactly? id - is the primary and has an index type btree wite_what - is a unique and has an index type of btree so this looks all ok, i am not sure if the query time includes the time if the query needs to wait for locked tables ... -- Sebastian -- MySQL

Re: TO_DAYS Date Range Question

2008-04-24 Thread Sebastian Mendel
David Perron schrieb: Hi Sebastian- Wanted to follow up on this. I figured out the problem. You actually have to use the LEAST GREATEST operators when comparing multiple values, this statement works perfectly. LEAST(EndDays,Q2EndDays) - GREATEST(Q2StartDays,StartDays) as DaysInQ2

Re: a strange problem

2008-04-23 Thread Sebastian Mendel
and/or rebuild the indexes? -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Weird result on max compared to order by

2008-04-23 Thread Sebastian Mendel
is the right value ) I was wondering why it didn't gave me the same value and after some time doing a select max gave me the right value Y seems your index was corrupted -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: SQL question: find items tagged with specific tags

2008-04-23 Thread Sebastian Mendel
Ingo Weiss schrieb: Thanks, Sebastian! I have tried this one before. The problem is that it finds all items the tags of which include EITHER 'blue' OR 'red', not 'blue' AND 'red': oh ... and ..., i missred SELECT DISTINCT items.* FROM items INNER JOIN taggings

Re: a strange problem

2008-04-23 Thread Sebastian Mendel
liaojian_163 schrieb: thank you Sebastian! I have re-created the table.there are not any problems in the table. if the table is new,need to rebuild de indexes? no -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: Symlink InnoDB tables without stoping MySQL

2008-04-23 Thread Sebastian Mendel
/innodb-init.html -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Rewriting query to avoid inline view

2008-04-23 Thread Sebastian Mendel
://www.pastie.org/185419 You can generate the values with the integers table. http://www.xaprb.com/blog/2005/12/07/the-integers-table/ i knew that you would answer this ... ;-) -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: auto_increment

2008-04-22 Thread Sebastian Mendel
`name`='ostrich' in WHERE, cause grp,id are already UNIQUE your key is grp,id (bird,2) but your query will fail, because there is already grp,id (mammal,2) and therre can not be two identical UNIQUE (PRIMARY) keys -- Sebastian -- MySQL General Mailing List For list archives: http

Re: auto_increment

2008-04-22 Thread Sebastian Mendel
Sebastian Mendel schrieb: Hiep Nguyen schrieb: hi list, reading manual on mysql regarding auto_increment with multiple-column index: CREATE TABLE animals ( grp ENUM('fish','mammal','bird') NOT NULL, id MEDIUMINT NOT NULL AUTO_INCREMENT, name CHAR(30) NOT NULL, PRIMARY KEY

Re: How hard is it to move from on server to another?

2008-04-22 Thread Sebastian Mendel
. It would even have the same IP address. additionally, depending on data size it could much more easier to just install our old HDD into the new server ... whether copy the data to the new HDD or sue the old ones ... -- Sebastian Mendel -- MySQL General Mailing List For list archives: http

Re: auto_increment

2008-04-22 Thread Sebastian Mendel
on all versions, and the example is from the MySQL manual http://dev.mysql.com/doc/refman/5.1/en/example-auto-increment.html -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Working with Images

2008-04-22 Thread Sebastian Mendel
set pic1=%s where id=%s;' instead of 'update products set pic1=%s where id=%s, ;' or even without ';' too and is this some sort of prepared statement, or are the parameters escaped somewhere else? -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: SQL question: find items tagged with specific tags

2008-04-22 Thread Sebastian Mendel
' SELECT DISTINCT items.* FROM [your join above] WHERE tags.name IN ('blue', 'red'); -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Can't get a login shell for some databases

2008-04-18 Thread Sebastian Mendel
means connecting as localhost by default, connecting from PHP can be some different server and/or PHP uses the full IP address/hostname of the server check/compare the privileges for your users for 'localhost' and '%' -- Sebastian -- MySQL General Mailing List For list archives: http

Re: Can't get a login shell for some databases

2008-04-18 Thread Sebastian Mendel
the second non root user I created – it has just one line and shows localhost as the host. All the rest of the users I created show the % character in the host column. would be much more easier if you would send this output here (with faked names, passwords and hosts ...) -- Sebastian

Re: grant user privileges

2008-04-16 Thread Sebastian Mendel
Sebastian Mendel schrieb: Hiep Nguyen schrieb: hi all, i have an existing database (internal) with a user named 'admin', everything works fine as far as privileges concern. i just created a new database (test) and want to grant admin's privileges on test as same as internal. how do i do

Re: why doesn't mysql select the correnct index?

2008-04-15 Thread Sebastian Mendel
, MySQL should not need to investigate any row at all for this query, it should satisfy this query from the index, without looking up any row so this is a bad example -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com

Re: Incorrect results from sum

2008-04-15 Thread Sebastian Mendel
this is wrong? use UNION http://dev.mysql.com/doc/refman/5.0/en/union.html -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: changing name of tables into UPPER CASE

2008-04-15 Thread Sebastian Mendel
case when table names are in uppercase you have also write this in your queries: select * from TABLE_NAME or read: http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: Incorrect results from sum

2008-04-15 Thread Sebastian Mendel
Perrin Harkins schrieb: On Tue, Apr 15, 2008 at 4:21 AM, Sebastian Mendel [EMAIL PROTECTED] wrote: use UNION You can't use UNION to add the results of two queries. It would return two rows. of course! you need to use this UNION as subquery sorry for being not imprecise -- Sebastian

Re: update select question

2008-04-15 Thread Sebastian Mendel
on newslettercontent and set its timestamp column to be the publishdate from the newsletter table using the join rules in that query. Is there a way to do that in a query? yes, you can, see multi-table update http://dev.mysql.com/doc/refman/5.0/en/update.html -- Sebastian -- MySQL General Mailing List

Re: grant user privileges

2008-04-15 Thread Sebastian Mendel
connecting _TO_ the database. -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Two MySql servers, but very different performances for a SELECT JOIN

2008-04-14 Thread Sebastian Mendel
their replies (except from Rub Wulsch)? -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: why doesn't mysql select the correnct index?

2008-04-14 Thread Sebastian Mendel
catalyst framework. why do you want to FORCE INDEX? did you tried an index(user_id, group_id)? -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: why doesn't mysql select the correnct index?

2008-04-14 Thread Sebastian Mendel
Changying Li schrieb: Sebastian Mendel [EMAIL PROTECTED] writes: Changying Li schrieb: Hi. there is a table photo and two queries: mysql show index from photo; mysql

Re: ORDER BY calculated field

2008-03-20 Thread Sebastian Mendel
Products ON Products.ProductID = ProductsPurchases.ProductIDGROUP BY Products.ProductID ORDER BY varProductCount+Products.ProductReviewDESC ORDER BY COUNT(ProductsPurchases.ProductID) -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Re: ORDER BY calculated field

2008-03-20 Thread Sebastian Mendel
Neil Tompkins schrieb: Hi I want to order by the totalled fields varProductCount and Products.ProductReviewDESC just put them together, separated with comma, like it is written in the manual ORDER BY varProductCount + Products.ProductReviewDESC, COUNT(ProductsPurchases.ProductID) -- MySQL

Re: ORDER BY calculated field

2008-03-20 Thread Sebastian Mendel
Sebastian Mendel schrieb: Neil Tompkins schrieb: Hi I want to order by the totalled fields varProductCount and Products.ProductReviewDESC just put them together, separated with comma, like it is written in the manual ORDER BY varProductCount + Products.ProductReviewDESC, COUNT

Re: ORDER BY calculated field

2008-03-20 Thread Sebastian Mendel
Neil Tompkins schrieb: Thanks Sebastian, but I now get the error message [MySQL][ODBC 3.51 Driver][mysqld-3.23.58]Invalid use of group function i am not familiar with ODBC or MySQL 3.x but possible just GROUP BY is missing check the manual for your mysql version for the exact syntax

Re: mysql privileges

2008-03-19 Thread Sebastian Mendel
from the hr table. But why not? According to the tables_priv table, super should have right to select. did you export/import your data, or just copied the data files from your old to the new MySQL? did you reload privileges after changes? FLUSH PRIVILEGES; -- Sebastian -- MySQL General Mailing

Re: Information schema question.

2008-03-19 Thread Sebastian Mendel
Carlos Savoretti schrieb: Hi all! Well, question is how could I to retrieve information about types supported. IMHO, no -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql privileges

2008-03-19 Thread Sebastian Mendel
created by mysqldump. i am not sure if mysqldump does include `mysql` database, but you will see if you look into it, you should run mysql_fix_privilege_tables after importing `mysql` database and FLUSH PRIVILEGES; -- Sebastian -- MySQL General Mailing List For list archives: http

Re: relational tables

2008-03-19 Thread Sebastian Mendel
? where do you want to see this drop-downs? MySQL is an database server, and i m not aware of any place where it would display any drop-downs, possible you speak of some sort of GUI, like MySQL Admin or phpMyAdmin? -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: how to use index with order by here

2008-03-18 Thread Sebastian Mendel
the result is large. yes. of course, size matters, if your whole DB is small enough you will not even get any performance impacts without any index ... ;-) but it requires more resources, or? -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: [ANN] PBXT storage engine version 1.0-Alpha released

2008-03-18 Thread Sebastian Mendel
available sooner or later? -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: how to use index with order by here

2008-03-17 Thread Sebastian Mendel
` ) this will not prevent filesort, because the results still needs to be sorted for ORDER BY time, or? i would try INDEX(`id_from`, `id_to`, `time`) but i am not sure if this will help, cause of this two IN() -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: db design

2008-03-17 Thread Sebastian Mendel
design is better to do. search for: nested sets or something similar -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Select Statement

2008-03-12 Thread Sebastian Mendel
is that there is duplicate supcode in a. When running this query I often have c values which does not relate to supcode. yes, because c is JOINED by `code` and not by `subcode` with a and a.code=c.code -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

cursors

2008-03-12 Thread smriti Sebastian
Hi all, I tried to implement a cursor using the following statement: create procedure curdemo() begin declare cursor1 cursor for select SID from customer; I have a customer table with a field SID. BUt I am getting an error ERROR 1064 (42000): You have an error in your SQL syntax; check the manual

reg: on delete cascade

2008-03-11 Thread smriti Sebastian
I created two tables like this: create table customer(SID int,name varchar(20),primary key(SID)); create table orders(OID int,O_Date date,customer_SID int,primary key(OID),Foreign key(customer_SID) references customer(SID) on delete cascade on update cascade); And inserted values into it.but when

Re: Updating rows in a table with the information from the same table

2008-03-11 Thread Sebastian Mendel
LIMIT 1 ) WHERE a.price = 0; -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MYSQL FUNCTIONS

2008-03-10 Thread Sebastian Mendel
a time service would record once the current time, and than always just send this recorded time ... wired, not? -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Select Statement

2008-03-10 Thread Sebastian Mendel
is that there is duplicate supcode in a. When running this query I often have c values which does not relate to supcode. yes, because c is JOINED by `code` and not by `subcode` with a and a.code=c.code -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Re: Reverse index

2008-03-06 Thread Sebastian Mendel
is, is this worth it? It certainly seems to be faster to me, but not as much as I expected. I did try originally subtracting from 0, but that caused the rankings to be incorrect.. -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com

Re: how to select total votes for each comment?

2008-03-05 Thread Sebastian Mendel
BY comments.id -- Sebastian Mendel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Importing and exporting from MySQL, escape slash problem

2008-03-05 Thread Sebastian Mendel
practice for preserving my database as is when backing up and restoring? this 'bug' is unknown to me, did you tried to reproduce on phpMyAdmin demo servers? http://pma.cihar.com/ http://wiki.cihar.com/pma/Getting_Help -- Sebastian -- MySQL General Mailing List For list archives: http

Re: /tmp/mysql.sock dissapears

2008-02-29 Thread Sebastian Mendel
reason why this happens and there are no errors, no core files, nothing - the file just disappears. why do you need to kill if the socket is missing? does $/etc/init.d/mysqld stop|restart not work without a socket? -- Sebastian -- MySQL General Mailing List For list archives: http

Re: /tmp/mysql.sock dissapears

2008-02-29 Thread Sebastian Mendel
on in the stop loop. does MySQL still respond on network connections when the socket is 'gone'? -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Changing data types in mysql!

2008-01-23 Thread Sebastian Mendel
fields from integer to varchar's as am not doing any arithmetic with those fields. Does anyone see any issues with this approach ? Will this break any of the existing functionality when i move from INT to varchar's ? it will require more space sorting will change -- Sebastian -- MySQL General

Re: adding then removing index produces different query results

2008-01-23 Thread Sebastian Mendel
) drop index 5) execute same query takes 0.2 seconds and uses a different method of returning results from the original query in 1) 6) restart mysql 7) execute query takes 2 minutes query cache, os cache, or some other cache -- Sebastian -- MySQL General Mailing List For list archives: http

Re: Packing list sort

2008-01-22 Thread Sebastian Mendel
| +--+-++ you need to add an additional field like 'priority' and do ORDER BY priority DESC, species ASC -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Newbie: A single number

2008-01-21 Thread Sebastian Mendel
the '47' SELECT COUNT(comment_agent) from wp_comments WHERE comment_agent LIKE '%Linux%' GROUP by comment_approved -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Query optimization

2008-01-21 Thread Sebastian Mendel
AND filter.port_dst=boxplot.low AND filter.port_dst=boxplot.low what you are trying to do? and how about formating your query in a human readable way? did you tried EXPLAIN? what type of syntax is this: boxplot(pF.port_dst,LOW) ? -- Sebastian -- MySQL General Mailing List For list archives: http

Re: Handling Special Characters

2008-01-20 Thread Sebastian Mendel
having to write a program to do this. use UTF-8 for text files use SET NAMEs to correctly MySQL what charset you are using -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Is there any determined date for mysql 6 release?

2008-01-20 Thread Sebastian Mendel
http://dev.mysql.com/doc/refman/6.0/en/storage-engine-overview.html -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: generating numbers from other fields

2008-01-18 Thread Sebastian Mendel
() or as operator: | -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: select

2008-01-18 Thread Sebastian Mendel
2000-05-18 how do i construct my select statement so that i only get distinct year? so the above data will return something like this: sDate 2000 1999 1998 1997 did your tried: SELECT DISTINCT YEAR(`sDate`); -- Sebastian -- MySQL General Mailing List For list archives: http

Re: creating temp file, modifying data and putting into other table

2008-01-18 Thread Sebastian Mendel
to answer. did you tried with lowercase table names (ttable1) too? -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: performances and optimization in multiple join queries

2008-01-17 Thread Sebastian Mendel
table_A to this, and not otherwise -- Sebastian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: does 'disable networking' make mySQL faster?

2008-01-16 Thread Sebastian Mendel
be either a host name or an IP address. Passing the NULL value or the string localhost to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol. http://php.net/mysqli_connect -- Sebastian Mendel -- MySQL General Mailing List For list

Re: [SPAM] - Re: OT: Sun to buy Mysql - Email found in subject

2008-01-16 Thread Sebastian Mendel
Richard Heyes schrieb: Will this bring good things to MySQL? $800,000,000 tends to bring good things. Hopefully. :-) ??? why, this payment goes to current owners and investors, not to MySQL itself ... but anyway, using Suns structures and power will help of course ... -- Sebastian

Re: Ghost Tables

2008-01-15 Thread Sebastian Mendel
OldManRiver schrieb: I uploaded the mysql console screenshot at: http://www.sitepoint.com/forums/showthread.php?t=525160 this requires a login ... why not just post (copy and paste) the console output, with all the commands and results your where trying to execute? -- Sebastian -- MySQL

Re: does 'disable networking' make mySQL faster?

2008-01-15 Thread Sebastian Mendel
disable networking speedup MySQL?) On Jan 14, 2008 6:54 PM, Sebastian Mendel [EMAIL PROTECTED] wrote: Moon's Father schrieb: On Jan 14, 2008 7:00 AM, Daevid Vincent [EMAIL PROTECTED] wrote: I saw this on the PHP list and was wondering if there is any merit to it?! I would be surprised

  1   2   3   >