mysql installation diagram mysql graphic installation detailed tutorial

Many friends have just started contacting the mysql database server. The following is a mysql installation tutorial compiled by netizens. The steps are also detailed.

Recommend the following front-end development resources for you. These are all the materials that Yuanyuan has accumulated on the way of learning, and I hope to help you:

                                                                       Scan the QR code and reply in the background mysql topic

                                                                                  Get mysql learning theme library

The installation graphic tutorial of MySQL5.0 version is for novices to learn, the current mysql5.0.96 is the latest stable version.

The following is a diagram of MySQL installation, using the executable file to install, explain it in detail! Open the downloaded mysql installation file mysql-5.0.27-win32.zip, double-click to unzip, run "setup.exe", the following interface appears

mysql installation graphic tutorialOne

mysql installation graphic tutorialOne

The mysql installation wizard starts, press "Next" to continue

mysql graphic installation tutorial 2
mysql graphic installation tutorial 2

Choose the installation type, there are three options of "Typical (default)", "Complete (complete)", "Custom (user-defined)", we choose "Custom", there are more options, but also easy to familiarize the installation process:

mysql graphic installation tutorial 3
mysql graphic installation tutorial 3

Left-click on "Developer Components" and select "This feature, and all subfeatures, will be installed on local hard drive.", that is, "This part and all subfeatures will be installed on local hard drive." Hard disk". In the above "MySQL Server (mysql server)", "Client Programs (mysql client program)", "Documentation (document)" also do the same to ensure that all files are installed. Click "Change..." to manually specify the installation directory.

mysql graphic installation tutorial 4
mysql graphic installation tutorial 4

Fill in the installation directory, mine is "F:\Server\MySQL\MySQL Server 5.0", it is also recommended not to put it in the same partition as the operating system, so as to prevent the data from being emptied when the system is backed up and restored. Press "OK" to continue.

mysql graphic installation tutorialFive
mysql graphic installation tutorialFive

Return to the previous interface, press "Next" to continue

mysql graphic installation tutorial 6
mysql graphic installation tutorial 6

Confirm the previous settings, if there is a mistake, press "Back" to return to redo. Press "Install" to start the installation.

mysql graphic installation tutorial 7
mysql graphic installation tutorial 7

The installation is in progress, please wait until the following interface appears

mysql graphic installation tutorial 8
mysql graphic installation tutorial 8

Here is to ask if you want to register a mysql.com account, or use an existing account to log in to mysql.com, generally not needed, click "Skip Sign-Up", click "Next" to skip this step.

mysql graphic installation tutorial 9
mysql graphic installation tutorial 9

Now that the software installation is complete, the above interface appears. There is a good function here, the mysql configuration wizard, you don’t need to manually configure my.ini as before, and tick the "Configure the Mysql Server now" , Click "Finish" to end the software installation and start the mysql configuration wizard.

mysql graphic installation tutorialTen
mysql graphic installation tutorialTen

mysql configuration wizard start interface, press "Next" to continue

mysql graphic installation tutorialTen
mysql graphic installation tutorialTen

Select the configuration method, "Detailed Configuration (manual precise configuration)", "Standard Configuration (standard configuration)", we choose "Detailed Configuration" to facilitate familiarity with the configuration process.

mysql graphic installation tutorial 11
mysql graphic installation tutorial 11

Select the server type, "Developer Machine (development and testing, mysql takes up few resources)", "Server Machine (server type, mysql takes up more resources)", "Dedicated MySQL Server Machine (dedicated database server, mysql takes up all available Resources)", everyone chooses according to their own type. Generally, "Server Machine" is selected, which is not too small or full.

mysql graphic installation tutorial 12
mysql graphic installation tutorial 12

Select the general purpose of the mysql database, "Multifunctional Database (general multifunctional, good)", "Transactional Database Only (server type, focusing on transaction processing, general)", "Non-Transactional Database Only (non-transactional, more Simple, mainly for some monitoring and counting purposes, support for MyISAM data type is limited to non-transactional), I choose according to my own use, I choose "Transactional Database Only" here, and press "Next" to continue.

