MariaDB: erinevus redaktsioonide vahel
Allikas: Imre kasutab arvutit
Mine navigeerimisribaleMine otsikasti
69. rida: | 69. rida: | ||
2 rows in set (0.000 sec) |
2 rows in set (0.000 sec) |
||
<pre> |
<pre> |
||
+ | |||
+ | ning |
||
+ | |||
+ | <pre> |
||
+ | MariaDB [(none)]> SHOW COLLATION WHERE Sortlen LIKE '8' AND Charset LIKE 'utf8'; |
||
+ | +---------------------------+---------+------+---------+----------+---------+ |
||
+ | | Collation | Charset | Id | Default | Compiled | Sortlen | |
||
+ | +---------------------------+---------+------+---------+----------+---------+ |
||
+ | | utf8_unicode_ci | utf8 | 192 | | Yes | 8 | |
||
+ | | utf8_icelandic_ci | utf8 | 193 | | Yes | 8 | |
||
+ | | utf8_latvian_ci | utf8 | 194 | | Yes | 8 | |
||
+ | | utf8_romanian_ci | utf8 | 195 | | Yes | 8 | |
||
+ | | utf8_slovenian_ci | utf8 | 196 | | Yes | 8 | |
||
+ | | utf8_polish_ci | utf8 | 197 | | Yes | 8 | |
||
+ | ... |
||
+ | </pre> |
||
Kasulikud lisamaterjalid |
Kasulikud lisamaterjalid |
Redaktsioon: 7. märts 2025, kell 03:22
Sissejuhatus
TODO
Tarkvara paigaldamine
Paigaldamine tavalisest paketihaldusest
# apt-get install mariadb-server
Seadistamine
Debian v. 11 operatsioonisüsteemi puhul kasutatakse vaikimisi utf8mb4, vt
/etc/mysql/mariadb.conf.d/50-server.cnf
st andmebaasi ja kasutajat on loomulik moodustada selliselt, nt wordpress jaoks sobib väga hästi
MariaDB [(none)]> CREATE DATABASE projektinimi CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; MariaDB [(none)]> grant all privileges on projektinimi.* to 'projektinimi'@'%' identified by 'parool'; MariaDB [(none)]> grant all privileges on projektinimi.* to 'projektinimi'@'localhost' identified by 'parool';
Collation jms
MariaDB [(none)]> SHOW GLOBAL VARIABLES LIKE 'collation%'; +----------------------+--------------------+ | Variable_name | Value | +----------------------+--------------------+ | collation_connection | utf8mb4_general_ci | | collation_database | utf8mb4_general_ci | | collation_server | utf8mb4_general_ci | +----------------------+--------------------+ 3 rows in set (0.001 sec)
ning
MariaDB [(none)]> SHOW COLLATION WHERE Sortlen LIKE '8' AND Charset LIKE 'utf8mb4'; +------------------------------+---------+------+---------+----------+---------+ | Collation | Charset | Id | Default | Compiled | Sortlen | +------------------------------+---------+------+---------+----------+---------+ | utf8mb4_unicode_ci | utf8mb4 | 224 | | Yes | 8 | | utf8mb4_icelandic_ci | utf8mb4 | 225 | | Yes | 8 | | utf8mb4_latvian_ci | utf8mb4 | 226 | | Yes | 8 | | utf8mb4_romanian_ci | utf8mb4 | 227 | | Yes | 8 | | utf8mb4_slovenian_ci | utf8mb4 | 228 | | Yes | 8 | | utf8mb4_polish_ci | utf8mb4 | 229 | | Yes | 8 | | utf8mb4_estonian_ci | utf8mb4 | 230 | | Yes | 8 | | utf8mb4_spanish_ci | utf8mb4 | 231 | | Yes | 8 | ...
character set
MariaDB [(none)]> SHOW CHARACTER SET LIKE 'utf8%'; +---------+---------------+--------------------+--------+ | Charset | Description | Default collation | Maxlen | +---------+---------------+--------------------+--------+ | utf8 | UTF-8 Unicode | utf8_general_ci | 3 | | utf8mb4 | UTF-8 Unicode | utf8mb4_general_ci | 4 | +---------+---------------+--------------------+--------+ 2 rows in set (0.000 sec) <pre> ning <pre> MariaDB [(none)]> SHOW COLLATION WHERE Sortlen LIKE '8' AND Charset LIKE 'utf8'; +---------------------------+---------+------+---------+----------+---------+ | Collation | Charset | Id | Default | Compiled | Sortlen | +---------------------------+---------+------+---------+----------+---------+ | utf8_unicode_ci | utf8 | 192 | | Yes | 8 | | utf8_icelandic_ci | utf8 | 193 | | Yes | 8 | | utf8_latvian_ci | utf8 | 194 | | Yes | 8 | | utf8_romanian_ci | utf8 | 195 | | Yes | 8 | | utf8_slovenian_ci | utf8 | 196 | | Yes | 8 | | utf8_polish_ci | utf8 | 197 | | Yes | 8 | ...
Kasulikud lisamaterjalid
Paigaldamine tootja repost
TODO
Kasulikud lisamaterjalid
- TODO