Re: convertion to utf-8

2008-07-03 Thread Pooly
2008/7/1 Dan Nelson [EMAIL PROTECTED]: In the last episode (Jun 30), Pooly said: 2008/6/30 Dan Nelson [EMAIL PROTECTED]: In the last episode (Jun 29), Pooly said: Hi, I'm trying to convert my tables to UTF8 but I'm getting the following error: ERROR 1062 (23000): Duplicate entry

Re: convertion to utf-8

2008-06-30 Thread Pooly
Hi, 2008/6/30 Dan Nelson [EMAIL PROTECTED]: In the last episode (Jun 29), Pooly said: Hi, I'm trying to convert my tables to UTF8 but I'm getting the following error: ERROR 1062 (23000): Duplicate entry 'Zorglüb' for key 1 Not too sure why I'm getting this error since the current (latin1

convertion to utf-8

2008-06-29 Thread Pooly
Hi, I'm trying to convert my tables to UTF8 but I'm getting the following error: ERROR 1062 (23000): Duplicate entry 'Zorglüb' for key 1 Not too sure why I'm getting this error since the current (latin1) data are: mysql select * from topics_lookup where label like 'Zor%';

Warning about truncated data

2007-11-03 Thread Pooly
Hi, I'm reloading a backup and I'm getting loads of warnings like : +-+--++ | Level | Code | Message| +-+--++ | Warning | 1265 | Data truncated for column

Re: mysql_upgrade script problems on MySQL 5.0.24

2006-09-01 Thread Pooly
Hi, could it be this bug : http://bugs.mysql.com/bug.php?id=21011 2006/8/31, Whisler, David [EMAIL PROTECTED]: I've upgraded from 5.0.22 to 5.0.24 MySQL Server on Solaris 9 using the Solaris package utility (which means I de-installed 5.0.22 then installed 5.0.24 in the same location,

replication breaks

2006-08-29 Thread Pooly
Hi, I recently upgrade our master to MySQL 5.0.24. But, I changed on option to log_bin=server-log-bin, as a result the binary log has changed from server-bin.000228 to server-log-bin.01... So now, the slave throw me an could not find first log file in binary log index. I suppose I have to do

mysqlcc / mysql query browser

2006-08-18 Thread Pooly
Hi, MysqlCC not being in developement anymore and not working properly with a server 5.0, we are trying to use MySQL Query browser, but there are few things which are less than efficient compared to mysqlCC. - you can't execute several queries ! The query tab executes them one by one, and if

mysql_upgrade returning an error

2006-08-11 Thread Pooly
Hi, I upgraded one slave server from 4.0.23 to 5.0.24, and when I run mysql_upgrade I got the following error : ERROR 1060 (42S21) at line 22: Duplicate column name 'File_priv' what can I do ? -- http://www.w-fenec.org/ -- MySQL General Mailing List For list archives:

Re: transaction

2006-07-22 Thread Pooly
Hi, 2006/7/22, João Cândido de Souza Neto [EMAIL PROTECTED]: Ok Dan. Thanks a lot for your answer. An other doubt about transaction is in the foreign key case. If in a transaction i insert a certain register and get the last insert id and after i try to insert another register using this id

Re: How to look for balanced parenthesis?

2006-07-11 Thread Pooly
2006/7/10, Joerg Bruehe [EMAIL PROTECTED]: Hi Mike, all! mos wrote: I have a complicated SQL statement with around a dozen if(this,val1,val2) embedded in it and there are even nested If clauses. I'm getting syntax errors because I'm not balancing the ( ) properly. Is there any free

replication stopped

