In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install, configure and uninstall MySql. I believe most people don't know much about it, so share this article for your reference. I hope you can learn a lot after reading this article. Let's learn about it together.
1. Installation of MYSQL
1. Open the downloaded mysql installation file, and double-click to run mysql-5.5.40-win32.msi.
2, select the installation type, there are "Typical (default)", "Complete (complete)", "Custom (user defined)" three options, select "Custom", press the "next" key to continue.
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 the following subsections, are all installed on the local hard drive". The same is true for "MySQL Server (mysql Server)", "Client Programs (mysql client Program)" and "Documentation (documentation)" above to ensure that all files are installed. click "Change..." to specify the installation directory manually.
4. Fill in the installation directory. Mine is "E:\ software\ install\ mysql\". 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 backup is restored. Press "OK" to continue.
Confirm the previous settings. If there is any error, press "Back" to return to redo. Press "Install" to start installation.
5. Please wait a moment while the installation is under way. A successful interface will appear after the installation is completed. After clicking "next", the following interface will appear.
Ask here if you want to continue configuring the parameters of the MySQL data, check it, and then click "Finish"
II. Configuration of MYSQL
1. After the installation is complete, the following interface will take you to the mysql configuration wizard.
2. Choose the configuration mode, "Detailed Configuration (manual precise configuration)" and "Standard Configuration (standard configuration)". We choose "Detailed Configuration" to facilitate familiarity with the configuration process.
3. Select the server type, "Developer Machine (development test class, mysql takes up very few resources)", "Server Machine (server type, mysql takes up more resources), Dedicated MySQL Server Machine (dedicated database server, mysql takes up all available resources)"
4, select the general use of the mysql database, "Multifunctional Database (universal multi-functional, good)", "Transactional Database Only (server type, focus on transaction processing, general)", "Non-Transactional Database Only (non-transaction type, simple, mainly do some monitoring, counting, MyISAM data type support is limited to non-transactional), press" Next "to continue.
5, select the number of concurrent connections to the website, and the number of connections at the same time, "Decision Support (DSS) / OLAP (about 20)", "Online Transaction Processing (OLTP) (about 500)", "Manual Setting (manually set up, enter a number by yourself)".
6, whether to enable TCP/IP connection, set the port, if not, you can only access the mysql database on your own machine, on this page, you can also select "enable standard mode" (Enable Strict Mode), so that MySQL will not allow minor syntax errors. If you are a novice, it is recommended that you cancel the standard mode to reduce hassle. However, once you are familiar with MySQL, try to use standard mode because it reduces the possibility of harmful data entering the database. Press "Next" to continue
7, is to set the mysql default database language code (important), generally choose UTF-8, press "Next" to continue.
8. Choose whether to install mysql as a windows service, you can also specify Service Name (service identification name), and whether to add the bin directory of mysql to Windows PATH (after joining, you can directly use the file under bin without pointing out the directory name, such as connection, "mysql.exe-uusername-ppassword;" is fine, without pointing out the full address of mysql.exe, it is convenient), I have all checked here and the Service Name remains unchanged. Press "Next" to continue.
9. Ask if you want to change the password of the default root user (Super Admin). "Enable root access from remote machines (whether to allow root users to log in on other machines, if you want security, do not check it, if 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 check, set up, press "Next" to continue.
The username and password are set as follows:
User name: root
User password: root
10. Confirm that the setting is correct, press "Execute" to make the setting effective, that is, complete the installation and configuration of MYSQL.
Note: after setting up, there is a relatively common error after pressing "Finish", that is, it cannot be "Start service". It generally appears on servers where mysql has been installed before. The solution is to ensure that the previously installed mysql server is completely uninstalled; if not, check whether the previous password has been changed as mentioned in the above step, according to the above operation. If it still fails, back up the data folder under the mysql installation directory, and then delete it. After the installation is complete, delete the data folder generated by the installation, move the backup data folder back, and then restart the mysql service. In this case, you may need to check the database and repair it again to prevent data errors.
three。 Unloading
How to delete the MySQL database completely, take the Window7 operating system as an example:
1) stop the MySQL service of window.
Go to Control Panel-> Administrative tools-> Services, and stop the MySQL background service.
2) Uninstall the MySQL installer. Find Control Panel-> programs and Features, and uninstall the MySQL program.
3) Delete all files in the MySQL installation directory.
4) delete the directory about MySQL in the hidden directory of disk c ProgramData.
4.1 turn on the "Show Hidden Files" function of the window system so that you can see all hidden files on the system
4.2 find the ProgramData directory
4.3 Delete the MySQL directory
The above is all the contents of this article "how to install, configure and uninstall MySql". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.