如何列出mysql 服务器的所有数据库 mysql_db_name
定义和用法
该mysql_db_name ( )函数认为,从数据库名称呼吁mysql_list_dbs ( )函数。
这个函数返回数据库名称上的成功,或FALSE的失败。
语法
mysql_db_name(list,row,field)
list | 必需的。结果指针指定的mysql_list_dbs ( )函数 |
row | 必需的。指定哪些行指数的结果指针返回。始于零。 |
field | 可以,数据库名 |
来看看mysql_db_name的实例吧.
<pre class="brush:php;toolbar:false">$db_list = mysql_list_dbs($con);
$i = 0; $db_count = mysql_num_rows($db_list); while ($i "; $i++; }
?>
输出结果是你当前服务器的所有数据库哦.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver CS6
Visual web development tools

Atom editor mac version download
The most popular open source editor