2006-07-06 Thread Pooly
Hi, recently, our slave stopped for a duplicate key error (which is a bug to me : http://bugs.mysql.com/bug.php?id=9929 ) How do you usually check automatically that slaves are up and running ? -- http://www.w-fenec.org/ -- MySQL General Mailing List For list archives:

Re: varchar(5) and select question

2006-07-04 Thread Pooly
Hi, 2006/6/29, Joerg Bruehe [EMAIL PROTECTED]: Hi Pooly, all, Pooly wrote: Hi, I stumbled on one issue yesterday which took me some time to figure out. the table is : create table tt ( PCname varchar(5) not null default ''); insert into tt values ('Centaure'); So, by mistake I

Re: Getting unique values

2006-06-29 Thread Pooly
Hi, 2006/6/28, Chris Sansom [EMAIL PROTECTED]: I'm sure this is an elementary problem, but I can't get my head round it. I have two tables: pix and sections, the relevant bits of which are: pix (2,421 rows): picid varchar(7) not null sectionid smallint(5) unsigned not

varchar(5) and select question

2006-06-29 Thread Pooly
Hi, I stumbled on one issue yesterday which took me some time to figure out. the table is : create table tt ( PCname varchar(5) not null default ''); insert into tt values ('Centaure'); So, by mistake I inserted names which were too long for the field, but then I tried to do queries on this

Re: Version Numbers - Precedence

2006-06-24 Thread Pooly
2006/6/24, Asif Lodhi [EMAIL PROTECTED]: Hi, Mathematically speaking, the 5.0.22 I am using came _before_ 5.0.5. mathematically speaking, there no such number like 5.0.5 anyway... 5.05 perhaps... MySQL are numbered according to a X.Y.Z release number. X : is the major version, where major

Re: a tricky join

2006-06-21 Thread Pooly
Hi, 2006/6/21, Helen M Hudson [EMAIL PROTECTED]: Yes, I can see how this would work for just the one order and hardcoding the 100... but I cannot assume only to sum distinct values and my table has other order_refs in it with the same multiple rows of over multiple days, so I need a more

Re: Sql optimization

2006-06-20 Thread Pooly
2006/6/20, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi All, I am using INNODB.I have a delete quetry something like this : delete from modnaptrrecord_zone where modnaptrrecord_zone.modnaptrrecord_id in (593536 ,593537 ,593538 ,593539 ,593540 ) and modnaptrrecord_zone.modnaptrrecord_id

Re: The number of left join in one SQL statement.

2006-06-16 Thread Pooly
Hi, 2006/6/16, Takanobu Kawabe [EMAIL PROTECTED]: [snip] I tried this statement without error. But Ihave some questions. 1.How many left join keywords can I use in one SQL statement if there are 5000 datas in one table? as this blog point out, its 31 or 61 depending

Re: Subquery Problem With mysql-4.0 (Works with mysql-5.0)

2006-06-05 Thread Pooly
2006/6/5, MySQL Nexeia [EMAIL PROTECTED]: I face one problem with mysql4.0 I've two tables, one called company and the other called favorites. The relation between those two tables is CO_ID on the company table and MASTER_CO_ID on the favorites table. When I run the following query it works

Re: Need help querying a database of polynomials

2006-05-31 Thread Pooly
2006/5/31, Peter Brawley [EMAIL PROTECTED]: Lew, If I have another polynomial, say the sum of terms 1,3,4, and 5, how can I quickly search this database to see if it's already been stored? SELECT DISTINCT polynomial_id FROM polynomial p1 INNER JOIN polynomial p2 ON p1.term_id=1 AND

Re: Easy regex replace?

2006-03-20 Thread Pooly
a script for such simple things which would be like having a jack hammer for a nail.. ) -- Pooly Webzine Rock : http://www.w-fenec.org/

Re: insert my_ulonglong data with C API

2006-03-15 Thread Pooly
.printf_and_wprintf_functions.asp try : sprintf(s,%I64d\n,ull.id); -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Rollback is not take effect on MySQL 5.0.18

2006-03-13 Thread Pooly
) ^^ RollBack is NOT take effect. But on WindowsXP, it is GOOD. What is wrong ? Did you check if the table are innoDB ? -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Re: Rollback is not take effect on MySQL 5.0.18

2006-03-13 Thread Pooly
=0 in my.cnf , but ROLLBACK is still not effect. Could you teach me more ? Thanks and best regards, - Original Message - From: Pooly [EMAIL PROTECTED] To: MySQL General mysql@lists.mysql.com Sent: Monday, March 13, 2006 5:13 PM Subject: Re: Rollback is not take effect on MySQL

Re: Change on LEFT JOIN ON syntax in 5.x?

