2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2004-07-23 00:18:22 +00:00
|
|
|
<!-- $Revision: 1.3 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
|
|
|
<refentry id="function.mysql-change-user">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mysql_change_user</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Change logged in user of the active connection
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>int</type><methodname>mysql_change_user</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>user</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>password</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>
|
|
|
|
database
|
|
|
|
</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>resource</type><parameter>
|
|
|
|
link_identifier
|
|
|
|
</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
<function>mysql_change_user</function> changes the logged in user
|
|
|
|
of the current active connection, or the connection given by the
|
|
|
|
optional <parameter>link_identifier</parameter> parameter. If a
|
|
|
|
database is specified, this will be the current database after
|
|
|
|
the user has been changed. If the new user and password
|
|
|
|
authorization fails, the current connected user stays active.
|
|
|
|
&return.success;
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>
|
2004-07-23 00:18:22 +00:00
|
|
|
This deprecated function is only available in PHP 3 and requires MySQL
|
|
|
|
3.23.3 or higher.
|
2002-04-15 00:12:54 +00:00
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</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
|
|
|
|
-->
|