Under Win connect MySQL database system using the command

Method One:
  1: Open the [Start] -> [run] input [cmd] CMD click OK after black command window, which is what we call CMD command line
     image

  2: default into the C drive, so we can enter the E drive, hit enter. Because my database is stored in the E disk. In my computer, for example, as follows: Input E: E into the disc, as shown below:
     image
     image
  3: In the CMD command window after typing the command mysql -H localhost -u root -p press Enter (note that "-h", "- u" , "- p" not shown) into the mysql database, wherein "- h "indicates that the server name, localhost represents the local;" - u "for the database user name, root is the MySQL default user name;" - p "for the password, if a password is set, you can link directly after -p input, such as: - when p admin123, the user does not set a password, display Enter password, you can directly enter. Passwords can also be followed -p write directly on the command line, but this may lead to leakage of your password, if you are connected to the production server, we strongly recommend that you do not do this
     image
  will pop up to let you enter a password after password after the pop wecome to zhe MySQL monitor words on behalf of a successful connection.
method two:
  1: Open the [Start] "[Run] mysql input selection window
     image
  2: After a prompt for a password, enter your password
     image
   Note: Operating on the premise that this mysql has been launched, note the punctuation in the English state

  Production server Interpretation: a production server [Production Server] server and Development [Development Server] corresponding explanations server means specific operational production server record something about production, of course, the development server is not the same sense, not to be able to produce! this process requires a process in this process! And the production of meaning in words but do not need to develop a process developed according to do!

Guess you like

Origin www.cnblogs.com/ttxcs/p/11614256.html