centos7安裝confluence遇到的問題
問題:MySQL數據庫更改密碼顯示
error: ‘Your password does not satisfy the current policy requirements‘
解決方法:
select @@validate_password_policy;
SHOW VARIABLES LIKE ‘validate_password%‘;
validate_password_dictionary_file
插件用於驗證密碼強度的字典文件路徑。
validate_password_length
密碼最小長度,參數默認為8,它有最小值的限制,最小值為:validate_password_number_count + validate_password_special_char_count + (2 * validate_password_mixed_case_count)
validate_password_mixed_case_count
密碼至少要包含的小寫字母個數和大寫字母個數。
validate_password_number_count
密碼至少要包含的數字個數。
validate_password_policy
密碼強度檢查等級,0/LOW、1/MEDIUM、2/STRONG。有以下取值:
Policy Tests Performed
0 or LOW Length
1 or MEDIUM Length; numeric, lowercase/uppercase, and special characters
2 or STRONG Length; numeric, lowercase/uppercase, and special characters; dictionary file
validate_password_special_char_count
密碼至少要包含的特殊字符數。
set global validate_password_mixed_case_count=0;
SET password for ‘root‘@‘localhost‘=password(‘newpassword‘);
問題:Your database must use ‘READ-COMMITTED‘ as the default isolation level
解決方法:
cat /etc/my.cnf | grep -v "^#" | grep -v "^$"
init_connect=‘SET collation_connection = utf8_unicode_ci‘
init_connect=‘SET NAMES utf8‘
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
transaction_isolation = READ-COMMITTED
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
問題:Collation error The database collation ‘utf8_general_ci‘ is not supported by Confluence. You need to use ‘utf8_bin‘.
解決方法:
create database confluence character set utf8 collate utf8_bin;
grant all on confluence. to ‘confluenceuser‘@‘%‘ identified by ‘password‘ with grant option;
grant all on confluence. to ‘confluenceuser‘@localhost identified by ‘password‘ with grant option;
flush privileges;
數據庫測試:
mysql -u confluenceuser -h localhost -p
centos7安裝confluence遇到的問題