提示报错:
You are required to validate your login by entering the word below.
我们的解决办法:登录数据库更改admin的password值。
==============
1.登录数据库查看users表的信息。
[root@confluence]# mysql -h localhost -u root -p
Enter password:
---查看数据库
mysql> show databases ;
+--------------------+
| Database |
+--------------------+
| confluence |
| mysql |
+--------------------+
--使用users表
mysql> use confluence ;
Database changed
mysql> show tables
-> ;
+-----------------------+
| Tables_in_confluence |
+-----------------------+
| users |
+-----------------------+
--先看下表结构的定义以便更改时出现数据类型的错误。
mysql> describe users ;
+----------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+--------------+------+-----+---------+-------+
| id | bigint(20) | NO | PRI | NULL | |
| name | varchar(255) | NO | UNI | NULL | |
| password | varchar(255) | YES | | NULL | |
| email | varchar(255) | YES | | NULL | |
| created | datetime | YES | | NULL | |
| fullname | varchar(255) | YES | | NULL | |
+----------+--------------+------+-----+---------+-------+
6 rows in set (0.00 sec) 2.查看admin和可以登录的用户的详细信息
mysql> select * from users
+---------+-----------------------+------------------------------------------------------------------------------------------+--------------------------+---------------------+
| id | name | password | email | created |
+---------+-----------------------+------------------------------------------------------------------------------------------+--------------------------+---------------------+
| 393217 | admin | Hlgi9uxAjkpKC63F0MkQJSAyWTgoWM5fri8ItrTx59+MYRTZ51m5nb+5Zy9svW+ciBvqBpMQg== | | 2011-06-28 15:59:15 |
由于是管理员帐号,我们只能先给他设置个密码能登录进去再做其他修改。 3.首先找到可以使用的用户的密码,新建测试用户密码都ok再对admin的password的更改。
mysql> insert into users(id,name,password,email,created) values(8519690,009,'a6miYVtgkpkXEkpFB2dNvd0gHiFdBMaptiQcBNCwKx6xIef7xytpMDyKp3K7ZbE9OqZB2kO5Zlm6Mbw==',0,2012-04-13);
mysql> update users SET name='lwy' where name='9'; 4.更改admin密码测试登录ok
mysql> update users SET password='a6miYVtgkpkXEkpFB2dNvd0gHiFdBMaptiQcBNCwKx6xIef7xytpMDyKp3K7ZbE8FXIjTX9OqZB2kO5Zlm6Mbw==' where name='admin'; 5.admin登录后先建立一个可用的administrator,作为以后的管理员,因为不知道confluence和mysql的组合里有什么策略,我们重置admin密码登录第一次是没有问题的,第二次就会报错,登录不了。
本文出自 “yanzi” 博客,请务必保留此出处http://daddysgirl.blog.51cto.com/1598612/845138