How To Connect To Mysql With Command Terminal
Posted On Tue Feb 01, 2011 By hostman In MySQL Forums And Topics Discussions About Open Source Database Forums
this post will show you what command you need to use in order to connect to your mysql server using the command line terminal. this is helpful if you are using ssh sessions to login to your server and you need to test your mysql database.
i need to post this here because there are many administrators who find it userful to just connect from the command terminal in linux server. so if you have like a wallpaper website with a dedicated server from webune.com - this is a very useful command.
this is the command you can use:
NOTE:
USER = whatever username is for your database
HOST = whatever you server hostname is. if you are not sure, try using: localhost or the ip address of your server
after you enter this command, you will be prompted to enter the password for the USER
NOTE:
-u = user
-h = host
hope this helps
i need to post this here because there are many administrators who find it userful to just connect from the command terminal in linux server. so if you have like a wallpaper website with a dedicated server from webune.com - this is a very useful command.
this is the command you can use:
mysql -u USER -h HOST -p
NOTE:
USER = whatever username is for your database
HOST = whatever you server hostname is. if you are not sure, try using: localhost or the ip address of your server
after you enter this command, you will be prompted to enter the password for the USER
NOTE:
-u = user
-h = host
hope this helps
Related Content
Information
Forums »
MySQL Forums And Topics Discussions About Open Source Database »
How To Connect To Mysql With Command Terminal
MySQL Forums And Topics Discussions About Open Source Database »
How To Connect To Mysql With Command Terminal
Title: How To Connect To Mysql With Command Terminal
Description: this post will show you what command you need to use in order to connect to your mysql server using the command line terminal. this is helpful if you are using ssh sessions to login to your server and you need to test your mysql database
Tags: mysql , command , connect , database , linux , ssh , shell , terminal , login , admin
Info: This Post Has Been Viewed 0 Times Since
Date: Tue Feb 01, 2011
Author hostman Received 0 Replies #924
Date: Tue Feb 01, 2011
Author hostman Received 0 Replies #924
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE:: 

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
wallpaperama | Wallpapers | Forums | Terms Of Service
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5