5.1 to 5.6 upgrade: is it possible?

2013-12-04 Thread Ilya Kazakevich
Hello, Have anybody tried to upgrade 5.1 to 5.6? I believe running mysql_upgrade should be enough, but does there are some caveats? Ilya Kazakevich.

RE: Design help

2013-04-21 Thread Ilya Kazakevich
need surrogate keys for US states also but if you speak about "states" in general you may need key (many countries over the world have "states") The same is about cities: city name is too big to be used as primary key, and there may be many cities with similar names. Ilya.

RE: Troubleshoot excessive memory usage in InnoDB

2013-04-19 Thread Ilya Kazakevich
igured Max Memory Limit : 3.91 G Physical Memory : 5.82 G I am not sure if it works correctly with 5.6 Ilya >-Original Message- >From: Denis Jedig [mailto:d...@syneticon.net] >Sent: Saturday, April 20, 2013 1:17 AM >To: mysql@lists.mysql.com >Subject: Troubleshoot excessive mem

RE: Query Help

2013-04-19 Thread Ilya Kazakevich
Hello Richard, >the count(*) for each week of 2013 so that I end up with: http://dev.mysql.com/doc/refman/5.1/en/group-by-functions.html Ilya. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

RE: Mesaure query speed and InnoDB pool

2013-04-17 Thread Ilya Kazakevich
_pool should be set to about 70% of available >RAM. I will increase it now. But I will need to disable swapping also to prevent my OS from swapping out InnoDB pages. Ilya. > >> -Original Message- >> From: Ananda Kumar [mailto:anan...@gmail.com] >> Sent: Tuesday, Apri

Mesaure query speed and InnoDB pool

2013-04-16 Thread Ilya Kazakevich
several ideas: * Count 'Innodb_rows_read' or 'Innodb_pages_read' instead of actual time * Set pool as small as possible to reduce its effect on query speed * Set pool larger than my db and run query to load all data into pool and measure speed then How do you measure your queries'

RE: how things get messed up

2010-02-10 Thread Ilya Kazakevich
if files are stored externally. If somebody knows more reasons to store files in DB -- post it here, please. It would be interesting. Thanks. Ilya. -Original Message- From: John G. Heim [mailto:jh...@math.wisc.edu] Sent: Wednesday, February 10, 2010 10:09 PM To: mysql@lists.mysql.co

RE: Help optimizing settings?

2010-02-05 Thread Ilya Kazakevich
Which MySQL server do you use? What is your storage engine? -Original Message- From: Ken D'Ambrosio [mailto:k...@jots.org] Sent: Friday, February 05, 2010 5:26 PM To: mysql@lists.mysql.com Subject: Help optimizing settings? I've got a fairly large -- 100+ GB -- MySQL database. It isn't

Cannot create column having ENUM("") type

2002-07-26 Thread ilya
") ); ERROR 1074: Too big column length for column 'test' (max = 255). Use BLOB instead >Fix: N/A >Submitter-Id: >Originator:Ilya Martynov >Organization: Ilya Martynov (http://martynov.org/) > >MySQL support: none >Synopsis:

Crash in mysql_read_default_options

2002-05-31 Thread ilya
db_login (dbh=0x8132808, imp_dbh=0x8131130, dbname=0x8135210 "test;mysql_read_default_file=/home/ilya/my.cnf", user=0x8136b48 "", password=0x8134eb0 "") at dbdimp.c:830 #6 0x401b5a34 in XS_DBD__mysql__db__login (cv=0x817ed3c) at mysql.xsi:63 #7 0x808a11b in Perl_pp_en

Re: DBMS that integrates well with object-oriented programming

2001-11-18 Thread Ilya Martynov
ter. There is a number of CPAN modules which provide OO access for SQL database. Take a look at http://poop.sourceforge.net. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/

Re: InnoDB Tables/Databases

2001-10-05 Thread Ilya Martynov
#I DO> nnoDB I would go directly to http://www.innobase.fi/ DO> Have a good reading. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4A

Re: Advanced ORDER BY

2001-09-21 Thread Ilya Martynov
t = 'center' l> first and then all the rest of the depart records in l> alphabetical order. l> Any ideas? Use two queries: one to get records where depart = 'center' and second for rest of the depart records. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Re: Berkeley or InnoDB?

2001-09-01 Thread Ilya Martynov
perfomance is good only if databases fit RAM. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DEE6 | | AGAVA Software

Re: MySQL Still a wise choice for developers?

2001-08-28 Thread Ilya Martynov
ll be served from proxy cache. Such approach removes unnecessary load from database and gives speed of static data requests. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BD

Re: 'pre-load' data after restarting...

2001-08-21 Thread Ilya Martynov
oo, ES> but I have never seen the computer use more than 32k of the swap space. ES> So could I force mysql to load the indexes into memory when you start the ES> computer? Run your queries manually on startup? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Re: problems with show tables

2001-08-06 Thread Ilya Martynov
hed to a database and that tables exist M> but 'show tables;' doesn't seem to work. I am sure it is user error M> but could you please show me my error. IMHO sounds like a bug. I think you should submit bugreport. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Re: generate database script from existing table?

