Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mongoconnectionexception(3) [php man page]

MONGOCONNECTIONEXCEPTION(3)						 1					       MONGOCONNECTIONEXCEPTION(3)

The MongoConnectionException class

INTRODUCTION
Thrown when the driver fails to connect to the database. There are a number of possible error messages to help you diagnose the connection problem. These are: o No candidate servers found Thrown when the driver cannot establish a connection to MongoDB (fulfilling the ReadPreferences, if specified). o No server name given. This error occurs if you pass in "" as the server name, probably because of an typo with string interpola- tion, e.g., "$servr" instead of "$server". o failed to get host [hostname] or port [portnum] from [server]. This indicated that the server string was malformed. "[hostname]" and "[portnum]" will be as much as the driver could dicipher of it. o Operation in progress Connecting to the database timed out. o Transport endpoint is not connected Generally means that the connection string isn't correct, the driver couldn't even find the database server. o couldn't determine master No server in a replica set connection was identified as the primary. o couldn't get host info for [server] This indicated that DNS could not resolve the server address you gave. This could easily be caused by a typo, for example, "server" instead of "$server". o Invalid Argument This can be caused by attempting to connect to a machine that is up but that the database isn't actually running on. Make sure that you've started the database server before connecting. o Permission denied This means that the socket could not be opened due to permissions issues. On Red Hat variants, this can be caused by a default setting that does not allow Apache to create network connections. You can override this setting by running: $ /usr/sbin/setsebool -P httpd_can_network_connect 1 If the error message is not listed above, it is probably an error from the C socket, and you can search the web for its usual cause. CLASS SYNOPSIS
MongoConnectionException MongoConnectionExceptionextends MongoException PHP Documentation Group MONGOCONNECTIONEXCEPTION(3)

Check Out this Related Man Page

DROPDB(1)						  PostgreSQL Client Applications						 DROPDB(1)

NAME
dropdb - remove a PostgreSQL database SYNOPSIS
dropdb [ option... ] dbname DESCRIPTION
dropdb destroys an existing PostgreSQL database. The user who executes this command must be a database superuser or the owner of the data- base. dropdb is a wrapper around the SQL command DROP DATABASE [drop_database(7)]. There is no effective difference between dropping databases via this utility and via other methods for accessing the server. OPTIONS
dropdb accepts the following command-line arguments: dbname Specifies the name of the database to be removed. -e --echo Echo the commands that dropdb generates and sends to the server. -i --interactive Issues a verification prompt before doing anything destructive. dropdb also accepts the following command-line arguments for connection parameters: -h host --host host Specifies the host name of the machine on which the server is running. If the value begins with a slash, it is used as the directory for the Unix domain socket. -p port --port port Specifies the TCP port or local Unix domain socket file extension on which the server is listening for connections. -U username --username username User name to connect as. -w --no-password Never issue a password prompt. If the server requires password authentication and a password is not available by other means such as a .pgpass file, the connection attempt will fail. This option can be useful in batch jobs and scripts where no user is present to enter a password. -W --password Force dropdb to prompt for a password before connecting to a database. This option is never essential, since dropdb will automatically prompt for a password if the server demands password authentication. However, dropdb will waste a connection attempt finding out that the server wants a password. In some cases it is worth typing -W to avoid the extra connection attempt. ENVIRONMENT
PGHOST PGPORT PGUSER Default connection parameters This utility, like most other PostgreSQL utilities, also uses the environment variables supported by libpq (see in the documentation). DIAGNOSTICS
In case of difficulty, see DROP DATABASE [drop_database(7)] and psql(1) for discussions of potential problems and error messages. The database server must be running at the targeted host. Also, any default connection settings and environment variables used by the libpq front-end library will apply. EXAMPLES
To destroy the database demo on the default database server: $ dropdb demo To destroy the database demo using the server on host eden, port 5000, with verification and a peek at the underlying command: $ dropdb -p 5000 -h eden -i -e demo Database "demo" will be permanently deleted. Are you sure? (y/n) y DROP DATABASE demo; SEE ALSO
createdb(1), DROP DATABASE [drop_database(7)] Application 2010-05-14 DROPDB(1)
Man Page