<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-drop-db"> <refnamediv> <refname>mysql_drop_db</refname> <refpurpose>Drop (delete) a MySQL database</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>mysql_drop_db</methodname> <methodparam><type>string</type><parameter>database_name</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter> link_identifier </parameter></methodparam> </methodsynopsis> <para> <function>mysql_drop_db</function> attempts to drop (remove) an entire database from the server associated with the specified link identifier. </para> <para> &return.success; </para> <para> For downward compatibility <function>mysql_dropdb</function> can also be used. This is deprecated, however. </para> <note> <para> The function <function>mysql_drop_db</function> is deprecated. It is preferable to use <function>mysql_query</function> to issue a <literal>SQL DROP DATABASE</literal> statement instead. </para> </note> <warning> <para> This function will not be available if the MySQL extension was built against a MySQL 4.x client library </para> </warning> <para> See also <function>mysql_create_db</function>, and <function>mysql_query</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->