@@ -174,14 +174,14 @@ ____________________________________________________________________________-->
174
174
From that point on, the client and the new server process
175
175
communicate without intervention by the original
176
176
<filename>postgres</filename> process. Thus, the
177
- master server process is always running, waiting for
177
+ supervisor server process is always running, waiting for
178
178
client connections, whereas client and associated server processes
179
179
come and go. (All of this is of course invisible to the user. We
180
180
only mention it here for completeness.)
181
181
</para>
182
182
____________________________________________________________________________-->
183
183
<para>
184
- <productname>PostgreSQL</productname>服务器可以处理来自客户端的多个并发请求。 因此,它为每个连接启动(<quote>forks</quote>)一个新的进程。 从这个时候开始,客户端和新服务器进程就不再经过最初的 <filename>postgres</filename>进程的干涉进行通讯。 因此,主服务器进程总是在运行并等待着客户端联接 , 而客户端和相关联的服务器进程则是起起停停(当然,这些对用户是透明的。我们介绍这些主要是为了内容的完整性)。
184
+ <productname>PostgreSQL</productname>服务器可以处理来自客户端的多个并发请求。 因此,它为每个连接启动(<quote>forks</quote>)一个新的进程。 从这个时候开始,客户端和新服务器进程就不再经过最初的 <filename>postgres</filename>进程的干涉进行通讯。 因此,守护者服务器进程总是在运行并等待着客户端联接 , 而客户端和相关联的服务器进程则是起起停停(当然,这些对用户是透明的。我们介绍这些主要是为了内容的完整性)。
185
185
</para>
186
186
</sect1>
187
187
@@ -289,30 +289,28 @@ createdb: command not found
289
289
<para>
290
290
Another response could be this:
291
291
<screen>
292
- createdb: could not connect to database postgres: could not connect to server: No such file or directory
293
- Is the server running locally and accepting
294
- connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
292
+ createdb: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory
293
+ Is the server running locally and accepting connections on that socket?
295
294
</screen>
296
- This means that the server was not started, or it was not started
297
- where <command>createdb</command> expected it. Again, check the
295
+ This means that the server was not started, or it is not listening
296
+ where <command>createdb</command> expects to contact it. Again, check the
298
297
installation instructions or consult the administrator.
299
298
</para>
300
299
____________________________________________________________________________-->
301
300
<para>
302
301
另外一种响应可能是这样:
303
302
<screen>
304
- createdb: could not connect to database postgres: could not connect to server: No such file or directory
305
- Is the server running locally and accepting
306
- connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
303
+ createdb: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory
304
+ Is the server running locally and accepting connections on that socket?
307
305
</screen>
308
- 这意味着该服务器没有启动,或者没有按照 <command>createdb</command>预期地启动 。同样, 你也要查看安装指导或者咨询管理员。
306
+ 这意味着该服务器没有启动,或者在 <command>createdb</command>期望去连接它的时候没有在监听 。同样, 你也要查看安装指导或者咨询管理员。
309
307
</para>
310
308
311
309
<!--==========================orignal english content==========================
312
310
<para>
313
311
Another response could be this:
314
312
<screen>
315
- createdb: could not connect to database postgres : FATAL: role "joe" does not exist
313
+ createdb: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed : FATAL: role "joe" does not exist
316
314
</screen>
317
315
where your own login name is mentioned. This will happen if the
318
316
administrator has not created a <productname>PostgreSQL</productname> user account
@@ -331,7 +329,7 @@ ____________________________________________________________________________-->
331
329
<para>
332
330
另外一个响应可能是这样:
333
331
<screen>
334
- createdb: could not connect to database postgres : FATAL: role "joe" does not exist
332
+ createdb: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed : FATAL: role "joe" does not exist
335
333
</screen>
336
334
在这里提到了你自己的登录名。如果管理员没有为你创建<productname>PostgreSQL</productname>用户帐号, 就会发生这些现象。(<productname>PostgreSQL</productname>用户帐号和操作系统用户帐号是不同的。) 如果你是管理员,参阅<xref linkend="user-manag"/>获取创建用户帐号的帮助。 你需要变成安装<productname>PostgreSQL</productname>的操作系统用户的身份(通常是 <literal>postgres</literal>)才能创建第一个用户帐号。 也有可能是赋予你的<productname>PostgreSQL</productname>用户名和你的操作系统用户名不同; 这种情况下,你需要使用<option>-U</option>选项或者使用<envar>PGUSER</envar>环境变量指定你的<productname>PostgreSQL</productname>用户名。
337
335
</para>
@@ -341,7 +339,7 @@ createdb: could not connect to database postgres: FATAL: role "joe" does not ex
341
339
If you have a user account but it does not have the privileges required to
342
340
create a database, you will see the following:
343
341
<screen>
344
- createdb: database creation failed: ERROR: permission denied to create database
342
+ createdb: error: database creation failed: ERROR: permission denied to create database
345
343
</screen>
346
344
Not every user has authorization to create new databases. If
347
345
<productname>PostgreSQL</productname> refuses to create databases
@@ -373,7 +371,7 @@ ____________________________________________________________________________-->
373
371
<para>
374
372
如果你有个数据库用户帐号,但是没有创建数据库所需要的权限,那么你会看到下面的信息:
375
373
<screen>
376
- createdb: database creation failed: ERROR: permission denied to create database
374
+ createdb: error: database creation failed: ERROR: permission denied to create database
377
375
</screen>
378
376
并非所有用户都被许可创建新数据库。 如果<productname>PostgreSQL</productname>拒绝为你创建数据库, 那么你需要让站点管理员赋予你创建数据库的权限。出现这种情况时请咨询你的站点管理员。 如果你自己安装了<productname>PostgreSQL</productname>, 那么你应该以你启动数据库服务器的用户身份登录然后参考手册完成权限的赋予工作。
379
377
0 commit comments