2006-02-20 Thread Pooly
for some reason. Does anyone have any hints about this? http://dev.mysql.com/doc/refman/5.0/en/news-5-0-12.html precedence of comma has been change to conform to standards. So you'll have to use arenthesis or rewrite your query. -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General

Re: Perl MySQL

2006-02-18 Thread Pooly
you have a broken dependency. (If you use debian : apt-get install libdbd-mysql-perl ) -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: unix_timestamp + milliseconds support?

2006-02-09 Thread Pooly
could be acceptable as well (you only store millisecond with a precision of 1/8 second). -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Last access time of a table

2006-02-04 Thread Pooly
Otherwise, you could try to use the binlog. The filesystem sure would be easy though... for mysql 5.0 show table status -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com

Re: How NOT to log SHOW INNODB STATUS in the query log.

2006-01-26 Thread Pooly
PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Estimated Drive Space Requirements

2006-01-25 Thread Pooly
/5.0/en/storage-requirements.html Without any more details, we can't help you precisely. Pretend there's no indexes for now. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock

Re: CHAR vs TEXT and fast Row Updates

2006-01-17 Thread Pooly
operation always writes 2K of text to the field? - e.g. will this avoid MySQL having to 'free up' the space for the field, then re-allocate 2K again for it. space is not reclaimed after deletion until you run an : optimize table. -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General

Re: Stepping into libmySQL.dll with VC6

2006-01-16 Thread Pooly
the debug version, and off you go. Quiet useful to debug buggy query strings :-D -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Histogram from tables.

2006-01-13 Thread Pooly
(pics.date) FROM dates left join pics on year(dates.date)=year(pics.date) and quarter(dates.date)=quarter(pics.date) WHERE year(pics.date) '2000' AND year(pics.date) ' 2005' GROUP BY year(dates.date), quarter(dates.date) -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing

Re: left join record in one joined table and not in another

2006-01-12 Thread Pooly
to the new order of precedence for the JOIN operator? comma operator has lower precedence than join now : http://dev.mysql.com/doc/refman/5.0/en/news-5-0-12.html -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: mysql 5 - disk bound - fixed

2006-01-11 Thread Pooly
: http://dev.mysql.com/doc/refman/5.0/en/create-table.html FTFM : You can create one table from another by adding a SELECT statement at the end of the CREATE TABLE statement: CREATE TABLE new_tbl SELECT * FROM orig_tbl; -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing

Re: autoincrement for year

2005-12-28 Thread Pooly
-increment.html So, if the year is generated by your application or with YEAR(), you could do what you want. (For MyISam and BDB tabel types) -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: INSTALLING MYSQL 5.0 ON LINUX DEBIAN 2.8

2005-12-23 Thread Pooly
with a linux kernel 2.6.8 ? then you're running sarge. Did you install the dev packages ? apt-get install termcap-dev -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Mysql 4.1 full table (nearly) - best practice to alter?

2005-11-18 Thread Pooly
Hi, 0. stop the web server or avoid hitting the db ! 1). Backup everything! :) the mysqldump should suffice. 2). do the alter The alter does already a create table with new data and then exchance table. You need 2x the storage space though. 3. do the opposite of 0. -- Pooly Webzine Rock

Re: differenced backup from sql dumps

2005-11-15 Thread Pooly
day? Any ideas?:) diff ? -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Does MySQL Support '=' Sign?

2005-11-11 Thread Pooly
2005/11/11, The Nice Spider [EMAIL PROTECTED]: Does MySQL support: SELECT ID_TAG= ID FROM TABLE rather than select ID TAG_ID from Table. I need this for MS SQL Compabilty. Did you try the AS keyword ? Select ID As ID_TAG from TABLE -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL

Re: vpn connectivity

2005-11-08 Thread Pooly
For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: LEFT JOIN problem

2005-11-05 Thread Pooly
(if it is exists) for a specific object_id. If it does not exists for that specific language_id, I want to have NULL. Have a try with : Select language_id,language_title,object_id,object_title FROM languages LEFT JOIN objects ON objects.object_language_id=languages.language_id -- Pooly Webzine Rock : http

Re: PHP/MySQL vs ASP/MSSQL?

