Re: Tool for shifting tables from Mysql to Postgresql

2011-03-01 Thread Jaime Crespo Rincón
ysql.com/doc/refman/5.5/en/mysqldump.html#option_mysqldump_default-character-set> -- Jaime Crespo MySQL & Java Instructor Software Developer Warp Networks <http://warp.es> -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: contact gives empty result

2011-02-22 Thread Jaime Crespo Rincón
oc/refman/5.0/en/control-flow-functions.html#function_ifnull> Anyway, you should get rid of misplaced NULL fields, as they also affect performance. -- Jaime Crespo MySQL & Java Instructor Software Developer Warp Networks <http://warp.es> -- MySQL General Mailing List For list archives: h

Re: Mysql to Postgresql

2011-02-22 Thread Jaime Crespo Rincón
c/refman/5.1/en/mysqldump.html#option_mysqldump_compatible> Anyway, most of the times you will need a more manual migration, with human intervention (custom scripts) and migrating the data through something like CSV (SELECT... INTO OUTFILE). -- Jaime Crespo MySQL & Java Instructor Software De

Re: CURRENT insert ID

2011-01-24 Thread Jaime Crespo Rincón
-- OMG!!! +----+ | id | ++ | 1 | ++ 1 row in set (0.00 sec) --8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- -- Jaime Crespo MySQL & Java Instructor Software Developer Warp Networks <http://warp.es> -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: Loading Unicode Data to mySQL

2011-01-20 Thread Jaime Crespo Rincón
odbc-configuration-connection-parameters.html Charsets can be a mess if you have several layers and only one of them fails, but if you understand fully all of MySQL parameters is not so difficult. -- Jaime Crespo MySQL & Java Instructor Software Developer Warp Networks <http://warp.es>

Re: How to unstall MySQL 5.1 on Ubuntu 8.04 LTS

2010-08-23 Thread Jaime Crespo Rincón
ficial guide: http://dev.mysql.com/doc/refman/5.1/en/installing-binary.html MySQL works flawlessly on Ubuntu. -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: RHEL Auto Start / stop mysql???

2010-08-13 Thread Jaime Crespo Rincón
n/5.1/en/automatic-start.html -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: MySQL Replication

2010-06-30 Thread Jaime Crespo Rincón
w and statement-based. Please, have a look at the manual page: http://dev.mysql.com/doc/refman/5.1/en/replication-formats.html -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysq

Re: MySQL Replication

2010-06-24 Thread Jaime Crespo Rincón
en if MySQL gives some support to handle this (auto-increment-offset, replicate-ignore-table), you should mostly handle it at business logic (application server) layer, not in the MySQL database. Alternatively, as Johan pointed, have a look at the semi-synchronous replication. -- Jaime Crespo MySQL

Re: MySQL Replication

2010-06-24 Thread Jaime Crespo Rincón
ere is a conflict in the replication process, it stops. You have to solve the issues manually and then start the replication again. This usually occurs due to the synchronous/distributed nature of the replication. -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -

Re: Missing database file names

2010-06-04 Thread Jaime Crespo Rincón
t;myisamchk" and the REPAIR command should be able to regenerate an MYI file from a .MYD and .frm files. After all, MDI file only contains the disk version of the indexes. Beware of possible issues if using different server version, though. -- Jaime Crespo MySQL & Java Instructor Warp

Re: optimization

2010-01-25 Thread Jaime Crespo Rincón
of the server, among others. There also exists a tool to get introduced into MySQL server variables tuning: Tuning primer - https://launchpad.net/mysql-tuning-primer It is also a very general tool, but it could be helpful for a starting point. Regards, -- Jaime Crespo MySQL & Java I

Re: auto_increment without primary key in innodb?

2010-01-25 Thread Jaime Crespo Rincón
| 2 | +-+---+ 2 rows in set (0,00 sec) -->8---- Regards, -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: mysql load balancing

2009-12-24 Thread Jaime Crespo Rincón
m asynchronous replication (lag between master writes and slaves see the data). I am sorry I cannot help you, but please, share here if you found something useful AND with good performance. Merry Xmas! -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL Genera

