Answer the question
In order to leave comments, you need to log in
How to disable password validation in MariaDB on Synology?
Working with a local MariaDB server on Synology, I encountered a completely unpractical feature - intricate password validation not only for root, but for all created users.
Password requirements - at least 10 characters, upper and lower case letters + numbers + special characters.
I will create my own password of 8 letters and numbers and it will be crypto-resistant enough, besides, this is my local server, which does not go outside in any way, and even more so, there is no access to it from the outside.
How to remove such validation so that for root the password could not be set or the maximum password is root?
Answer the question
In order to leave comments, you need to log in
Authorization in MariaDB is possible without a password from a privileged linux account.
The parameter enabling this "behavior" is in the mysql.users table and has the value unix_socket . In debian 9+, the auth_socket.so plugin is enabled by default.
This information is also relevant for devices of the Synlogy family.
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'xxx' WITH GRANT OPTION;
INSTALL SONAME 'auth_socket';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED VIA unix_socket WITH GRANT OPTION;
SELECT * FROM information_schema.PLUGINS;
> sudo mysql -uroot
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 10.3.21-MariaDB Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question