2005-11-04 Thread Pooly
know ASP. I'm not sure if it's possible though (using ODBC ?). -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Input on Materialized Views

2005-10-20 Thread Pooly
it. Regards, Better, mark this view (or particular rows if it's not too expensive) as dirty and recompute it only on access, you may spare few cycles... -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Deadlock found when trying to get lock; try restarting transaction

2005-10-07 Thread Pooly
) { printf(%s : commit failed : %s\n, argv[1], mysql_error(mysql)); return 1; } printf(%s : Commit ok\n, argv[1]); } return 0; } -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List

Re: Easy or not so easy GROUP BY

2005-10-06 Thread Pooly
MySQL version, I can't give you a precise answer. HIMH -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: alter table

2005-10-04 Thread Pooly
, add CHG_DATE date not null default CURRENT_DATE on update current_date (not tested) -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Mysql Regular expression

2005-10-01 Thread Pooly
Binay -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: restore db from mysqldump I get different databases size

2005-10-01 Thread Pooly
in the same way, and may have empty spaces. If you optimized all tables in both database, you would then get the same size. -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

Re: MySQL Query Browser

2005-09-30 Thread Pooly
archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MyISAM to InnoDB

2005-09-29 Thread Pooly
) -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: varchar vs char speed improvement

2005-09-27 Thread Pooly
/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 10:38:25 up 2 days, 15:24, 6 users, load average: 0.71, 0.56, 0.35 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly

Re: ORDER BY for ints

2005-09-27 Thread Pooly
just iterating over the rows in the result in order, so not sure what would be applying another sort. or it's likely that mysql_result retrieve an array of rows (well-ordered), but fetch it by using a string for the index. -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing

Re: To multi thread or NOT to multi thread?

2005-09-27 Thread Pooly
. (So, yes forthe troll, it's an OS issue, threads creation are somewhat slow on FreeBSD :) -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: add a column if not exists

2005-09-26 Thread Pooly
) -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Must mysql_free_result be called after mysql_store_result in case of NULL?

2005-09-24 Thread Pooly
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: insert subquery

2005-09-24 Thread Pooly
2005/9/23, Gordon Bruce [EMAIL PROTECTED]: What am I missing INSERT INTO table1 (column names.) SELECT VALUES.. FROM table2 WHERE primary id = insert value You will have to put in your real table name and column names. nice and easy :-) -- Pooly Webzine Rock : http://www.w

Re: Multithread handling of Connect/Close

2005-09-24 Thread Pooly
List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

Re: connect from oracle to MYSQL.

2005-09-22 Thread Pooly
what about : http://dev.mysql.com/doc/mysql/en/dsn-on-unix.html 2005/9/22, Ananda Kumar [EMAIL PROTECTED]: Hi Pooly, I know your busy, but please help me, i need to submit this by today for the testing team. If you dont mind can you please guide to any url or documentation where i can find

Re: connect from oracle to MYSQL.

2005-09-21 Thread Pooly
anandkl -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Lost connection to MySQL server during query when calling stored procedure

2005-09-21 Thread Pooly
getting that error. I think he means, that you should try the official binaries, and this still happens, file a bug report because 5.0 is still in Beta stage. -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: mysql_free_result() 2 different connections

2005-09-21 Thread Pooly
in the api, I use various 4.0.x, 4.1.x daily and several OS and I've never had a crash in it (except from my own mistakes, non-null terminated query strings, threads messing up, freeing twice a result, non-allocating of result). the API is pretty robust :-) -- Pooly Webzine Rock : http://www.w-fenec.org

Re: mysql_free_result() 2 different connections

