Join Up!
96657 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousmysql_connectmysql_data_seeknext
Last updated: Tue, 29 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Finnish | German

mysql_create_db

(PHP 3, PHP 4 )

mysql_create_db -- Crea una base MySQL

Descripción

int mysql_create_db ( string base_de_datos [, int identificador_de_enlace])

mysql_create_db() intenta crear una base nueva en el servidor asociado al identificador de enlace.

Ejemplo 1. Ejemplo de MySQL create

<?php
    $link = mysql_pconnect ("kron", "jutta", "geheim") {
        or die ("Could not connect");
    }
    if (mysql_create_db ("my_db")) {
        print ("Database created successfully\n");
    } else {
        printf ("Error creating database: %s\n", mysql_error ());
    }
?>

Por razones de compatibilidad puede usarse mysql_createdb() igualmente.

Ver también: mysql_drop_db().

User Contributed Notes
mysql_create_db
add a note about notes
There are no user contributed notes for this page.
previousmysql_connectmysql_data_seeknext
Last updated: Tue, 29 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST