mirror of
https://github.com/php/doc-ru.git
synced 2025-08-04 08:04:39 +00:00

# many of these files are outdated git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@164779 c90b9560-bf6c-de11-be94-00142212c4b1
75 lines
2.0 KiB
XML
75 lines
2.0 KiB
XML
<?xml version="1.0" encoding="windows-1251"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- EN-Revision: 1.4 Maintainer: lovchy Status: ready -->
|
|
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 -->
|
|
<refentry id="function.mysql-list-processes">
|
|
<refnamediv>
|
|
<refname>mysql_list_processes</refname>
|
|
<refpurpose>Âîçâðàùàåò ñïèñîê ïðîöåññîâ MySQL</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Îïèñàíèå</title>
|
|
<methodsynopsis>
|
|
<type>resource</type><methodname>mysql_list_processes</methodname>
|
|
<methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>mysql_list_processes</function> âîçâðàùàåò óêàçàòåëü íà
|
|
ðåçóëüòàò, ñîäåðæàùèé â ñåáå òåêóùèå, âûïîëíÿåìûå ñåðâåðîì, ïðîöåññû.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Ïðèìåð èñïîëüçîâàíèÿ <function>mysql_list_processes</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
|
|
|
|
$result = mysql_list_processes($link);
|
|
while ($row = mysql_fetch_assoc($result)){
|
|
printf("%s %s %s %s %s\n", $row["Id"], $row["Host"], $row["db"],
|
|
$row["Command"], $row["Time"]);
|
|
}
|
|
mysql_free_result ($result);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
<para>
|
|
Âûøåîïèñàííûé ïðèìåð âûäàñò ñëåäóþùèé ðåçóëüòàò:
|
|
</para>
|
|
<screen>
|
|
<![CDATA[
|
|
1 localhost test Processlist 0
|
|
4 localhost mysql sleep 5
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Ñì. òàêæå
|
|
<function>mysql_thread_id</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
|
|
-->
|