2005-09-20 Thread Pooly
with just one set of results, no matter how I use it, it always crashes :-( what is the code you're using ? -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Failure to install on Solaris.

2005-09-20 Thread Pooly
even for a dynamic linking, the linker can't do it's job here. -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql_free_result() 2 different connections

2005-09-20 Thread Pooly
it or not, and if so, why the documentation tells that it is a *must* call the free function after the whole set of rows is retrieved... That would leave a nice memory leak indeed... eventually, recompile and set a break-point before calling mysql_free, and look at all variables. -- Pooly Webzine Rock : http

Re: mysql_free_result() WITHOUT mysql_fetch_row()

2005-09-19 Thread Pooly
TABLE mytable ADD UNIQUE(id,list) which make a unique index on two field. inserting a duplicate value would give you back an error and let the table untouched. Maybe you have a suggestion to do the same in another way. Thanks -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General

Re: Select ALL rows with WHERE statement

2005-09-18 Thread Pooly
2005/9/18, Jasper Bryant-Greene [EMAIL PROTECTED]: Alvaro Cobo wrote: Thanks Pooly and Peter: The problem is that in the same php page I would like to choose either the calculation from an especific year or the calculation from the whole table using URL. The same page can easily

Re: mysql_free_result() WITHOUT mysql_fetch_row()

2005-09-18 Thread Pooly
the Count(*) solution ?? that's exactly what you need IMHO. -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql_free_result() 2 different connections

2005-09-18 Thread Pooly
doing it more thant once, it can't work. from the fine manual : http://dev.mysql.com/doc/mysql/en/mysql-store-result.html You must call mysql_free_result() once you are done with the result set. but in you're code you're still using the result set ! -- Pooly Webzine Rock : http://www.w

Re: mysql_free_result() WITHOUT mysql_fetch_row()

2005-09-18 Thread Pooly
. count(*) as nothing to do with knowing is there is data in the table or not... If I'm still wrong, could you provide a sample query ? -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: EXISTS subquery optimization

2005-09-17 Thread Pooly
from the disk I guess. -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Select ALL rows with WHERE statement

2005-09-17 Thread Pooly
. You need to select all rows, but you have only control on the condition on flied1, I am right ? If you can input %, it should do the trick. select * from table WHERE field1 like '%'; Why can't you do just select * from table ?? -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL

Re: innodb and myisam and db optimising

2005-09-16 Thread Pooly
queries. If you don't have access to the slow query logs, the best is to log query time on a per page basis (or per script/template which is better, depending your website). check the field type, no nee to have an integer to store a state value which is 0 or 1 for instance. -- Pooly Webzine Rock

Re: innodb and myisam and db optimising

2005-09-16 Thread Pooly
explain me how can I examine detailed mysql logs? 2. Can you basicly define transaction and its advantages and disadvantages? Thank you - Original Message - From: Pooly [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Friday, September 16, 2005 5:13 PM Subject: Re: innodb

Re: Unclear on UPDATE versus INSERT, and a simple query that is not working

2005-09-15 Thread Pooly
I'm sure other on the list will explain in details, but I'll do short. I understood that forum_members is the new table, members the old one. So : UPDATE forums_members,members SET forums_members.active=members.active WHERE forums_members.member_id = members.id -- Pooly Webzine Rock : http

Re: [newbie] moving mysql db to new server

2005-09-15 Thread Pooly
... thanks for your help :-) julien -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http

Re: Performance of DB with many tables

2005-09-02 Thread Pooly
/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL Subquery bug or am I doing something wrong?

2005-09-01 Thread Pooly
Hi, mysql SELECT criterio, idSite - FROM dominios_propios_completos - WHERE criterio NOT IN ( - SELECT criterio_pub - FROM sites_criterios - ); Empty set (0.05 sec) Do you have NULL values in sites_criterios.criterio_pub ? -- Pooly Webzine Rock : http

Re: LIMIT alternative

2005-09-01 Thread Pooly
! Vladimir Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock

Re: Please I need inputs on Lost connection to MySQL server during query

2005-09-01 Thread Pooly
reply.. tia, -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: MySQL Control Center works with v4.0.23 -- how about V5?

2005-08-31 Thread Pooly
- Spruce Pine -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

question with rows count

2005-08-28 Thread Pooly
default '1', PRIMARY KEY (`id`), KEY `forum_id3` (`state`,`group_id`) ); I don't understand why the number rows analyzed returned by EXPLAIN does not match the count(*) of the query. I can understand when it's higher, but lower ? -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL

Re: question with rows count

