The most used database software is MySQL. It is a good choice for enterprises, individual developers, or students. The following is a MySQL installation tutorial for you, so that you can quickly learn to install and configure MySQL, and master MySQL Basic knowledge and ease of use with MySQL databases.
This set of videos is narrated by Lao Du of the power node, which explains the relevant knowledge of MySQL in detail, including MySQL overview, MySQL application environment, MySQL system features, MySQL basics, MySQL management tools, how to install MySQL and MySQL new features, by watching This set of videos can master the full set of MySQL knowledge.
Getting Started with MySQL Basics-mysql Tutorial
MySQL database tutorial-MySQL database from entry to proficiency
Data, source code download:
MySQL installation tutorial
Open the downloaded mysql installation file
mysql-essential-5.0.22-win32.msi, double-click to run, and the following interface appears
Press "Next" to continue
Select the installation type, there are three options: "Typical (default)", "Complete (complete)", "Custom (user-defined)", we choose "Custom", there are more options, and it is convenient to familiarize yourself with the installation process.
The Custom installation was selected in the previous step, and the MySQL component package and installation path will be set here. After setting, click Next to continue the installation.
Now the software installation is complete, the above interface appears, tick the front of "Configure the Mysql Server now", click "Finish" to end the software installation and start the mysql configuration wizard.
The mysql configuration wizard starts the interface, press "Next" to continue.
Select the configuration method, "Detailed Configuration (manual precise configuration)", "Standard Configuration (standard configuration)", we choose "Detailed Configuration" to facilitate familiarity with the configuration process.
Select the server type, "Developer Machine (development and testing class, mysql occupies few resources)", "Server Machine (server type, mysql occupies more resources)", "Dedicated MySQL Server Machine (dedicated database server, mysql occupies all available resources) Resources)", you choose according to your own type, generally choose "Server Machine", it will not be too small, and it will not be full.
Select the general purpose of the mysql database, "Multifunctional Database (general multifunctional type, which can well support InnoDB and MyISAM storage engines)", "Transactional Database Only (server type, focus on transaction processing, general)", "Non-Transactional Database Only (non-transactional, relatively simple, mainly used for monitoring and counting, the support for MyISAM data type is limited to non-transactional), choose according to your own use, I choose "Multifunctional Database" here, press "Next" to continue.
To configure the InnoDB Tablespace is to select a storage space for the InnoDB database file. If it is modified, remember the location and choose the same place when reinstalling, otherwise the database may be damaged. Of course, it is enough to make a backup of the database No problem, not detailed here. I have not modified here, use the default location, just press "Next" to continue.
Select the general mysql visits of your website, the number of simultaneous connections, "Decision Support (DSS)/OLAP (about 20)", "Online Transaction Processing (OLTP) (about 500)", "Manual Setting (manually set , enter a number by yourself)", I choose "Decision Support(DSS)/OLAP)" here, and press "Next" to continue.
Whether to enable TCP/IP connection, set the port, if not enabled, you can only access the mysql database on your own machine, I enable it here, tick the front, Port Number: 3306, on this page, you can also You can select "Enable Strict Mode" and press "Next" to continue.
This is more important, which is to set the default database language encoding of mysql. The first one is Western encoding, and what we want to set is utf8 encoding. Press "Next" to continue.
Choose whether to install mysql as a windows service, you can also specify the Service Name (service identification name), whether to add the mysql bin directory to the Windows PATH (after adding, you can directly use the files under the bin without specifying the directory name, such as Connection, "mysql.exe -uusername -ppassword;" is enough, you don't need to point out the complete address of mysql.exe, it is very convenient), I have ticked all of them here, and the Service Name remains unchanged. Press "Next" to continue.
After setting, press "Next" to continue.
Confirm that the settings are correct, if there is a mistake, press "Back" to return to check. Press "Execute" to make the setting take effect.
After setting, press "Finish" to end the installation and configuration of mysql;
MYSQL services can be managed through the service manager.
Call the service manager by command: services.msc;
Stop the MYSQL service.
Start the MYSQL service.
It can also be controlled directly through the command line in DOS.
Stop the MYSQL service.
Start the MYSQL service.