您的位置:首页 > 数据库 > MySQL

HOW to login MYSQL, Help, and Select Database

2013-01-26 11:42 393 查看
LOGIN

InCMD:

>>mysql.exe–uroot–p

>>EnterPassword:********

>>mysql>

It’slikethis:

mysql-uusername-ppassword–hhost

Attention:Thereisnoblankaftertheparameters:-u,-p,–h

TheMySQLclientprogram,alsoknownastheMySQLmonitor,isaninterfacethatallowstheusertoconnecttotheMySQLserver,createandmodifydatabases,andexecutequeriesandviewtheirresults.Thisprogramisstartedbyexecutingthecommandmysqlattheshellprompt.Ingeneral,thesyntaxforthiscommandis:
%>mysql[options][database]
HELP
HELP
%>mysql–help
SETPASSWORD
SetPassword
mysql>SETPASSWORDFOR'root'@'localhost'=PASSWORD('secret_password');



SELECTDATABASE


SelectDatabase

%>mysql-uroot-pmysql


mysql>usemydatabase
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: