質問編集履歴

1

コマンド履歴を追加しました

2019/09/08 09:41

投稿

fdaskjlfda
fdaskjlfda

スコア40

test CHANGED
File without changes
test CHANGED
@@ -35,3 +35,113 @@
35
35
 
36
36
 
37
37
  どうかよろしくおねがいします。
38
+
39
+ ## 追記
40
+
41
+
42
+
43
+ ### その1(コマンドの履歴)
44
+
45
+
46
+
47
+ $ ssh sakura
48
+
49
+ Last login: Sun Sep 8 18:29:25 2019 from 202-229-49-79.ap-p27.canvas.ne.jp
50
+
51
+ FreeBSD 11.2-RELEASE-p9 (GENERIC) #0: Tue Feb 5 15:30:36 UTC 2019
52
+
53
+
54
+
55
+ Welcome to FreeBSD!
56
+
57
+
58
+
59
+ % mysql -u ai-watch -pパスワード -h mysqlxxxdb.sakura.ne.jp
60
+
61
+ mysql: [Warning] Using a password on the command line interface can be insecure.
62
+
63
+ Welcome to the MySQL monitor. Commands end with ; or \g.
64
+
65
+ Your MySQL connection id is xxxxxxxx
66
+
67
+ Server version: 5.7.23-log MySQL Community Server (GPL)
68
+
69
+
70
+
71
+ Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
72
+
73
+
74
+
75
+ Oracle is a registered trademark of Oracle Corporation and/or its
76
+
77
+ affiliates. Other names may be trademarks of their respective
78
+
79
+ owners.
80
+
81
+
82
+
83
+ Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
84
+
85
+
86
+
87
+ mysql> show databases;
88
+
89
+ +--------------------+
90
+
91
+ | Database |
92
+
93
+ +--------------------+
94
+
95
+ | information_schema |
96
+
97
+ | ai-watch_test |
98
+
99
+ +--------------------+
100
+
101
+ 2 rows in set (0.03 sec)
102
+
103
+
104
+
105
+ mysql> use ai-watch_test
106
+
107
+ Database changed
108
+
109
+
110
+
111
+ mysql> show tables;
112
+
113
+ Empty set (0.00 sec)
114
+
115
+
116
+
117
+ mysql> SELECT Host, User, Password FROM mysql.user;
118
+
119
+ ERROR 1142 (42000): SELECT command denied to user 'ai-watch'@'xx.xxx.xx.xxx' for table 'user'
120
+
121
+
122
+
123
+ mysql> exit
124
+
125
+ Bye
126
+
127
+
128
+
129
+ % mysql -u root -pパスワード -h mysqlxxx.db.sakura.ne.jp
130
+
131
+ mysql: [Warning] Using a password on the command line interface can be insecure.
132
+
133
+ ERROR 1045 (28000): Access denied for user 'root'@'xx.xxx.xx.xxx' (using password: YES)
134
+
135
+
136
+
137
+ % mysql -u root -h mysqlxxx.db.sakura.ne.jp
138
+
139
+ ERROR 1045 (28000): Access denied for user 'root'@'xx.xxx.xx.xxx' (using password: NO)
140
+
141
+
142
+
143
+ %
144
+
145
+
146
+
147
+ 注:xは数字の伏せ字です