質問編集履歴
1
コマンド履歴を追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,4 +16,59 @@
|
|
16
16
|
FTPアカウント(自動で作られた)では、root権限がないと思われるので、root権限を持つユーザーの名前とパスワードを調べたいです。
|
17
17
|
ですが、それがどこに書いてあるのかが全くわかりません。
|
18
18
|
|
19
|
-
どうかよろしくおねがいします。
|
19
|
+
どうかよろしくおねがいします。
|
20
|
+
## 追記
|
21
|
+
|
22
|
+
### その1(コマンドの履歴)
|
23
|
+
|
24
|
+
$ ssh sakura
|
25
|
+
Last login: Sun Sep 8 18:29:25 2019 from 202-229-49-79.ap-p27.canvas.ne.jp
|
26
|
+
FreeBSD 11.2-RELEASE-p9 (GENERIC) #0: Tue Feb 5 15:30:36 UTC 2019
|
27
|
+
|
28
|
+
Welcome to FreeBSD!
|
29
|
+
|
30
|
+
% mysql -u ai-watch -pパスワード -h mysqlxxxdb.sakura.ne.jp
|
31
|
+
mysql: [Warning] Using a password on the command line interface can be insecure.
|
32
|
+
Welcome to the MySQL monitor. Commands end with ; or \g.
|
33
|
+
Your MySQL connection id is xxxxxxxx
|
34
|
+
Server version: 5.7.23-log MySQL Community Server (GPL)
|
35
|
+
|
36
|
+
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
37
|
+
|
38
|
+
Oracle is a registered trademark of Oracle Corporation and/or its
|
39
|
+
affiliates. Other names may be trademarks of their respective
|
40
|
+
owners.
|
41
|
+
|
42
|
+
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
43
|
+
|
44
|
+
mysql> show databases;
|
45
|
+
+--------------------+
|
46
|
+
| Database |
|
47
|
+
+--------------------+
|
48
|
+
| information_schema |
|
49
|
+
| ai-watch_test |
|
50
|
+
+--------------------+
|
51
|
+
2 rows in set (0.03 sec)
|
52
|
+
|
53
|
+
mysql> use ai-watch_test
|
54
|
+
Database changed
|
55
|
+
|
56
|
+
mysql> show tables;
|
57
|
+
Empty set (0.00 sec)
|
58
|
+
|
59
|
+
mysql> SELECT Host, User, Password FROM mysql.user;
|
60
|
+
ERROR 1142 (42000): SELECT command denied to user 'ai-watch'@'xx.xxx.xx.xxx' for table 'user'
|
61
|
+
|
62
|
+
mysql> exit
|
63
|
+
Bye
|
64
|
+
|
65
|
+
% mysql -u root -pパスワード -h mysqlxxx.db.sakura.ne.jp
|
66
|
+
mysql: [Warning] Using a password on the command line interface can be insecure.
|
67
|
+
ERROR 1045 (28000): Access denied for user 'root'@'xx.xxx.xx.xxx' (using password: YES)
|
68
|
+
|
69
|
+
% mysql -u root -h mysqlxxx.db.sakura.ne.jp
|
70
|
+
ERROR 1045 (28000): Access denied for user 'root'@'xx.xxx.xx.xxx' (using password: NO)
|
71
|
+
|
72
|
+
%
|
73
|
+
|
74
|
+
注:xは数字の伏せ字です
|