mysql graphic installation tutorial 13
mysql graphic installation tutorial 13

To configure the InnoDB Tablespace is to select a storage space for the InnoDB database file. If you modify it, remember the location and choose the same place when reinstalling, otherwise the database may be damaged. Of course, just make a backup of the database. No problem, I won't go into details here. I didn’t modify it here, use the default location, just press "Next" to continue

mysql graphic installation tutorial 14
mysql graphic installation tutorial 14

Select the general mysql access volume of your website and the number of simultaneous connections, "Decision Support (DSS)/OLAP (about 20)", "Online Transaction Processing (OLTP) (about 500)", "Manual Setting (manual setting) , Input a number by yourself)", I choose "Online Transaction Processing (OLTP)" here, my own server should be enough, press "Next" to continue

mysql graphic installation tutorial 15
mysql graphic installation tutorial 15

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, put the check in front, Port Number: 3306, on this page, you still You can choose "Enable Strict Mode" so that MySQL will not allow minor syntax errors. If you are still a novice, I suggest you cancel the standard mode to reduce trouble. But after familiar with MySQL, try to use the standard mode, because it can reduce the possibility of harmful data entering the database. Press "Next" to continue

mysql graphic installation tutorial 16
mysql graphic installation tutorial 16

Western encoding, the second is a multi-byte universal utf8 encoding, which is not our universal encoding. Choose the third here, and then select or fill in "gbk" in the Character Set. Of course, you can also use "gb2312". The difference is that gbk has a large font library, including all Chinese characters of gb2312, plus traditional characters, and other messy characters-when using mysql, run "SET NAMES GBK;" (run Just one time, GBK can be replaced with other values, depending on the settings here), Chinese characters (or other characters) can be used normally, otherwise the Chinese characters cannot be displayed normally. Press "Next" to continue.

mysql graphic installation tutorial 17
mysql graphic installation tutorial 17

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 Connect, "mysql.exe -uusername -ppassword;" is fine, no need to point out the complete address of mysql.exe, it is very convenient), I have ticked all here, and the Service Name remains unchanged. 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 Connect, "mysql.exe -uusername -ppassword;" is fine, no need to point out the complete address of mysql.exe, it is very convenient), I have ticked all here, and the Service Name remains unchanged. Press "Next" to continue.

mysql graphic installation tutorial 18
mysql graphic installation tutorial 18

This step asks if you want to modify the password of the default root user (super management) (default is empty), if you want to modify "New root password", fill in the new password here (if it is a reinstallation, and the password has been set before, Changing the password here may cause an error, please leave it blank, and remove the tick in front of "Modify Security Settings". After the installation and configuration are completed, the password will be changed separately), and then fill in the "Confirm (input again)" to prevent input errors.  "Enable root access from remote machines (whether the root user is allowed to log in on other machines, if you want to be safe, don't check it, if it's convenient, check it)". Finally, "Create An Anonymous Account (create an anonymous user, anonymous users can connect to the database, can not manipulate data, including queries)", generally do not need to tick, after setting, press "Next" to continue.

mysql graphic installation tutorial 19
mysql graphic installation tutorial 19

Confirm that the setting is correct, if it is wrong, press "Back" to return to check. Press "Execute" to make the setting effective.

mysql graphic installation tutorial 20
mysql graphic installation tutorial 20

After setting, press "Finish" to end the installation and configuration of mysql-there is a common error, that is, it cannot be "Start service". It usually appears on the server where mysql was installed before. The solution is to ensure that the previous installation is The mysql server is completely uninstalled; if it doesn’t work, check whether the previous password has been modified according to the above step, and follow the above operations; if it still doesn’t work, back up the data folder in the mysql installation directory and delete it. After completion, delete the data folder generated by the installation, move the backup data folder back, and restart the mysql service. In this case, you may need to check the database and then repair it once to prevent data errors.

Original link: https://www.jb51.net/article/23876.htm

Guess you like

Origin blog.csdn.net/webqdyy/article/details/109306049