tailieunhanh - Red Hat Linux Networking and System Administration Third Edition phần 5

giữ trong tâm trí một hạn chế quan trọng trên hệ thống tập tin có thể được xuất khẩu và làm thế nào họ có thể được xuất khẩu. Bạn có thể xuất khẩu hệ thống tập tin và thư mục con của họ. Để thể hiện sự hạn chế này theo cách khác, bạn không thể xuất khẩu một hệ thống tập tin là chính nó đã được một sự gắn kết NFS. | 376 Chapter 15 Table 15-4 PostgreSQL Client Programs and Utilities 1 PROGRAM DESCRIPTION 1 createdb Creates a new database in the database cluster createuser Creates a new user in the database cluster dropdb Deletes a database from the database cluster dropuser Deletes a user form the database cluster pg_dump Saves dumps the contents of a database or database object to a file pg_restore Reloads a database or database object using a file created by pg_dump psql Provides a command interpreter for interacting with a database server Most PostgreSQL clients share a number of options in common. For example -U username specifies the username to use when connecting to the server. -W indicates you should be prompted for a password. -D path specifies the path to the PostgreSQL database cluster which defaults to the value of the environment variable PGDATA or the compiled in default var lib pgsql data . -e causes wrapper scripts like createdb and dropuser to echo to standard output stdout the SQL commands used. Commands that operate on or require a connection to a specific database usually accept a database name as an argument. If a database name is not specified it defaults to the name of the user connecting to the database specified using -U username or to the connecting user s login name if -U username is not specified. Similarly most PostgreSQL clients can use PostgreSQL-specific environment variables to set certain defaults. In addition to PGDATA which you ve already seen the variable PGDATABASE stores the name of the database to use or create or drop unless overridden on the command line. PGHOST specifies the name of the host on which the database server is running and so is usually used when connecting to a database running on a remote host. PGUSER defines the default connection parameters which usually consists of the PostgreSQL user name. You ve already seen the syntax for createdb and createuser so we won t review it here. dropdb and dropuser drop delete a database

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.