Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 44
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    102

    Default MySQL 4.1 collations

    By default the server collation is set to latin1_swedish_ci
    How can I change this to latin1_general_ci ?

  2. #2
    Member
    Join Date
    Jul 2003
    Posts
    138

    Default

    Quote Originally Posted by Earendil
    By default the server collation is set to latin1_swedish_ci
    How can I change this to latin1_general_ci ?

    Did you ever find an answer to this?

  3. #3
    Member
    Join Date
    Jul 2003
    Posts
    138

    Default

    Also is there anyway to change the setting globally.... MySQL has set them all by default to swedish and i want them set to general

  4. #4
    Member
    Join Date
    Jun 2004
    Posts
    102

    Default

    You can set it in your my.cnf

  5. #5
    Member
    Join Date
    Jul 2003
    Posts
    138

    Default

    Whats the line i need to add for this??

    And how do i convert all my existing databases/tables to the collation i want......

  6. #6
    Registered User
    Join Date
    Nov 2003
    Location
    Floripa - Brazil
    Posts
    69

    Default

    Anyone has an answer, I have the same problem after update mysql.

  7. #7
    Member
    Join Date
    Jun 2003
    Location
    USA - Baltimore
    Posts
    52

    Default

    SAME PROBLEAM OVER HERE...

    wehen I export the data base into another data base everyhtings goes wrng coz of the collation thingy... -_-

  8. #8
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default MySQL 4.1 and character sets/collations

    Probably nobody here is in this situation, but if somebody has a clue, please let me know.
    I have gone through the trouble of converting EUC-JP encoded databases to UTF-8. The conversion went fine.

    My problem is that even though I have converted the database to UTF-8 the characters do not show correctly (at all--just jibberish) in phpMyAdmin. They come up fine on the website, but I cannot edit anything using phpMyAdmin. Not a big deal, because I hardly ever use phpMyAdmin, but it is a convenience I'd rather not do without.

    What do I need to do to the tables or whatever to make the characters show up properly?

  9. #9
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Curious.. what OS is this ?
    Beau Henderson

  10. #10
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    It's CentOS.

  11. #11
    Member
    Join Date
    Oct 2003
    Posts
    132

    Thumbs down MySQL 4.1.10a BUG

    latin1_swedish_ci is a BUG within MySQL 4.1.10a
    Normally it should be fixed in 4.1.9 but it is not.
    Not nice indeed.

  12. #12
    Member
    Join Date
    Apr 2003
    Posts
    14

    Default

    Same is most problem!

    Anione can give the answer for correcting?

  13. #13
    Member
    Join Date
    Oct 2003
    Posts
    132

    Default

    vi /etc/my.cnf

    and insert

    default-character-set=latin1
    default-collation=latin1_general_ci

    This will fix the problem with latin1_swedish_ci

    but unfortunatly not the problem regarding
    foreign chars

  14. #14
    Member
    Join Date
    Apr 2003
    Posts
    14

    Default

    Thank You deddy,

    However this does not solve whole problem!

    I have a client using russian language.
    For these client to use phpMyadmin - impossible!

    The Coding windows-1251 and KOI-8 - are not supported!

    Attempt to change all in

    default-character-set=cp1251
    default-collation=cp1251_general_ci

    I get absolutely incorrect encoding.



    We can expect correction from CP?

  15. #15
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    #mysqldump -uUSER -pPASSWORD --default-character-set=binary USER_db > db.sql

    Will get you a dump file in the proper encoding.

    I used this file to replace the collations.

    #replace "latin1" "utf8" -- db.sql

    Voila! Now the database works in phpMyAdmin perfectly. The catch? Now it doesn't work on the site. All I get on the site now is ??????? (a bunch of question marks).

    This is not a cpanel issue, but a mysql issue, so I doubt whether cpanel is going to try to come up with any automatic solutions. If we work together, though, we should be able to figure it out.

Similar Threads & Tags
Similar threads

  1. Replies: 13
    Last Post: 06-15-2010, 04:31 PM
  2. Replies: 13
    Last Post: 06-15-2010, 04:31 PM
  3. mysql backups & collations
    By kahoz in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-28-2008, 11:46 AM
  4. Replies: 1
    Last Post: 04-21-2007, 01:23 AM
  5. Replies: 0
    Last Post: 06-27-2004, 02:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube