HOW to login MYSQL, Help, and Select Database
2013-01-26 11:42
393 查看
LOGIN
InCMD:
>>mysql.exe–uroot–p
>>EnterPassword:********
>>mysql>
It’slikethis:
Attention:Thereisnoblankaftertheparameters:-u,-p,–h
TheMySQLclientprogram,alsoknownastheMySQLmonitor,isaninterfacethatallowstheusertoconnecttotheMySQLserver,createandmodifydatabases,andexecutequeriesandviewtheirresults.Thisprogramisstartedbyexecutingthecommandmysqlattheshellprompt.Ingeneral,thesyntaxforthiscommandis:
SELECTDATABASE
SelectDatabase
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
相关文章推荐
- How-To create a MySQL database and set privileges to a user
- How to Baskup and Restore a MySQL database
- How to Back Up and Restore a MySQL Database
- How to Create a Secure Login Script in PHP and mySQL
- How to Create a Secure Login Script in PHP and MySQL
- How to check invalid objects and broken job in multiple database
- how to write and run jpa idempotent on mysql
- How to Enable and Disable Root Login in Ubuntu
- How to read and save Images in a Sql Server Database using ADO.NET and C#
- What is EPOLL? Epoll vs Poll vs Select call ? And How to implement UDP server in Linux using EPOLL?
- How to Install MySQL 5.1 Database on A Linux Server
- How to get multiple select value both in javascript and php
- how to use a SQLite database in a standalone program with an HTML interface and VBScript as the programming language
- SAP HANA database and how to improve performance
- How to Deinstall and Reinstall XML Database ORA-04063 XDB.DBMS_XDBUTIL_INT
- How to migrate MsSql database to MySql
- How to install Apache, PHP 7.1 and MySQL on CentOS 7.3 (LAMP)
- how to select data in multiple datatables after using join,group by and order by in Linq
- How to Cluster Magento, nginx and MySQL on Multiple Servers for High Availability
- How to Export and Import the AWR Repository From One Database to Another (文档 ID 785730.1)