background
Mysql is a relational database, developed by the Swedish Mysql AB, currently part of Oracle's products. Mysql is one of relational database management system is currently the most popular in terms of WEB, Mysql is the best RDBMS (Relational Database Management System). Mysql is a relational database management systems, relational database stores data in separate tables rather than putting all the data in a large warehouse, thus increasing the speed and improved flexibility.
Other similar software:
Relational databases: sqllite, db2, Oracle, access, sql sever, Mysql
Non-relational database: MongoDB, redis
installation
On Windows systems, we downloaded After Mysql installed to any directory, you can see there are a bin file to open
There are mysql.exe and mysqld.exe two executable files, which are client and server
Enable
After obtaining the bin directory path, the server initialization
After entering the above statement we will find the original directory will be more of a data folder
And then start the server
Then we re-open a new command, to achieve the client connects to the server
Here default user name is root password is empty, press Enter to skip like execution
Use show databases; see the file in the data file:
You can also create a new db file:
Adding Environment Variables
If you think should add a long list of a lot of trouble each time the path we can add environment variables directly in the system
Get bin path: F: \ mysql-8.0.11-winx64 \ mysql-8.0.11-winx64 \ bin
The computer then right -> Advanced System Settings -> Advanced -> Environment Variables -> Path system variables in the back plus; path
So that we in the implementation of the server and the client without adding on the path
Server:
Client:
Mysql service on Windows production
So that we can see the Mysql service on the service's process, we can click on the top left to start this service
Or we enter the following statement can also start the service
If you want to stop the Mysql service
Remove Mysql service