Http://hi.baidu.com/yuyu4/blog/item/dc28ecfec3b4f0305d600814.html (RPM) Open the mysqlinstallation file mysql-5.0.27-win32.zip, decompress the file, and run “setup.exe. The following interface is displayed: Start the MySQL Installation Wizard and press "Next" to continue Select the installation type, which has three options: "typical (default)", "complete (complete)", and "Custom (custom)". Select "Custom ", with more options, you can familiarize yourself with the installation process. Click "Developer components (developer part)" and select "this feature, and all subfeatures, will be installed on local hard drive. ", that is," This part and its sub-parts are all installed on the local hard disk ". The preceding operations include "MySQL Server", "client programs (MYSQL client program)", and "documentation (document)" to ensure that all files are installed. Click "change..." to manually specify the installation directory. Fill in the installation directory "F:/Server/MySQL Server 5.0", and do not place it in the same partition as the operating system. This prevents system backup and restoration, data is cleared. Press "OK" to continue. Return to the interface and press "Next" to continue. Confirm the previous settings. If there is an error, press "back" to return the redo. Click "Install" to start installation. Installing. Please wait until the following interface appears This is to ask if you want to register an account for mysql.com or use an existing account to log on to mysql.com. Generally, this is not required. Click "Skip sign-up ", click "Next" to skip this step. Now that the software has been installed, the above interface appears. Here is a good function. MySQL Configuration Wizard does not need to be configured in a mess like before. INI. Check the "configure the MySQL server now" and click "finish" to finish the software installation and start the MySQL Configuration Wizard. Start the MySQL Configuration Wizard and press "Next" to continue. Select the configuration method, "detailed configuration (manual precise configuration)", and "standard configuration". Select "detailed configuration" to familiarize yourself with the configuration process. Select the server type, "Developer machine (development and testing class, MySQL occupies a small amount of resources)", "server machine (server type, MySQL occupies a large amount of resources) "," dedicated MySQL server machine (dedicated database server, MySQL occupies all available resources) ", you choose according to your own type, generally choose" server machine ", not too little, it will not be full. Select the general purpose of the MySQL database, "multifunctional database (Universal multi-function type, good)", "transactional database only (server type, dedicated to transaction processing, General) "," non-transactional database only (non-transaction processing type, relatively simple, mainly used for monitoring and recording, the support for MyISAM data types is limited to non-transactional ), I chose it with my own purpose. Here I select "transactional database only" and press "Next" to continue. Configure InnoDB tablespace to select a bucket for the InnoDB database file. If you modify the bucket, remember the location and select the same place for the reinstallation. Otherwise, the database may be damaged, of course, it is okay to back up the database. We will not detail it here. I have not modified it here. Use the default position and press "Next" to continue. Select the average MySQL access volume of your website and the number of connections at the same time. For example, "demo-support (DSS)/OLAP (about 20 connections)" and "online transaction processing (OLTP) (about 500) "and" manual setting (manually set, enter a number by yourself) ". Here I select" online transaction processing (OLTP) "and my server, enough. Press "Next" to continue. Whether to enable the TCP/IP connection and set the port. If the port is not enabled, you can only access the MySQL database on your machine. I enable it here and tick the port number: 3306. on this page, you can also select enable strict mode, so that MySQL will not allow small syntax errors. If you are a newbie, I suggest you cancel the standard mode to reduce the trouble. However, if you are 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 This is very important. It is to set the default MySQL database language encoding. The first is the Spanish encoding, and the second is the multi-byte General utf8 encoding, which is not our general encoding, select the third character here, and then select or fill in "GBK" in the character set. Of course, you can also use "gb2312". The difference is that the GBK font size is large, including all the Chinese characters of gb2312, and added traditional Chinese characters and other messy words-when using MySQL, Run "set names GBK;" before executing the data operation command (just run it once, GBK can be replaced with other values, depending on the settings here), you can use Chinese characters (or other texts) normally, otherwise the Chinese characters cannot be displayed normally. Press "Next" to continue. Select whether to install MYSQL as a Windows service. You can also specify the service name (service ID name) and add the MySQL bin directory to the Windows Kernel-uusername-ppassword##directory. Then, the complete address of mysql.exe is displayed, it is very convenient), I have checked all of them here, and the service name remains unchanged. Press "Next" to continue. This step asks if you want to change the default root user (Super Management) password (blank by default). If you want to change the "New Root Password", enter the new password here (if re-installed, you have already set a password. Changing the password may cause errors. leave it blank and remove the check box before "modify Security Settings". After the installation and configuration are complete, change the password separately ), "Confirm (re-enter)" is entered again to prevent errors. "Enable root access from remote machines (whether to allow root users to log on to other machines. If you want security, do not check it. If you want convenience, check it )". Finally, "Create an anonymous account (create an anonymous user, and the anonymous user can connect to the database, and cannot operate data, including queries)" is not checked. The settings are complete, press "Next" to continue. Confirm that the settings are correct. If any error occurs, press "back" to return for the check. Press execute to make the settings take effect. After the configuration is complete, press "finish" to end MySQL installation and configuration. Here is a common error, that is, the "Start Service" is not allowed, which usually appears on a server where MySQL was previously installed, to solve this problem, first ensure that the previously installed MySQL server is completely uninstalled. If not, check whether the previous password has been modified as mentioned above; if not, back up the data folder under the MySQL installation directory and delete it. After the installation is complete, delete the data folder generated by the installation and remove the backed up data folder, restart the MySQL service. In this case, you may need to check the database and fix it once to prevent data errors. |