MySQL Plugin
1.2.1. validate_password
插件的卸载与安装
uninstall plugin validate_password; INSTALL PLUGIN validate_password SONAME 'validate_password.so';
查看变量设置
mysql> SHOW VARIABLES LIKE 'validate_password%'; +--------------------------------------+--------+ | Variable_name | Value | +--------------------------------------+--------+ | validate_password_check_user_name | OFF | | validate_password_dictionary_file | | | validate_password_length | 8 | | validate_password_mixed_case_count | 1 | | validate_password_number_count | 1 | | validate_password_policy | MEDIUM | | validate_password_special_char_count | 1 | +--------------------------------------+--------+ 7 rows in set (0.00 sec) mysql>
修改策略与密码长度
mysql> set global validate_password_policy=0; mysql> set global validate_password_length=4; mysql> grant all privileges on test.* to 'test'@localhost identified by 'chen';
1.2.2. MySQL Images manager
地址: https://github.com/netkiller/mysql-image-plugin
cd /usr/local/src/ git clone https://github.com/netkiller/mysql-image-plugin.git cd mysql-image-plugin/ yum install cmake cmake . make && make install </screen> <screen> Install create function image_check returns string soname 'libimage.so'; creat