MySQL installation, startup and use

Source: Internet
Author: User

Need to learn SQL language, according to the recommended installation of free MySQL to learn! Previously learned to practice SQL Sever on SQL statement, because it is in the school room directly, for the installation of data management software has no experience. This time after installing MySQL, I don't know how to use it. With MySQL Workben found unable to connect to the local database. Internet query only found that the use of MySQL must first start. "After MySQL has been installed, it has automatically created a MySQL service into the Windows service, with the following possible methods"

The Windows startup method below "gives two simplest":

1. Booting through the Windows Service program (most intuitive)

Open Task Manager--service, press a few M Jian, will automatically find the service name beginning with M, find MySQL select Start.

The way to communicate with the principle is to select the computer (Win7)-Right-click Management, then the list of services appears on the right--press the M key to find MySQL, then right-start (stop)

2. Using the cmd command

Start Mysql:net start MySQL

Enter Mysql:mysql-hlocalhost-uroot-p

"When the bin installation directory for MySQL is not in the environment variable, it needs to be added."

View database: show databases; "Commands in the MySQL database must end with a semicolon"; ""

exit L database: Exit; Enter

Close mysql:1.net stop MySQL [pre-installed service]

2.mysqladmin-u Root shutdown

"Command with password set to mysqladmin-u root-p shutdown"

After you start MySQL, you can use MySQL workben to use the MySQL database with admin! The previous learning of creating tables, adding columns and so on, can now be done with MySQL Workben.

MySQL installation, startup and use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.