I've just installed an Amazon EC2 linux instance with MariaDB. When trying to input accented chars in the db command line (like â, é, etc), it doesn't allow me. I can't figure out what's wrong. The bash command line allows them with no problems.
UPDATE:
Maybe I haven't explained the issue well. As I am spanish, I am very used to write accented chars in every application. I can write them all kind of editors, including vim or nano. Bash allows them obviously. But when logged in the MariaDB (db command line ( MariaDB [adatabase]> )), I can't input any letter that is accented. This happens only in the MariaDB that I've installed in the Amazon EC2 instance, but not in another MariaDB database that I've installed (for testing purposes) in my own computer.
A new information for this issue is that with PHP (mysqli_connect function), I can insert or update rows with accented strings, without problem. So it's only the MariaDB command line that doesn't allow me to enter data with accented letters. Again: it's not that the letters don't appear in the database, but I can't even input them in the command line.
I've added:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mariadb/mariadb.log
pid-file=/run/mariadb/mariadb.pid
collation-server = utf8mb4_unicode_ci
init-connect='SET NAMES utf8mb4'
character-set-server = utf8mb4
to the mariadb-server.cnf
file, and
[client]
default-character-set=utf8mb4
to the client.cnf
file, both of them in the /etc/my.cnf.d
folder, but no solution.