MySQL: Creating a database with

Hello,

i want to create a database with php.

A look in the php manual says that you need a special 4.x MySQL
version for using
mysql_create_db().

I am getting error message: Call to undefined function mysql_create_db().

When is this function defined and in what version of MySQL?

yours sincerly

Alexander Schunk

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Alexander Schunk [ Di, 18 Mai 2010 10:18 ] [ ID #2041623 ]

Re: MySQL: Creating a database with

--0016e6470cc07a87b20486da1f6a
Content-Type: text/plain; charset=ISO-8859-1

You probably miss the mysql extension or have different one than you are
calling.

Please call
<?php
php_info();
?>

in script to see what extensions are loaded. if there is some other module
supporting mysql just use different way to run sql.

otherwise you need to look into php.ini and see if module is available and
activate it. If you dont have one and you are on debian like system you
might be able to install it from a system package.

Art

On 18 May 2010 09:18, Alexander Schunk <aschunk [at] gmail.com> wrote:

> Hello,
>
> i want to create a database with php.
>
> A look in the php manual says that you need a special 4.x MySQL
> version for using
> mysql_create_db().
>
> I am getting error message: Call to undefined function mysql_create_db().
>
> When is this function defined and in what version of MySQL?
>
> yours sincerly
>
> Alexander Schunk
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--0016e6470cc07a87b20486da1f6a--
Artur Ejsmont [ Di, 18 Mai 2010 10:28 ] [ ID #2041624 ]
PHP » gmane.comp.php.database » MySQL: Creating a database with

Vorheriges Thema: deleting rows with composite primary key
Nächstes Thema: Help with mysql data sorting using php