2001-08-03 Thread Ilya Martynov
no way of doing so. mysqldump -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DEE6 | | AGAVA Software Company (http:

Re: SQL/Table question

2001-08-03 Thread Ilya Martynov
M> How would I select all the tables _names_ in a particular database? Is it possible? M> i.e. Select table_names from tables; SHOW TABLES FROM database_name; or SHOW TABLES; -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martyn

Re: could not insert BLOB data type in a table

2001-07-25 Thread Ilya Martynov
ta but once he rewrote code with placeholders problem disappeared. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DEE6

Re: could not insert BLOB data type in a table

2001-07-25 Thread Ilya Martynov
Use $dbh->quote() or placeholders to insert the BLOB value into PD> the query string. See the DBI docs. Only use placeholders. $dbh->quote() is unreliable (and this fact is documented in DBI documentation). -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Re: Transaction for MySQL

2001-07-19 Thread Ilya Martynov
e-level locking. Thus it can be a limitation for some applications. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DE

Re: transactions

2001-07-16 Thread Ilya Martynov
SG> MySQL SG> Will not do transactions till V4... Wrong. InnoDB table type supports transactions. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F

Two-way replication

2001-07-13 Thread Ilya Martynov
second mysqld and second mysqld pushes changes in another set of tables on first mysqld. So my question: Will it work? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7

Re: Perl DBI to MySQL -- Passing info to query

2001-07-11 Thread Ilya Martynov
nly one single scalar. Check man DBI chapter (Placeholders and Bind Values) for info on placeholders usage. It has some examples. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)

Re: Perl DBI to MySQL -- Passing info to query

2001-07-10 Thread Ilya Martynov
g = "string"; r> Note that variables inside of strings enclosed by '' will not be translated, r> only strings enclosed by "" (or qq{} =) ). -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)

Re: Field name LEFT and RIGHT

2001-07-09 Thread Ilya Martynov
27;right' to something else. They are reserved words. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 3

Re: Copy table structure to another database?

2001-07-04 Thread Ilya Martynov
amed TABLENAME -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DEE6 | | AGAVA Software Company (http:/

Re: thoughts on raw file systems

2001-06-28 Thread Ilya Martynov
WW> Can you use a raw partition with MySQL much like you can with Oracle or WW> Sybase? Probably tables with InnoDB type can work on raw devices. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martyn

Re: transactions

2001-06-25 Thread Ilya Martynov
uot;Transaction aborted because $@"; $dbh->rollback; # undo the incomplete changes # add other application on-error-clean-up code here } -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)

Re: $sth->{mysql_insertid} not working in 3.23.38?

2001-06-25 Thread Ilya Martynov
-MySQL is experimental driver. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DEE6 | | AGAVA Software

Re: Perl DBI and rollback()

2001-06-23 Thread Ilya Martynov
ck()? >> (ex. MySQL server will become slower, MySQL server will crash, etc). TEG> Well, you've just lost the effects of your operation... Only if AutoCommit is off and table type support transactions. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | I

Re: begin and commit w/ perl

2001-06-19 Thread Ilya Martynov
rom 'perldoc DBI'. Read section 'Transaction' there for more info. P.S. Be sure that you have latest version of Msql-Mysql-modules (version 1.2216). Previous versions does not support transactions. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Re: What's the best os?

2001-06-02 Thread Ilya Martynov
. Output of 'show proceslist' shows that MySQL server is much less loaded (because it handles requests faster) than before. Also people who tested it on test server before deploying on production said that it worked faster. This is real experience. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-

Re: What's the best os?

2001-06-01 Thread Ilya Martynov
CPUs because it'd never JZ> spread the threads from each server across the CPUs the way you'd JZ> like. AFAIK you can compile mysql on FreeBSD with LinuxThreads (they have been ported on FreeBSD). In this case threads will spread across the CPUs as on Linux. -- -=-=-=-=-=-=-=-

Re: How can be minimized downtime on MyISAM->InnoDB transition?

2001-05-22 Thread Ilya Martynov
Thanks for idea again :) HT> Ilya, HT> actually, it may be safest that you use CREATE TABLE to create HT> an identical InnoDB table, and then do HT> INSERT INTO newtable SELECT * FROM oldtable WHERE yourkey > something HT>

How can be minimized downtime on MyISAM->InnoDB transition?

2001-05-22 Thread Ilya Martynov
re quite small except one which has about 1,800,000 records (size of MyISAM files about 70Mb). -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)| | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80

Re: insert a blob

2001-05-16 Thread Ilya Martynov
't handle it well. It doesn't means that you cannot get your data. It just means that mysql client cannot show it. You can use perl script to get your data. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/)

Re: insert a blob

2001-05-16 Thread Ilya Martynov
A> } WA> $dbh->quote($string); WA> $sql_statement = "insert into table(tars) values('$string')"; WA> $sth = $dbh->do($sql_statement); Change these two lines to $sql_statement = "insert into table(tars) values(?)"; $sth

Re: Excluding Data from a Query with PHP

2001-05-14 Thread Ilya Martynov
above query so it SELECTS everything EXCEPT myuen KAZ> (that KAZ> is, I want my result to be puffy and jlo). "SELECT * FROM activities WHERE month='$month' AND year='$year' AND username!='myuen'" -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Segmentation fault compiling MySQL-3.2.36

2001-03-30 Thread Ilya Bassine
Does somebody try to build MySQL-3.2.36 on Slackware 7.1? I have an error trying to make test. configuration: [30-Mar-01][15:55]{ilya@odin} ~/Sources/mysql-3.23.36>./configure --prefix=/usr/local/mysql --enable-assembler --with-berkeley-db --with-charset=koi8_ru --with-extra-charsets=lat