Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fbsql_create_db(3) [php man page]

FBSQL_CREATE_DB(3)							 1							FBSQL_CREATE_DB(3)

fbsql_create_db - Create a FrontBase database

SYNOPSIS
bool fbsql_create_db (string $database_name, [resource $link_identifier], [string $database_options]) DESCRIPTION
Attempts to create a new database on the specified server. PARAMETERS
o $database_name - The database name, as a string. o $ link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).If optional and not specified, the function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if fbsql_connect(3) was called with no arguments. o $database_options - RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 fbsql_create_db(3) example <?php $link = fbsql_pconnect("localhost", "_SYSTEM", "secret") or die("Could not connect"); if (fbsql_create_db("my_db")) { echo "Database created successfully "; } else { printf("Error creating database: %s ", fbsql_error()); } ?> SEE ALSO
fbsql_drop_db(3). PHP Documentation Group FBSQL_CREATE_DB(3)

Check Out this Related Man Page

FBSQL_DATABASE_PASSWORD(3)						 1						FBSQL_DATABASE_PASSWORD(3)

fbsql_database_password - Sets or retrieves the password for a FrontBase database

SYNOPSIS
string fbsql_database_password (resource $link_identifier, [string $database_password]) DESCRIPTION
Sets and retrieves the database password used by the connection. If a database is protected by a database password, the user must call this function before calling fbsql_select_db(3). If no link is open, the function will try to establish a link as if fbsql_connect(3) was called, and use it. This function does not change the database password in the database nor can it be used to retrieve the database password for a database. PARAMETERS
o $ link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).If optional and not specified, the function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if fbsql_connect(3) was called with no arguments. o $database_password - The database password, as a string. If given, the function sets the database password for the specified link identifier. RETURN VALUES
Returns the database password associated with the link identifier. EXAMPLES
Example #1 fbsql_create_clob(3) example <?php $link = fbsql_pconnect("localhost", "_SYSTEM", "secret") or die("Could not connect"); fbsql_database_password($link, "secret db password"); fbsql_select_db($database, $link); ?> SEE ALSO
fbsql_connect(3), fbsql_pconnect(3), fbsql_select_db(3). PHP Documentation Group FBSQL_DATABASE_PASSWORD(3)
Man Page