Re: Table level locking when inserting auto-increment PK to InnoDB

2009-12-24 Thread Jaime Crespo Rincón
hp?id=16979> there is a manual page discussing the changes done for the 5.1 version: <http://dev.mysql.com/doc/refman/5.1/en/innodb-auto-increment-handling.html> -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL General Mailing List For lis

Re: mysql load balancing

2009-12-22 Thread Jaime Crespo Rincón
to coordinate the db servers (sharding, replication, ndb), the kind of applications you are going to deploy and how much scability you need. I hope that helps. Regards, -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL General Mailing List For list arc

Re: different 5.0 and 5.1 about long_query_time

2009-12-11 Thread Jaime Crespo Rincón
2009/12/11 Yang Wang : > Hi,All > >   The version of 5.1 include microtime slow query patch? "As of MySQL 5.1.21, the minimum value is 0, and a resolution of microseconds is supported when logging to a file." http://dev.mysql.com/doc/refman/5.1/en/slow-query-log.html Regard

Re: How normal mysql server 5.1 uses multiple cores

2009-11-24 Thread Jaime Crespo Rincón
ster on a single host? Anyway, I suppose performance loses on distributed joins and so on would outcome multiple-core benefits. And for most queries, the bottleneck is usually on disk access, not processor. Has anybody done any serious testing on this? -- Jaime Crespo MySQL & Java Instructor

Re: OPTIMIZE TABLE

2009-11-15 Thread Jaime Crespo Rincón
way of load balancing while performing administrative tasks. If you could have a pre-production host to test these kind of operations it would be great! Each application is a world on its own. You can read more info here: http://dev.mysql.com/doc/refman/5.1/en/optimize-table.html> --

Re: Find neighboring rows

2009-11-08 Thread Jaime Crespo Rincón
ALL ( SELECT n FROM names WHERE n < @name ORDER BY n DESC LIMIT 2 ) ORDER BY n; Row has been named n; table: names. Unexpected results if @name does not exist. If you expect a lot of records, expect also bad performance with this query: add an index to speed up the orderings; also several

Re: Choose certain columns in mysqldump?

2009-10-29 Thread Jaime Crespo Rincón
t;SELECT [any, column, you, want] INTO OUTFILE '/var/www/folder/table_name.txt' FROM table_name WHERE [any, filter, you, want] ORDER BY [any, order, you, want]" -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL General Mailing List For list

Re: Using IF in a query to set a variable then sort on said variable

2009-10-26 Thread Jaime Crespo Rincón
Yes, Case function is the way to go. Anyway, check for performance issues: in that case, precalculating and storing an aditional field would be the best way (it could be done with a trigger, for example). -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL

Re: Using IF in a query to set a variable then sort on said variable

2009-10-25 Thread Jaime Crespo Rincón
CASE functions to achieve similar results. -- Jaime Crespo MySQL & Java Instructor Warp Networks <http://warp.es> -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: MYSQL slow query log in table.

2009-10-08 Thread Jaime Crespo Rincón
2009/10/7 Brown, Charles : > Hello All. I would like to implement  MYSQL slow query log in table. Can > someone kindly assist me with the table definition and implementation. SHOW CREATE TABLE mysql.slow_log; <http://dev.mysql.com/doc/refman/5.1/en/log-tables.html> -- Jaime

Re: troubles with complex UTF-8 characters

2009-10-06 Thread Jaime Crespo
elds (collation, etc.). -- Jaime Crespo MySQL & Java Instructor Warp Networks http://warp.es -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Mysql 4.1 vs 5.0

2009-06-02 Thread Jaime Fuentes
Benching Somebody knows why 4.1 is faster than 5.0 mysql versions Ing. Jaime Fuentes R. 997500459 2421905-2423252 Enviado desde mi BlackBerry de Claro. -Original Message- From: Brent Baisley Date: Tue, 2 Jun 2009 12:32:39 To: Ray Cc: Subject: Re: Question about query - can this be

