473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Display all databases

I am accessing MySQL databases using Visual Basic 6 running on windows

It is possible to display all the available databases in the \Data
directory? Is there a function/command that I can call to return all the
databases. This is similar to how MySQL Administrator displays a list of
databases in Catalog.

Any help greatly appreciated.

Tks
John
Jan 31 '06 #1
3 3142
zMisc wrote:
I am accessing MySQL databases using Visual Basic 6 running on windows

It is possible to display all the available databases in the \Data
directory? Is there a function/command that I can call to return all the
databases. This is similar to how MySQL Administrator displays a list of
databases in Catalog.

Any help greatly appreciated.

Tks
John


You can issue a SHOW DATABASES; command to show the databases, this will
display the databases which the current user is allowed to access (this
is based on the permission level)

Jonathan
Jan 31 '06 #2
On Tue, 31 Jan 2006 03:26:47 +0000, zMisc wrote:
I am accessing MySQL databases using Visual Basic 6 running on windows

It is possible to display all the available databases in the \Data
directory? Is there a function/command that I can call to return all the
databases. This is similar to how MySQL Administrator displays a list of
databases in Catalog.

Any help greatly appreciated.

Tks
John


potentially, if you're using mysql > 5.0 you can write a function and/or
stored procedure that returns the databases to you. you can then run the
stored procedure via a 'call' command or if you write a function you just
select 'function_name'.

hope this helps

Jan 31 '06 #3
"zMisc" <yo********@hotmail.com> wrote in message
news:XN********************@news-server.bigpond.net.au...
It is possible to display all the available databases in the \Data
directory? Is there a function/command that I can call to return all the
databases. This is similar to how MySQL Administrator displays a list of
databases in Catalog.


MySQL 5.0 has a special information_schema database that show this and lots
of other information.

For instance, http://dev.mysql.com/doc/refman/5.0/...ata-table.html
says:

The following statements are equivalent:
SELECT SCHEMA_NAME AS `Database`
FROM INFORMATION_SCHEMA.SCHEMATA
[WHERE SCHEMA_NAME LIKE 'wild']

SHOW DATABASES
[LIKE 'wild']
Regards,Bill K.
Jan 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cara | last post by:
LAST CALL FOR VOTES (of 2) unmoderated group comp.databases.etl Newsgroups line: comp.databases.etl Extraction, transformation, loading issues. Votes must be received by 23:59:59 UTC, 12 Dec...
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
1
by: Roy | last post by:
I am using C# and would like to display all my SQL databases in a listbox. How do I use the sp_helpdb to retrive the names of my databases?
7
by: jez123456 | last post by:
Hi, I have the following method where I need to display which database is being processed, however, the label lblDatabase dosn't seem to work until the end. private void...
5
by: Miguel Dias Moura | last post by:
Hello, I have a search form in an ASP.NET/VB page. The form has the input text box and the button "search". The keywords are passed in the URL to results.aspx. Here is an example:...
6
by: Mark | last post by:
Hello all, I have the following file.txt storing these kind of values: Name: John Doe E-mail: john@doe.com Phone: 555 865 8901 Address: 71 Huntington Ln. (33444) FL - Delray Beach US Member...
2
by: rdemyan via AccessMonster.com | last post by:
I have a custom message form that I want to display when the user shuts down my app. Some clean up needs to be done during shutdown and I want to display this form and then display various...
24
by: Phil Latio | last post by:
Let's say I have a simple web application running with just two MySQL tables. The tables structure is as follows: Table: category category_id (PK) category_name parent_category (FK)...
0
by: Mark | last post by:
sorry..this is directed specifically to phpMyAdmin. when I go to mysite.com/phpMyAdmin, on the left column it says "no databases" but I can manually tell it USE 'my_database_name'; SELECT *...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.