Main Contents
2008年11月17日
Pleskのメールパスワードを探す方法
Pleskで設定しているメールパスワードをデータベースから直接確認する方法。
例: hgoehoge@example.comのパスワードを確認する
$ mysql -u admin -p`cat /etc/psa/.psa.shadow` psa
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11612026 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> select id,name from domains;
+----+------------------------+
| id | name |
+----+------------------------+
| 1 | example.com |
----+------------------------+
1 rows in set (0.00 sec)
mysql> select account_id from dom_id=1 and mail_name='hogehoge';
+------------+
| account_id |
+------------+
| 65 |
+------------+
1 row in set (0.00 sec)
mysql> select password from accounts where id=65;
+----------+
| password |
+----------+
| hagehage |
+----------+
1 row in set (0.00 sec)
hagehage がパスワード
mysqlのバージョンが古くてサブクエリが使えん。
- Permalink
- Trackbacks (0)
- by shinobe
- at 14:31
- in Computer