Septanet Forum  

Go Back   Septanet Forum > Computers, Software, Harware, Information Technology > MySQL

Reply
 
LinkBack Thread Tools Display Modes
Old 05-09-2011, 05:08 PM   #1
Senior Member
 
harry's Avatar
 
Join Date: Aug 2011
Posts: 103
Thumbs up connect database

How we can connect the database through terminal or shell:--

1. Go to your terminal with your mysql user name and password
and type the commands:--
CONNECT DATABASE NAME or USE DATABASE NAME

OUTPUT: Now You will be connected the current database.

2. After this if you want to know the all database on that host
Then type SHOW DATABASE you will find out all database.

3. If you want the all table list then type the following command
SHOW TABLE
4. If you want the table structure information then type the following command
DESCRIBE TABLE NAME
harry is offline  
Digg this Post!Bookmark Post in Technorati
Reply With Quote
Reply

Tags
connect, show table mysql, use database in mysql

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 01:25 AM.


Content Relevant URLs by vBSEO 3.5.0 RC2