Vous êtes sur la page 1sur 4

/* 11*4DB */

-- a0002,a0005,a0006,a0007,a0008,a0012,a0013,a0014,a0015,a0017,a0018,a0020,a0028
,a0031,a0034,
-- a0036,a0038,a0039,a0042,a0047,a0052 (Professional),a0057,a0058,a0059,a0078,a0
079,
-- a0080,a0082,a0083,a0084,a0085,a0086,a0087,a0088,a0089,a0090,a0091,a0092,a0094
,a0095,a0096,a0097
-- 23demo,83copy
login as: root
root@103.231.44.10's password:
Last login: Tue Dec 20 16:45:54 2016 from 210.212.160.170
[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 167312
Server version: 5.6.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use a0010;
login as: root
root@103.231.44.10's password:
Last login: Tue Dec 20 18:01:04 2016 from 49.248.140.230
[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 169319
Server version: 5.6.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql>
mysql> use a0010;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql>
mysql>
mysql>
mysql> select emp_id,count(distinct password) as cnt from userlogininfo having c
nt>1;
+--------+-----+
| emp_id | cnt |
+--------+-----+
| e0001 | 181 |
+--------+-----+
1 row in set (0.00 sec)
mysql> Ctrl-C -- exit!
Aborted
[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 169499
Server version: 5.6.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use a0010;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql>
mysql> select emp_id,count(distinct password) as cnt from userlogininfo group by
emp_id having cnt>1;
+--------+-----+
| emp_id | cnt |
+--------+-----+
| e0004 | 2 |
| e0015 | 2 |
| e0016 | 2 |
| e0098 | 2 |
+--------+-----+
4 rows in set (0.00 sec)
mysql> select emp_id,decrypt_pass(password,'paSSword') from userlogininfo where
emp_id in ('e0004','e0015','e0016','e0098');
+--------+-----------------------------------+
| emp_id | decrypt_pass(password,'paSSword') |
+--------+-----------------------------------+
| e0004 | rs133 |
| e0004 | rs |
| e0004 | rs |
| e0015 | ra106 |
| e0015 | r
|
| e0015 | r
|
| e0016 | jk4575 |
| e0016 | jk457 |
| e0016 | jk457 |
| e0098 | nm4816 |
| e0098 | n |
+--------+-----------------------------------+
11 rows in set (0.00 sec)
mysql> update userlogininfo set password=encrypt_pass('rs1333','paSSword') where
emp_id='e0004';
Query OK, 3 rows affected (0.05 sec)
Rows matched: 3 Changed: 3 Warnings: 0
mysql> update userlogininfo set password=encrypt_pass('rs1333','paSSword') where
emp_id='e0004';
Query OK, 0 rows affected (0.04 sec)
Rows matched: 3 Changed: 0 Warnings: 0
mysql> update userlogininfo set password=encrypt_pass('rs1333','paSSword') where
emp_id='e0004';
Query OK, 0 rows affected (0.04 sec)
Rows matched: 3 Changed: 0 Warnings: 0
mysql> update userlogininfo set password=encrypt_pass('ra1066','paSSword') where
emp_id='e0015';
Query OK, 3 rows affected (0.05 sec)
Rows matched: 3 Changed: 3 Warnings: 0
mysql> update userlogininfo set password=encrypt_pass('jk4575','paSSword') where
emp_id='e0016';
Query OK, 2 rows affected (0.04 sec)
Rows matched: 3 Changed: 2 Warnings: 0
mysql> update userlogininfo set password=encrypt_pass('nm4816','paSSword') where
emp_id='e0098';
Query OK, 1 row affected (0.03 sec)
Rows matched: 2 Changed: 1 Warnings: 0
mysql>
mysql>
mysql>
mysql>
mysql>

Vous aimerez peut-être aussi