2005-08-28 Thread Pooly
2005/8/28, Michael Stassen [EMAIL PROTECTED]: Pooly wrote: Hi, I ran those two queries : mysql select count(id) from forums_data WHERE forums_data.group_id=1 AND forums_data.state=1; +---+ | count(id) | +---+ | 2385 | +---+ 1 row in set (0.11

Re: Birthday strategy

2005-08-25 Thread Pooly
, and if he give the year I'll compute his age). Thanks! 2005/8/25, Jigal van Hemert [EMAIL PROTECTED]: Pooly wrote: Hi, I would like to display a list of members who have their birthday a given day (today for instance). For such an application I've used a single integer column to store

Re: MinGW and MySQL

2005-08-25 Thread Pooly
server? Sincerely, Michael, http://xoib.com/ http://3d2f.com/ http://qaix.com/ http://ryxi.com/ http://gyxe.com/ http://gyxu.com/ http://xywe.com/ http://xyqe.com/ -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http

Re: UK Bank Holidays

2005-08-25 Thread Pooly
for your help. Shaun -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http

Re: create serial number by select

2005-08-25 Thread Pooly
table1 ... 1res1 2res2 3 ... . . I can't build serial number in table1! Thans! Best Regards! Zoli -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com

Re: LATEST N RECORDS from a table without date field

2005-08-24 Thread Pooly
archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Birthday strategy

2005-08-24 Thread Pooly
(birthday)=DAY(NOW()) but it would perform a entire table scan with that. What would be your best strategy for that sort of query ? And how would you deal with 29th of february ? -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: Birthday strategy

2005-08-24 Thread Pooly
help. Pooly wrote: Hi, I would like to display a list of members who have their birthday a given day (today for instance). My idea is to store their birth date in a column, and then query the table against the column. But the query would be like : select id from members where MONTH

MinGW and MySQL

2005-08-23 Thread Pooly
Hello, I'm using QT4.0 which works with MinGW. Now I want to use the MySQL API, but it seems to be only working with MS VC++. Should I recompile my own ? Is there any official MinGw libmysqlclient.dll ? -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list

Re: Migration from MySQL 4.0 to 4.1

2005-08-23 Thread Pooly
per table. What is the best and fastest way to make migration? Best Regards, Rafal -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org

Re: Migration from MySQL 4.0 to 4.1

2005-08-23 Thread Pooly
PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: BLOB in mysql ----- performance issue.

2005-08-22 Thread Pooly
. Thanx in advance , Kane. Pooly [EMAIL PROTECTED] wrote: 2005/8/20, Kane Wilson : hi Friends, I have a WAP portal which is running based on mysql database. That's meant that contents has been stored in the data base. wallpapers , themes, ringtones, games ...etc data type as BLOB

Re: Running select on multiple databases serially.

2005-08-22 Thread Pooly
if someone can give me some pointers (any urls/links would be nice) as to how to write a client library with threading. Thanks a lot. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly

Re: Is there an easy way to copy a table between two mysql servers?

2005-08-20 Thread Pooly
For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Pooly Webzine Rock : http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: BLOB in mysql ----- performance issue.

2005-08-20 Thread Pooly
data stay on disk. For example if you need to send a ringtone which is in your DB, the browsersend the request, Apache receive it, load PHP/Perl, which then connect to the DB... If the file is on disk, you remove the last 2 operations which willmakethe whole operation faster. -- Pooly Webzine Rock

Re: fehler

2005-08-18 Thread Pooly
Hallo, Ich werde in english sprechen, so : You get this error usually, when your connection with the DB juste broke, or it's not working, try to test the return value of mysql_connect, and see what is going on. Or you can have this error when the server is too busy. Tschüss ! 2005/8/18, Scott

Re: Design problem About application related with cached rows

2005-08-14 Thread Pooly
Hi, Try in in two fold. 1. Get all the ID you have in your remote DB 2. check those localy with the ones you have in cache 3. Get all the info you need after you remove the ID you already have. 2005/8/14, Kostas Karadamoglou [EMAIL PROTECTED]: Hello, I try to create an application for my

Re: Design problem About application related with cached rows

2005-08-14 Thread Pooly
in a resultset locally(remote database) and then in a for loop I must check all the IDs that I dont need with the ID of the current row within the loop. I think this is a little bit time consuming!! Do you know I more effective way to do this? thank you in advance, Kostas Pooly wrote: Hi

  1   2   >