Re: Issue with em dash character

2015-06-03 Thread Rik Wasmus
LENGTH() measures bytes, CHAR_LENGTH() measures characters. There's little use for LENGTH() for anything else then raw bytes. On Wed, Jun 3, 2015 at 10:29 PM, Robert Voliva wrote: > information_schema.columns reports a character_set_name of 'utf8' and a > collation_name of 'utf8_general_ci' > > O

Re: How to change character sets in InnoDB as fast as possible

2015-03-23 Thread Rik
Yes, normally convert from latin1 to binary, and from binary to utf8 (which would also be the recipe to convert actual utf8 data which accidentally ended up in latin1 columns to the proper definition without changing the content). I would not know why that would take overly long for you. An altern

Re: Fresh install of MySQL 5.6.23 fails to start on CentOS 7.0

2015-02-18 Thread Rik Wasmus
Dammit, that should've come from the other account with that work-signature...

Re: Fresh install of MySQL 5.6.23 fails to start on CentOS 7.0

2015-02-18 Thread Rik Wasmus
0 (running in VirtualBox 4.3.20) it will fail to > > start with the following error: > > > > > > > Have you found any resolution for this as I'm having the exact same > issue? > > Thanks > > > > > -- > MySQL General Mailing List > For li

Re: unicode case insensitive but diacritics sensitive

2014-11-25 Thread Rik
Not a unicode one that I know of, converting it to latin1 for the grouping works for that particular use case, but I can't make any promises how it'd work on your entire set which may hold any unicode character, a lot of which cannot be converted to latin1: mysql> SET NAMES utf8; Query OK, 0 rows

Re: Transfer ENCRYPT password field to another server

2013-07-20 Thread Rik Wasmus
set password link Johan mentions, and retire the old hash method. (Do keep in mind password resets etc. also need to know about the multiple hashing methods in use.) -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: NOT_REGEXP Query Help

2012-10-01 Thread Rik Wasmus
HERE `a.login` NOT_REGEXP > '^anonymous[[:digit:]]{3,}$'; > Error: > > MySQL said > #1064 - You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near > 'NOT_REGEXP ' It's NOT

Re: Temporary table creation fails

2012-09-10 Thread Rik Wasmus
> the message "ERROR 1005 (HY000): Can't create table > '/tmp/#sql4a27_68eed1_0.frm' (errno: -1)" Basics first: 1) Is the /tmp directory write & readable for the user mysql runs as? 2) Has the /tmp directory enough free space? -- Rik Wasmus -- MySQL General M

Re: update doesn't

2012-08-17 Thread Rik Wasmus
ient, run the UPDATE statement, en then check what the SELECT shows? If it shows a correct result... the problem ain't in MySQL itself. -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: manage mysql-bin.xxxxxx files on mac

2012-08-03 Thread Rik Wasmus
> (1) What server fail to start, it always says that missing mysql.sock I seem to remember some distro's switching over from mysql.sock so mysqld.sock... is that mysqld.sock there after restart? If so, just update your "socket" configuration accordingly / make it consiste

Re: manage mysql-bin.xxxxxx files on mac

2012-08-02 Thread Rik Wasmus
. It causes mysql server > > starting failure. Don't just delete the bin-files. First start with log-bin=off (or no log-bin declaration). If that fails to start your server, show us the actual error. -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: manage mysql-bin.xxxxxx files on mac

2012-08-02 Thread Rik Wasmus
xx files in the data directory. It causes mysql server > starting failure. Hm, what output -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: why this query doesn't use index?

2012-07-13 Thread Rik Wasmus
ht want to try: SELECT * FROM iploc WHERE start_ip < 1902800418 ORDER BY start_ip DESC LIMIT 1 ... at least, that is how we solved our geoip-performance problems. The NON- overlappig part is crucial though. -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysq

Re: Subquery taking too much time on 5.5.18?

2012-07-06 Thread Rik Wasmus
> See "The unbearable slowness of IN()" at > http://www.artfulsoftware.com/infotree/queries.php Do you read your own links? Excerpt: > In 5.0, EXISTS() is much faster than IN(), but slower than JOIN. In 5.5, EXISTS() performs about as well as JOIN. So judging by the subject line... -- My

Re: mixing and matching mysql & mssql whileloop within an if case

2012-05-04 Thread Rik Wasmus
new projects. Use mysqli (mysql Improved) or PDO_MySQL. Also, learn to love prepared statements. -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: One inst has 39 columns- the other 40

