svn: /phpdoc/en/trunk/reference/mysql/functions/ mysql-stat.xml
| From: | Jordi Boggiano | Date: | Thu, 17 Dec 2009 12:10:36 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mysql/functions/ mysql-stat.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5674@lists.php.net to get a copy of this message | ||
seld Thu, 17 Dec 2009 12:10:36 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292247
Log:
Fixes SQL query in example #2 of mysql_stat, fixes bug #43313
Bugs: http://bugs.php.net/2 (Closed) hash_environment
http://bugs.php.net/43313 (To be documented) getopt()
doesn't handle unknown parameters
Changed paths:
U phpdoc/en/trunk/reference/mysql/functions/mysql-stat.xml
Modified: phpdoc/en/trunk/reference/mysql/functions/mysql-stat.xml
===================================================================
--- phpdoc/en/trunk/reference/mysql/functions/mysql-stat.xml 2009-12-17 12:00:51 UTC (rev 292246)
+++ phpdoc/en/trunk/reference/mysql/functions/mysql-stat.xml 2009-12-17 12:10:36 UTC (rev 292247)
@@ -25,17 +25,17 @@
</variablelist>
</para>
</refsect1>
-
+
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns a string with the status for uptime, threads, queries, open tables,
- flush tables and queries per second. For a complete list of other status
- variables, you have to use the <literal>SHOW STATUS</literal> SQL command.
+ Returns a string with the status for uptime, threads, queries, open tables,
+ flush tables and queries per second. For a complete list of other status
+ variables, you have to use the <literal>SHOW STATUS</literal> SQL command.
If <parameter>link_identifier</parameter> is invalid, &null; is returned.
</para>
</refsect1>
-
+
<refsect1 role="examples">
&reftitle.examples;
<para>
@@ -75,7 +75,7 @@
<![CDATA[
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
-$result = mysql_query('SHOW VARIABLES', $link);
+$result = mysql_query('SHOW STATUS', $link);
while ($row = mysql_fetch_assoc($result)) {
echo $row['Variable_name'] . ' = ' . $row['Value'] .
"\n";
}
@@ -91,7 +91,7 @@
bdb_log_buffer_size = 32768
bdb_home = /var/db/mysql/
bdb_max_lock = 10000
-bdb_logdir =
+bdb_logdir =
bdb_shared_data = OFF
bdb_tmpdir = /var/tmp/
...