How to list all the mysql server database mysql_db_name

Source: Internet
Author: User
Keywords Network programming Mysql tutorial
Tags failed function how to list mysql mysql tutorial mysql_list_dbs name

How to list all the mysql server database mysql_db_name

Definition and Usage The mysql_db_name () function assumes that the mysql_list_dbs () function is called from the database name.

This function returns the success of the database name, or FALSE failed.

grammar

mysql_db_name (list, row, field) list Required. Result pointer specified mysql_list_dbs () function row required. The result pointer of which row index is specified is returned. Starts at zero. field can, look at the database name mysql_db_name example it. <? $ db_list = mysql_list_dbs ($ con); $ i = 0; $ db_count = mysql_num_rows ($ db_list); while ($ i <$ db_count) {echo mysql_db_name ( $ db_list, $ i). "<br />"; $ i ++;}?> The output is all your current server database Oh.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.