2012-03-21 Thread Rik Wasmus
> You keep repeating that, and I already replied to it the first time. If my > answer isn't acceptable, spamming the question isn't going to make it > better - or make people more inclined to help you, for that matter. I concur -- Rik Wasmus -- MySQL General Mailing Lis

Re: Can't connect as non-root user to database

2012-03-16 Thread Rik Wasmus
iles for 'socket' definitions: File Name Purpose /etc/my.cnf Global options /etc/mysql/my.cnf Global options (as of MySQL 5.1.15) SYSCONFDIR/my.cnf Global options $MYSQL_HOME/my.cnf Server-specific options defaults-extra-file The file speci

Re: Can't connect as non-root user to database

2012-03-16 Thread Rik Wasmus
> Hi Rik, > > > Have you tried the _full_ user-identification (which is with host)? > > > > GRANT ALL ON somedb.* TO 'someone'@'%'; > > Yes I had (and just tried to verify) but it didn't help. Oops, didn't use reply-to-list instead

Re: weird difference in workbench and CLI query

2012-02-13 Thread Rik Wasmus
es of single ' and double "... And this is the line that fails, the only occurance of ": left join exams e on CONCAT("000",c.acc_number) = e.LastWordAccNum Which my crystal ball tells me is probably a sign of improper escapes in shell scripts. What happens if you r

Re: Suggestions for ibdata files structure

2012-01-23 Thread Rik Wasmus
y on each partition, and the final result obtained merely by > summing the results obtained for all partitions. > - Achieving greater query throughput in virtue of spreading data seeks over > multiple disks. Not implemented yet... I personally have those 2 high on my wishlist ;

Re: How to get a specific number of entries per one key ?

2011-12-05 Thread Rik Wasmus
Taking the question _very_ literal: > A quick guess, or at least a starting point: > > SELECT key, data , SUBSTRING_INDEX(GROUP_CONCAT(data ORDER BY data SEPARATOR ','),',',2) > FROM myTable > GROUP BY key -- Rik Wasmus -- MySQL General M

Re: Question about deleting data and the undo log

2011-12-02 Thread Rik Wasmus
suspect that it doesnt. You cannot roll it back... -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Global Variables

2011-11-30 Thread Rik Wasmus
> > DO NOT REPLY OFF-LIST > > Also, do not shout :-) Ugh point taken, but why are you still replying to him off-list? Keep inboxes clean! ;) -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Index question

2011-10-11 Thread Rik Wasmus
d by index(a,b), and index(b) by index(b,a), we don't need to add those, which saves time on modifications. -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: Index question

2011-10-11 Thread Rik Wasmus
ated indexes on a & b, it depends on the data, the distribution of values, etc. No single answer here, test with your data and you'll have the results. If you need it often, I'd go for the combined index & let MySQL do the work, which is probably fastest. -- Rik Wasmus --

Re: Index question

