Fedora Linux Support Community & Resources Center
  #1  
Old 16th October 2005, 09:47 PM
nucleus Offline
Registered User
 
Join Date: Aug 2005
Posts: 61
mysql character sets and collations issue

im trying to search a table in a database for a hebrew string, the where clause is: "WHERE field LIKE '%$var'".
when i run the query i get:
1267: Illegal mix of collations (hebrew_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'like'.
i have tried changing everything (and i do mean, everything) in the database, tables and fields collation properties to hebrew, but didnt do anything, i think that it has something to do with the servers character sets properties, but i didnt succeed in changing it, starting mysqld with --default-character-set=hebrw didnt help, and i have no idea what query to type in the mysql shell command-line interface.
the question is: how do i change it?

i tried doing a full text search, but it didnt come up with any results, is there any way to search a database? (search with the postion of the string, it is very important)
Reply With Quote
  #2  
Old 18th October 2005, 12:13 PM
nucleus Offline
Registered User
 
Join Date: Aug 2005
Posts: 61
BTW, the SAME query works in phpMyAdmin, with correct results returned
Reply With Quote
Reply

Tags
character, collations, mysql, sets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to see chinese character and write chines e character coolbrain Using Fedora 12 25th May 2008 05:31 AM
Special character problem in mysql nyk Servers & Networking 0 14th September 2005 02:07 PM


Current GMT-time: 04:19 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat