Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 07:56:39

Author Topic: MariaDB config file and charset  (Read 3746 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
MariaDB config file and charset
« on: 2014-12-01, 05:48:31 »
Is is correct that MariaDB 10.x still uses latin1 as charset and the config file is almost empty?
Is that what's default of Kloxo-MR?

Of course i know i how to change them, but just wonder why Kloxo-MR isn't taking care of it.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: MariaDB config file and charset
« Reply #1 on: 2014-12-01, 06:14:24 »
Where you found 'charset' of MariaDB?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: MariaDB config file and charset
« Reply #2 on: 2014-12-02, 08:03:57 »
Do not apply charset in MariaDB. It will cause problems with all current databases !

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: MariaDB config file and charset
« Reply #3 on: 2014-12-02, 15:48:31 »
MariaDB [(none)]> show variables like "%char%";
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | latin1                     |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | latin1                     |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)

MariaDB [(none)]> show variables like "%colla%";
+----------------------+-------------------+
| Variable_name        | Value             |
+----------------------+-------------------+
| collation_connection | utf8_general_ci   |
| collation_database   | latin1_swedish_ci |
| collation_server     | latin1_swedish_ci |
+----------------------+-------------------+
3 rows in set (0.00 sec)

As you can see, the server is using latin1 for charset/collation and not UTF8.

@Spacedust, yes, i can't just change now to UTF8 which will create trouble :)

Where you found 'charset' of MariaDB?.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: MariaDB config file and charset
« Reply #4 on: 2014-12-02, 19:52:05 »
You can run 'sh /script/mysql-convert --utf8=yes' to convert all charset to utf8. It's no problem for mysql but testing for mariadb.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.067 seconds with 19 queries.

web stats analysis