2011-10-11 Thread Rik Wasmus
,a) is good for searches on ONLY b or BOTH a & b, but bad for ONLY a - index (a) & index (b) is good for searches on ONLY b or ONLY a, and is suboptimal for searching for BOTH a,b (although, faster then no index, but the query optimizer has to choose which index to use, can'

Re: Why the same command have different results when it is in a bash script and when it is not?

2011-10-10 Thread Rik Wasmus
sh > > mysql -hlocalhost -uxxx > ~$ mysqllocalhostxxx.sh > Welcome to the MySQL monitor. Commands end with ; or \g. What does 'which mysql' give you? Is it perhaps in 'alias -p'? And is there perhaps a .my.cnf file in your users directory? -- Rik Wasmus --

Re: mysqldiff resurrected and 0.43 released

2011-10-07 Thread Rik Wasmus
Looks very nice, Ill check it out next week. Thanks for the work! -- Rik Wasmus > After a very long hiatus from maintainership (several years), I have > finally released a new version of MySQL-Diff, the CPAN module suite > which also contains mysqldiff, a CLI-based frontend tool for

Re: 4 minute slow on select count(*) from table - myisam type

2011-10-06 Thread Rik Wasmus
't fit in memory could require another approach entirely for query optimization. Another good start would be to examine the output of mysqlreport, it will tel you a lot. -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubs

Re: Mysql user kill privilege

2011-09-27 Thread Rik Wasmus
/dev.mysql.com/doc/refman/5.1/en/kill.html "If you have the PROCESS privilege, you can see all threads. If you have the SUPER privilege, you can kill all threads and statements. Otherwise, you can see and kill only your own threads and statements." -- Rik Wasmus -- MySQL Gener

Re: running a duplicate database

2011-09-09 Thread Rik Wasmus
cent size database. We have had great experiences with Percona's Xtrabackup (http://www.percona.com/docs/wiki/percona-xtrabackup:start) for hotcopies, which also work with InnoDB. But on a heavily used db-server, it DOES make sense to run the backup on a (unused) slave, there's s

Re: strange mysql update ..

2011-09-08 Thread Rik Wasmus
+--+---+ | Level | Code | Message | +-----+--+---+ | Warning | 1292 | Truncated incorrect DOUBLE value: 'a' | +-+--+---+ 1 row in set (0.01 sec) -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: locked non-existent row

2011-09-01 Thread Rik Wasmus
> >-Original Message- > >From: Peter Brawley [mailto:peter.braw...@earthlink.net] > >Sent: Wednesday, August 31, 2011 10:40 AM > >To: r...@grib.nl; mysql@lists.mysql.com > >Subject: Re: locked non-existent row > > > >On 8/31/2011 4:50 AM, Rik Wasm

Re: locked non-existent row

2011-08-31 Thread Rik Wasmus | GRIB
And 'lockinfo' is most certainly in your index, a primary key is a special kind of UNIQUE, but still unique. The INSERT cannot complete as the (lockid,lockinfo) location (foo,bar) is locked, until commit or rollback. See the index as a seperate storage from your normale table-rows which

Re: locked non-existent row

2011-08-31 Thread Rik Wasmus
with a unique search condition, InnoDB locks only the index record found, not the gap before it. For other search conditions, InnoDB locks the index range scanned, using gap locks or next-key (gap plus index-record) locks to block insertions by other sessions into the gaps covered b

Re: Best Way to store Hierarchical Data in Mysql

2011-08-19 Thread Rik Wasmus
hare.net/billkarwin/models-for-hierarchical-data (nice concise comparison of 4 alternatives) - http://www.amazon.com/Hierarchies-Smarties-Kaufmann-Management- Systems/dp/1558609202/ref=ntt_at_ep_dpt_2 -- Regards, Rik -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscr

Re: Too many aliases

2011-08-03 Thread Rik Wasmus
lename first LEFT JOIN tablename second ONfirst.some_id = second.some_id AND first.id != second.id WHERE second.id IS NULL -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: does mysql support master to master replication

2011-08-03 Thread Rik Wasmus
AND writing to both servers, look at clustering instead. -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: index problem

2011-07-28 Thread Rik Wasmus
> your number, and has to fetch the appropriate record if it does which is costly in harddisk IO. BTW: as this looks as a GeoIP query, based on IP, if the `start` & `end` ranges cannot overlap, this is probably faster: SELECT * FROM geo_query WHERE 1988778880 > start OR

RE: dumb question?

2011-07-06 Thread Rik Wasmus
On Wed, 2011-07-06 at 11:03 -0400, Martin Gainty wrote: > Rik and Crew Please keep your replies to the list only, I don't need to double on e-mail... > String values are always ticked VALUES('MYNAME') unless ANSI_QUOTES are > enabled > Column names are never surrounde

Re: dumb question?

2011-07-06 Thread Rik Wasmus
On Wed, 2011-07-06 at 16:27 +0200, Rik Wasmus wrote: > On Wed, 2011-07-06 at 07:15 -0700, XL Cordemans wrote: > > (error code) 1064 > > (error message) HY000 [Actual][MySQL] You have an error in your SQL syntax; > > check the manual that corresponds to your MySQL server versi

Re: dumb question?

2011-07-06 Thread Rik Wasmus
s can be done in the server configuration, so no client/lasso alterations are necessary. -- Rik -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: Data missing after field optimization

2011-06-07 Thread Rik Wasmus
utput of SHOW CREATE TABLE...,, but my guess is you had a UNIQUE key somewhere that got violated when converting to NULL's to empty strings. If would require an ALTER IGNORE TABLE... instead of a normal ALTER TABLE though. That, or an outside source (code we cannot see querying for NOT NULL

Re: Joining tables from different Instances

2011-05-25 Thread Rik Wasmus
erver II - table_2a,table_2b. > > I want to join the table_1a with table_2b. Options as far as I can see it: 1. Use a FEDERATED table (not advisable, excrutiatingly slow and inefficient). 2. Replicate table_2b from Server II to Server I if possible, and allow for a small delay, and just run th

Re: After long semaphore waits MySQL becomes unresponsive.

2011-05-25 Thread Rik Wasmus
ing MySQL plugins? Probably plenty out there > already, too. A plugin what for? Also time, money, effort. I didn't get hired as a MySQL- plugin writer here, and my list of pet-projects for my personal time is rather full at the moment :) -- Rik Wasmus -- MySQL General Mailing List For

Re: MySQL server has gone away

2011-05-25 Thread Rik Wasmus
s since it does not tell me what > exactly happened. The server version is 5.1.45. Can you access the error log of the server? That can probably shed more light on the issue... -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: Innodb as its default storage engine for Mysql 5.0 / 5.1

2011-05-25 Thread Rik Wasmus
lly or in a session: http://dev.mysql.com/doc/refman/5.1/en/server- options.html#option_mysqld_default-storage-engine -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: After long semaphore waits MySQL becomes unresponsive.

2011-05-25 Thread Rik Wasmus
r did nothing but seize up > > gracelessly, rather then either dying (a last resort, but something > > we have failovers for) or killing queries (which we can handle). > > Uhuh. You may want to take this to the mysql-dev mailinglist, the good > people there might have a

Re: After long semaphore waits MySQL becomes unresponsive.

2011-05-24 Thread Rik Wasmus
put there. Yup, right there it did, And that's the way I like it: kill the/a query, which issues an error somewhere else we know if and how to handle in some application, rather then letting a database server with a light load grind to a halt. My main problem at hand is why the server did nothing but seize up gracelessly, rather then either dying (a last resort, but something we have failovers for) or killing queries (which we can handle). -- Rik Wasmus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: After long semaphore waits MySQL becomes unresponsive.

2011-05-24 Thread Rik Wasmus
%;; 2: len 7; hex 5c1ba11c2a; asc \ *;; 3: len 4; hex 8010; asc ;; 4: len 9; hex 70697a7a6174657374; asc rtttest;; 5: len 9; hex 70697a7a6174657374; asc rtttest;; 6: len 3; hex 333638; asc 368;; 7: len 4; hex 8002; asc ;; 8: len 4; hex 8000; asc ;; 9: len 4;

After long semaphore waits MySQL becomes unresponsive.

2011-05-24 Thread rik
t's needed). Thanks, -- Rik Wasmus Some more InnoDB Monitor Output: = 110523 19:19:05 INNODB MONITOR OUTPUT = Per second averages calculated from the last 45 seconds - BACKGROUND THREAD - srv_mast

Re: mysql database

2004-12-16 Thread rik onckelinx
I hope you went at least to www.mysql.com ;) -> Second tab "Developer Zone". -> First tab "Downloads" from the second menubar. -> Select version of your database -> Select your OS -> Pick a mirror -> Have fun Rik Op donderdag 16 december 2004 14:28, schre