Re: too many connections

2008-09-19 Thread Jaime Fuentes
You have to use mysql 64bits on S.O. 64bits --Mensaje original-- De: Martin Gainty Para: Kinney, Gail Para: 'mysql@lists.mysql.com' Enviado: 19 Sep 2008 10:51 Asunto: RE: too many connections in my.cnf configuration file try upping the number of connections max_connections=3072 to max_c

mysql x64en server 64 bits

2008-07-03 Thread Jaime Fuentes
lease help me Urgent. Jaime Fuentes R. Peru Arpotu escribió: All, I have a customer who has been on MySQL for about 8 years, but they are moving their business elsewhere. They are moving their database into an Oracle shop, and want me to export their MySQL data into a format that's ea

Re: procedure locks all statemens

2008-03-28 Thread Jaime Fuentes
Into my.ini the max_connection parameter is 2048. what could be happened? and what to solve this ? Jaime Fuentes R.

Rows inserted into a table producing errno: 13

2007-10-24 Thread Jaime Piñeiro
Hi I am running mysql version 4.0.27 on Red Hat Enterprise Linux 3 i had a myisam table with .frm, .MYD and .MYI files with no permissions for user mysql. I inserted several rows without getting any error message, but when i restarted mysqld, everything disapered and i get error message /u

HELP: mysql stoped sudenly , Database page corruption on disk or a failed

2007-02-28 Thread Jaime Fuentes
is OK for it, mysql 4.01 is running on windows 2003 and the ibdata1of innodb is 20 GB Thanks in advance Jaime 070228 17:44:04 InnoDB: Page checksum 75769562, prior-to-4.0.14-form checksum 3189442283 InnoDB: stored checksum 4088203197, prior-to-4.0.14-form stored checksum 0 InnoDB: Page lsn 0

rollback after crash on OS X

2005-12-02 Thread Jaime Magiera
L to even know where to begin looking for what could have happened. Any thoughts/suggestions? thanks, Jaime -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL vs Oracle

2004-06-16 Thread Jaime
forcing cursor sharing and dozens of other things enable our Oracle sites to run as "fast" as MySQL. We're running MySQL 4.0.18 and Oracle 8i and 9i at the latest patch levels. Applying the appropriate patches on Oracle can make a big difference too. --Walt > -Original Mess

MySQL vs Oracle

2004-06-16 Thread Jaime
Hi all! I'm developing a system using both MySQL and Oracle for document processing. I issue a series of queries to the database, depending on the document size. For big documents, both databases behave in the same way but, when using small documents, MySQL finishes quickly while Oracle consume

Unexpected subquery behaviour

2004-05-31 Thread Jaime
Hi all! I'm using subqueries in MySQL 4.1.1 alpha. I use three subqueries and then want to get those combinations matching a given constraints. It is a very simple task, but I get less results than I expected. In fact, I tried to execute the same query in ORACLE and I get 23 results (in MySQL I

Need help in querying two tables

2003-08-01 Thread Jaime Teng
ea how to\ make it work for my need. hoping for your help. Jaime -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: How to perform the following Query in MySQL

2003-05-30 Thread Jaime J. Maiz
, Jaime   -Original Message- From: Sent: Wednesday, May 28, 2003 2:58 PM To: [EMAIL PROTECTED] Subject: How to perform the following Query in MySQL   Hello, I am studying the possible migration of a system using another database engine to MySQL for various reasons. However, I have

How to perform the following Query in MySQL

2003-05-29 Thread Jaime J. Maiz
friendly way?   TIA Jaime - Jaime J. Maiz    630 979 2088 mailto:[EMAIL PROTECTED]  IH 4F-310  

need help with GROUP BY

2003-02-05 Thread Jaime Teng
FROM tablename WHERE detail LIKE '%pattern%'; However, this would produce several hits for a single account. I'd like it to produce only one hit *per* account and give me id where '%pattern%' was found and account where it was found on. It should only return *one* result per

How stable is MySQL 4.x vs 3.23.x?

2002-11-11 Thread Jaime Teng
Hi, How stable is the new MySQL 4.x? I've read some really nice and powerful stuffs with MySQL 4. x and surely like to use them. Is this still in the 'use at your own risk' stage? or is it stable enough for use already?

Re: why is this slow?

2002-11-11 Thread Jaime Teng
e query statement, MySQL doesnot use index/keys? Does this mean, that there is absolutely no way to improve my query? Hmm.. I read lots of good stuffs with MySQL 4.x; is this already safe to use? regards, jaime > >Thomas > >On Mon, 11 Nov 2002 16:41:50 +0800 Jaime Teng <[EMAIL PROT

why is this slow?

2002-11-11 Thread Jaime Teng
Y increases when number is very low OR when "select count(*) from eventlog where id < number;" would give a small number. Is there a way to increase the performance of my table/search? jaime - Before p

MySQL server and datadir in a different machine

2002-09-06 Thread Jaime JLO. López Ortega
. thank for your time. jaime - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsub

slow search on INDEX?

2002-03-24 Thread Jaime Teng
e an INDEX on source, the search source='ERROR' should be fairly fast at least faster than the first one. YET, I dont get any improvement and it turned out even a lot slower. Why was it this way? thanks for your inputs. jaime

how to configure my.cnf

2002-03-05 Thread Jaime Teng
have? Jaime # Example mysql config file. # Copy this file to c:/my.cnf to set global options # # One can use all long options that the program supports. # Run the program with --help to get a list of available options # This will be passed to all mysql clients [client] #password=my_password

Re: help with big table search

2002-02-25 Thread Jaime Teng
option is workable. PS. I did not know there was FULLTEXT; I was using and old PDF manual. Jaime At 06:42 PM 2/24/02 -0800, Jeff Kilbride wrote: >I'm about to try a full text index in a very similar situation, which has >the potential to grow fairly big. I'd also be interested

help with big table search

2002-02-24 Thread Jaime Teng
kes about 30~60 seconds for an answer. (sometimes fairly fast <5 seconds). SOMETIMES, searching through this crossref were actually slower. I'd like to know how you people come up with a very good table and search. Eventlog is currently 200MB in size. Jaime

Re: How can run Mysql program from different user (NOT only root) ?

2002-01-01 Thread Jaime Teng
trying to open the same database? Jaime At 11:03 AM 1/2/02 +0800, Kevin Chan wrote: >Dear all, > >How I can set a different user to run MySQL (only root can run this program >now) ? > >Error message when run the program from user: > >bash-2.03$ ./mysql --host=192.10.0.113

Need help with SELECT and JOIN pls

2001-12-07 Thread Jaime Teng
I would like to know which sentence contains the words 'HELLO' and 'DAY' and 'WORLD'. take note that the sentence SHOULD contain ALL the three words not just one or two. I think this is a 'JOIN'

Re: help with timestamp...

2001-12-04 Thread Jaime Teng
mtable VALUES (unix_timestamp(now()),data here....); jaime At 11:25 PM 12/4/01 -0700, *Himerus* wrote: >Can anyone give me a good link on how to put in a timestamp on a form >that inserts directly into a sql database??? I keep trying it, but it's >only coming thru as 00 ,

Annoying DBD-mySQL error wont go away

2001-11-26 Thread Jaime Teng
is kind of errors on Linux+Apache before and I solved it via: $sth=$DBH->prepare("SELECT ..LIMIT 1"); $sth->execute; while ( $result = $sth->fetchrow ) {1}; It appeared to me that even if only one result is to be expected, mysql would throw more than one. or is this a problem with

How to join MsQL queries?

2001-09-21 Thread Jaime Teng
Hi, I have the following queries: SELECT account FROM user where username = 'george'; then using the result from this query, i pass it onto the next: SELECT * FROM record WHERE account = 'result from above'; I am new to 'JOIN' and dont know the corre

any sequence generator function?

2001-08-30 Thread Jaime Teng
with 2.5 million records and i want to change one of the field and sequence it and am doing it the hard way of updating one at a time. regards Jaime - Before posting, please check: http://www.mysql.com/manual.php (the man

help renumbering unique

2001-08-30 Thread Jaime Teng
numbers were "1,20,22,25,40,45,47." the new data will be "1,2,3,4,5,6,7,8,9." ? Jaime - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

help with crosstable SEARCH

2001-07-17 Thread Jaime Teng
However, when I include "u.username = m.username" in the WHERE field, it immediately produces the result in 0.0x seconds. Why does it hang on the 1st case? was it because there were cases wherein a row in masterlist is not present in user list that's causing it to croak? Jai

help me with "select" query

2001-07-10 Thread Jaime Teng
all three words. example: search "tintin" result = 1604, 1689 search "registers" result = 1604, 1621, 1622, 1662 search "registers", "tintin" result = 1604 thanks jaime - Be

Help me improve my table search

2001-07-05 Thread Jaime Teng
-+--+-+ SELECT e.* FROM eventlog e, indextable i WHERE (i.keyword = 'word1' OR i.keyword = 'word2' OR i.keyword = 'word3') AND e.id = i.id ORDER by i.id DESC LIMIT 20; I dont like doing the above workaround as it would take another messy

different subdir for database

2001-07-04 Thread Jaime Teng
Hi, I have mysql on NT4 (soon to be win2000). one question is that the database files all reside under drive c. NT does not have symbolic link is there a way to tell mysql that a particular database is located on a different folder? where is the documentation for this one? jaime

mysql, perl and retrieving long column

2001-06-30 Thread Jaime Teng
Hi, If I have a table: create table messages ( id int unsigned not null unique, datalongtext ); and I have a perl script: 1 $sth = $dbh->prepare( "SELECT data FROM messages WHERE id = ?;"); 2 $sth->execute($id); 3 $data = $sth->fetchrow; QUESTION: will the script stop at line 3 unti

can I force SELECT to use a specified INDEX?

2001-06-25 Thread Jaime Teng
index (source,description) ? Jaime - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]>

