MySQL 5.5 installation and configuration

1. MySQL 5.5 installation

  1. Open the downloaded mysql installation file and double-click to decompress it, and run "mysql-5.5.40-win32.msi".
    Insert picture description here
    Insert picture description here

  2. Select the installation type, there are three options: "Typical (default)", "Complete (complete)", "Custom (user-defined)", select "Custom" and press "next" to continue.
    Insert picture description here

  3. Click "Browse" to manually specify the installation directory.
    Insert picture description here

  4. Fill in the installation directory, mine is "d:\Program Files (x86)\MySQL\MySQL Server 5.0", press "OK" to continue.
    Insert picture description here

  5. The installation is in progress, please wait until the following interface appears, then the installation of MYSQL is completed
    Insert picture description here
    Insert picture description here
    Insert picture description here
    Insert picture description here

  6. The installation is complete, and the following interface will appear to enter the mysql configuration wizard.
    Insert picture description here

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

  8. Select the server type, "Developer Machine (development and testing, mysql occupies few resources)", "Server Machine (server type, mysql occupies more resources)", "Dedicated MySQL Server Machine (door database server, mysql occupies all available Resources)"
    Insert picture description here

  9. Select the general purpose of the mysql database, "Multifunctional Database (general multifunctional, good)", "TransactionalDatabase Only (server type, focusing on transaction processing, general)", "Non-Transactional Database Only (non-transactional, relatively simple) , Mainly for some monitoring and counting purposes, support for MyISAM data type is limited to non-transactional), press "Next" to continue.
    Insert picture description here

Insert picture description here
12. Select the number of concurrent connections to the website, the number of simultaneous connections, "Decision Support (DSS)/OLAP (about 20)", "Online Transaction Processing (OLTP) (about 500)", "Manual Setting (manual setting, input by yourself) A number)".
Insert picture description here

  1. Whether to enable TCP/IP connection, set the port, if not enabled, you can only access the mysql database on your own machine. On this page, you can also select "Enable Strict Mode", so that MySQL Small grammatical errors will not be allowed. If you are a novice, it is recommended that you cancel the standard mode to reduce trouble. But after familiarizing with MySQL, try to use the standard mode, because it can reduce the possibility of harmful data entering the database. Press "Next" to continue
    Insert picture description here

  2. It is to set the mysql default database language encoding (important), generally choose UTF-8, press "Next" to continue.
    Insert picture description here

  3. 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 joining, you can directly use the files under the bin without specifying the directory name, such as Connect, "mysql. exe -uusername -ppassword;" is fine, you don't need to point out the full address of mysql.exe, it's very convenient), I tick all of them here, and the Service Name remains unchanged. Press "Next" to continue.
    Insert picture description here

  4. Ask if you want to change the password of the default root user (super management). "Enable root access from remote machines (Whether to allow root users to log in on other machines, if you want to be safe, don't check it, if you want convenience, check it)" Finally, "CreateAn Anonymous Account (create an anonymous user, anonymous) Users can connect to the database, but cannot manipulate data, including queries)", generally do not need to tick, after setting, press "Next" to continue.
    Insert picture description here

  5. Confirm that the settings are correct, and press "Execute" to make the settings take effect, that is, the installation and configuration of MYSQL is completed.
    Insert picture description here
    Insert picture description here

Note: After setting, press "Finish" and there is a common error, that is, you cannot "Start service". It usually appears on the server where mysql was installed before. The solution is to ensure that the previously installed mysql server is completely uninstalled. ; If it doesn’t work, check whether the previous password has been modified according to the above step. Follow the above operation; if it still doesn’t work, back up the data folder in the mysql installation directory and delete it. After the installation is complete, the installation will be generated Delete the data folder, move the backup data folder back, and restart the mysql service. In this case, you may need to check the database and repair it once to prevent data errors.
Insert picture description here

 Solution: uninstall MySQL, reinstall MySQL

2. Uninstall the database

  1. Stop the MySQL service of the window. Find "Control Panel" -> "Administrative Tools" -> "Services" and stop the MySQL background service.

Insert picture description here

  1. Uninstall the MySQL installer. Go to "Control Panel" -> "Programs and Features" and uninstall the MySQL program.

  2. Insert picture description here

  3. Delete all files in the MySQL installation directory.

  4. Delete the MySQL directory in the ProgramDate directory on the c drive. The path is: C:\ProgramData\MySQL (it is a hidden file and needs to be displayed)
    Insert picture description here

3. Startup and login of database service

1. There are two ways to start MySQL server:
① Automatically start through service

Insert picture description here
Insert picture description here

② Manual start method

Insert picture description here
2. The console connects to the database

  • Sign in

Insert picture description here

  • enter password

Insert picture description here

  • drop out

Insert picture description here

4. SQLyog graphical tool-client

SQLyog: It is a simple, efficient and powerful graphical MySQL database management tool produced by the well-known Webyog company in the industry. Using
SQLyog can quickly and intuitively allow you to maintain a remote MySQL database through the network from any corner of the world ( software download: https://pan.baidu.com/s/1QvHKU0wWDInBuVYUUM4ZSg
extraction code: anyl)
Insert picture description here

Insert picture description here
MySQL directory structure

MySQL directory structure description
bin<directory> All mysql executable files, such as: mysql.exe
MySQLInstanceConfig.exe The configuration wizard of the database, the content that appears during installation
data<directory> The directory where the database required by the system is located
my.ini file It is generally not recommended to modify the mysql configuration file.
c:\ProgramData\MySQL\MySQL Server 5.5\data\ The folder where the database we created ourselves is located

Guess you like

Origin blog.csdn.net/TroyeSivanlp/article/details/108723413