質問編集履歴
2
コードを改良した際に出たエラーを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,4 +30,22 @@
|
|
30
30
|
しかし、パスワード等は変更の方法があってもユーザー名のみ調べても見つけられません。
|
31
31
|
また、ユーザー名をpostureSQLを使う上でどの段階で設定するものなのか分かりません。
|
32
32
|
教えていただけないでしょうか。
|
33
|
-
参考にしているサイトは以下の通りです。[リンク内容](https://hassiweb-programming.blogspot.com/2018/05/postgresql-control-by-python.html)
|
33
|
+
参考にしているサイトは以下の通りです。[リンク内容](https://hassiweb-programming.blogspot.com/2018/05/postgresql-control-by-python.html)
|
34
|
+
|
35
|
+
その後のコードを改良してでたエラー
|
36
|
+
```ここに言語を入力
|
37
|
+
OperationalError Traceback (most recent call last)
|
38
|
+
<ipython-input-8-61543ac52e8b> in <module>()
|
39
|
+
----> 1 conn = psycopg2.connect(host='000', dbname='000', user='000', password='crRirr0322', port=5432)
|
40
|
+
|
41
|
+
/usr/local/lib/python3.6/dist-packages/psycopg2/__init__.py in connect(dsn, connection_factory, cursor_factory, **kwargs)
|
42
|
+
128
|
43
|
+
129 dsn = _ext.make_dsn(dsn, **kwargs)
|
44
|
+
--> 130 conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
|
45
|
+
131 if cursor_factory is not None:
|
46
|
+
132 conn.cursor_factory = cursor_factory
|
47
|
+
|
48
|
+
OperationalError: could not connect to server: Connection timed out
|
49
|
+
Is the server running on host "000" and accepting
|
50
|
+
TCP/IP connections on port 5432?
|
51
|
+
```
|
1
ユーザー名の検索について
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,8 +23,10 @@
|
|
23
23
|
usename | usesysid | usecreatedb | usesuper | userepl | usebypassrls | passwd | valuntil | useconfig
|
24
24
|
----------+----------+-------------+----------+---------+--------------+----------+----------+-----------
|
25
25
|
postgres | 10 | t | t | t | t | ******** | |
|
26
|
-
(1 行)
|
27
26
|
```
|
27
|
+
ネットで見たユーザー名を検索した場合の情報
|
28
|
+

|
29
|
+
|
28
30
|
しかし、パスワード等は変更の方法があってもユーザー名のみ調べても見つけられません。
|
29
31
|
また、ユーザー名をpostureSQLを使う上でどの段階で設定するものなのか分かりません。
|
30
32
|
教えていただけないでしょうか。
|