Re: phpMyAdmin and MySQL 4.1

2004-10-27 Thread rik onckelinx
admin runs without problems Notes: - this was on my development machine - I'm not pushing mysql to the end when I use it (in a basic way) - maybe not the nicest solution, but digging 2 days through documentation isn't nice either. - I got my lamp working in less then 2 hours. Rik &g

Re: is 'start' a keyword?

2004-10-15 Thread rik onckelinx
the reserved words area on the mysql website Brian mentioned. Anyway; it works rik Op vrijdag 15 oktober 2004 04:35, schreef Brian Reichert: > On Thu, Oct 14, 2004 at 10:33:45PM -0400, Brian Reichert wrote: > > I tried to create a table with a column named 'start'. > >

Re: Stuck in an upgrade to mysql 4.1 and other pains ...

2004-10-10 Thread rik onckelinx
admin and create new db/users/tables with it. 3/ I hope that installing php from source would be a solution. Best regs and thx, Rik Op maandag 11 oktober 2004 00:44, schreef Michael Stassen: > rik wrote: > > Hello all > > > > Sitting stuck in an upgrade to mysql 4.1, I thought

Stuck in an upgrade to mysql 4.1 and other pains ...

2004-10-09 Thread rik
t on what I do wrong, how I can run it smoothly?). Would really appreciate help (and I believe with me many others with the same problem, since googling many hours did'nt give me the right answer). Thanks, Rik -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]