Whats wrong here?

2001-06-23 Thread Jaime Teng
balistic. Jaime - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe,

Re: help with index

2001-06-22 Thread Jaime Teng
ablename where age > 30 and name = 'JOHN'; or do you suggest that I add the following on top of the previous index? alter table tablename add index (name,city); alter table tablename add index (age,city); alter table tablename add index (age,name); etc... thanks Jaime database,mysql

help with index

2001-06-22 Thread Jaime Teng
performance/speed in doing the following: select * from tablename where name = 'bill'; select * from tablename where age > 30; select * from tablename where city = 'new york'; thanks jaime database,mysql -

help with select

2001-06-10 Thread Jaime Teng
BILL is in. 2. then get who are in the same room as BILL. is it possible to do it in one single query? jaime - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

Re: running multiple mysqld's

2001-06-09 Thread Jaime Teng
ntelligent and either communicate with two mysqld or use a backup database file you know what i mean. jaime At 03:02 AM 6/9/01 -0230, Neil Zanella wrote: > >Sorry about this questions but why would you want to run two copies of >mysqld when it is capable of hosting as many differen

help with select

2001-06-08 Thread Jaime Teng
f 'BILL' and then perform another select of entries with the same account. I already tried: select * from user u, user r where r.account=u.account and r.name='BILL'; i got no result but no error. jaime database,sql -

need help with cross table update

2001-06-06 Thread Jaime Teng
values on it. I wanted to fill it up based on the "class" value found in table1. I was trying to do something like this: UPDATE table2 set class=table1.class WHERE table1.username=table2.username obviously wrong. what is the corre

help how to undo concat

2001-06-05 Thread Jaime Teng
columnname = unconcat(columnname, 'string'); will actually delete 'string' pattern from columnname? thanks Jaime - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.

View a return of Select

2001-03-23 Thread Jaime Rubio
I have to check to MySQL is able to support our requirements and I would like to view a return of n columns like only one register, thats is posible with MySQL? For example i have 2 tables , 1 table have products and this table habe 3 colums ID , name, Id_price and the other table