Oracle 5.0 Reference Manual page 2269

Table of Contents

Advertisement

See Also
mysql_pconnect
mysql_close
20.7.2.5.5.
mysql_create_db
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysql_create_db
Create a MySQL database
Description
bool mysql_create_db(
string database_name,
resource link_identifier
=
=NULL);
mysql_create_db
identifier.
Parameters
database_name
link_identifier
Return Values
Returns
TRUE
Original MySQL API (Mysql)
Note
The link to the server will be closed as soon as the execution of the script ends,
unless it's closed earlier by explicitly calling mysql_close.
Note
You can suppress the error message on failure by prepending a
function name.
Note
Error "Can't create TCP/IP socket (10106)" usually means that the
variables_order
configure directive doesn't contain character E. On Windows, if
the environment is not copied the
available and PHP will have problems loading Winsock.
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the
future. Instead, the
also
MySQL: choosing an API
Alternatives to this function include:
mysqli_query
PDO::query
attempts to create a new database on the server associated with the specified link
The name of the database being created.
The MySQL connection. If the link identifier is not specified, the
last link opened by
is found, it will try to create one as if
with no arguments. If no connection is found or established, an
E_WARNING
on success or
on failure.
FALSE
SYSTEMROOT
MySQLi
or
PDO_MySQL
guide and
related FAQ
mysql_connect
level error is generated.
2249
@
to the
environment variable won't be
extension should be used. See
for more information.
is assumed. If no such link
mysql_connect
was called

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents