Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> Services >> RDBMS >> MySQL >> How to connect to mysql from command line

 

1. eg. to login to the localhost with user=root and password=xyz and use datatabase DB

> mysql -uroot -pxyz DB

or

> mysql --user=root --password=xyz DB

2. eg. to login to host MyServer with user=root and password=xyz

> mysql -hMyServer -uroot -pxyz DB

or

> mysql --host=MyServer --user=root --password=xyz DB

 

 

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]