MySQL installation steps and configuration environment variable

MySQL Installation

MySQL Download: http://dev.mysql.com/downloads/installer/
. 1: the first to enter the interface mounting guide


2: then enter the type selection screen, there are three types: Typical (typical), Complete ( complete), custom (custom).
It is recommended to select "Custom" (Custom) installation, so you can customize the selected MySQL installation directory, then "Next" Next, a custom installation interface appears, for data security reasons, does not recommend the MySQL installation directory of the system disk C .


3: Start installation in

4: boot screen will appear MySQL configuration after installation is complete


5: There is an option (Luanch the MySQL Instance Configuration Wizard) boot configuration MySQL, it is recommended immediately check the configuration of your MySQL


6: This is the MySQL Configuration MySQL type configuration, can choose between two types of configuration: detailed configuration (detailed configuration) and standard configuration (standard).
  Standard Configuration (standard configuration) options for want quick start MySQL without having to consider new user server configuration. For more configuration options for advanced users want more fine-grained control of server configuration.  
  If you are new to MySQL and need a server configured as a single-user development machine, Standard Configuration (standard configuration) should suit your needs. Select Standard Configuration (standard configuration) option, the MySQL Configuration Wizard (Configuration Wizard) automatically set all configuration options, but does not include service options and security options.
  Standard Configuration (standard configuration) setup option may not be compatible with the system installed MySQL. If the system is already installed and you want to configure MySQL installation, it is recommended to select detailed configuration.
Here I chose the Detailed Configuration, want to better complete customization.

7: This is the MySQL configuration MySQL server type, you can choose three kinds of server type, choose which server will affect the MySQL Configuration Wizard (configuration wizard) decisions on memory, disk, and process or use.
  Developer Machine (development machine): This option represents the typical personal desktop workstations. Running multiple applications on a desktop machine is assumed. The MySQL server is configured to use a minimum of system resources.
  Server Machine (server): This option represents the server, MySQL server can be run in conjunction with other applications, such as FTP, email and web servers. MySQL server is configured to use an appropriate proportion of system resources.
  Dedicated MySQL Server Machine (dedicated MySQL server): This option represents the only server running MySQL services. Assuming that runs without running other applications. MySQL server is configured to use all available system resources.
Here I chose the Developer Machine, primarily to develop normally required.

8: Here is the configuration of MySQL database usage, you can point table processor to use when creating MySQL tables. With this option, you can choose whether to use the InnoDB storage engine, InnoDB, and server resources occupied by what percentage.
  Multifunctional Database (multi-function database): Select this option, then use both InnoDB and MyISAM storage engine, and equal distribution of resources between the two engines. It recommends that users regularly use two storage engines choose this option.
  Transactional Database Only (only transactional database): This option InnoDB and MyISAM storage using both engines, but to assign most server resources to the InnoDB storage engine. The main use is recommended only occasionally use InnoDB MyISAM user selection of the option.
  Non-Transactional Database Only (only non-transactional database): This option disables the InnoDB storage engine, will assign all server resources to the MyISAM storage engine. InnoDB is not recommended users select this option.
Here I chose Database Multifunctional

9: Here is the configuration of MySQL InnoDB table space, some users may want to InnoDB tablespace files into a different position, and not into the MySQL server data directory. If your system has a large space or higher performance storage devices (e.g. RAID storage system), it is preferable to place a single file space table position. To change the default file InnoDB table space location, a listing select a new drive from the Drive drop-down, and the path from the drop-down list to choose a new path. To create a path, click the ... button. * If you want to change an existing server configuration, change the path you have to click the Modify button. Before starting the server at this time, you must have a tablespace files to the new location.
Here I chose the default configuration of

10: Here is the configuration of MySQL concurrent connections, the number of parallel connections between the MySQL server and create important restrictions, in order to prevent the server from running out of resources. The server can choose to use the method, and limit the number of parallel connections according to the situation. You can manually set limits also connected in parallel.
  Decision Support (DSS) (DSS) / OLAP: If the server does not require a large number of concurrent connections can select this option. Assumed maximum number of connections is set to 100, the average number of concurrent connections 20.
  Online Transaction Processing (online transaction processing) (OLTP): If your server requires a large number of concurrent connections Select this option. The maximum number of connections is set to 500.
  Manual Setting (manual setting): Select this option parallel manually set maximum number of connections the server. Number of drop-down box in front of a parallel connection, if you are not in the list the desired number, then enter the maximum number of connections in the drop-down box.
Here according to the required personal, I chose Setting Manual

11: Here is the configuration of MySQL network options, you can enable or disable the TCP / IP network, and configure the port number used to connect to the MySQL server. By default, enable TCP / IP network. To disable TCP / IP networking, uncheck the next to Enable TCP / IP Networking Options check box. Use the default port 3306. To access more MySQL port used to select a new port number or enter a new port number directly to the drop-down box from the drop-down box. If you choose port number is already occupied, you will be prompted to confirm your choice of port number, if other machines need to access the database, it is recommended checking the Add firewall exception for this port (to the firewall exception)

12: Here is the configuration of MySQL Character Set , MySQL server supports multiple character sets, you can set applies to all tables, columns, and the database server default character set. You can change the default character set of the MySQL server by Character Set (Character Set dialog box).
  Standard Character Set (standard character set): If you want to use the Latin1 character set as the default server, select this option. Latin1 for English and many Western European languages.
  Best Support For Multilingualism (in multiple languages): If you want to use the UTF8 character set as the default server, select this option. UTF8 characters in different languages can be stored as a single character set.
  Manual Selected Default Character Set / Collation (manual selection of the default character set / collation): If you want to manually select the server's default character set, select the item. Select the desired character set from the drop-down list.

13: Here is the configuration of MySQL service options, you can install the MySQL server as a service. Can start automatically with Windows when installed as a service, you can start the MySQL server automatically at system startup, and even service failure.
  By default, MySQL Configuration Wizard (Configuration Wizard) to MySQL server installed as a service, the service name MySQL. If you do not want to install the service, uncheck the box next to the Install As Windows Service option. You can select a new service name from the drop-down box or enter a new service name in the drop-down box to change the service name. To install the MySQL server as a service, but does not start automatically, do not select the check box next to the Launch the MySQL Server Automatically option.

14: Here is the configuration of MySQL security options, it is strongly recommended that you set a root password for your MySQL server, by default MySQL Configuration Wizard (Configuration Wizard) requires you to set a root password. If you do not want to set the root password, do not check the box next to (to modify the security setting value) option Modify Security Settings. To set the root password, in the New root password (Enter your new password) and Confirm (confirmation) Enter the desired password two boxes. If you reconfigure an existing server, you also need Current root password (current root password) enter the existing root password box. To prevent the network login as root, select the Root may only connect from localhost (only allow connections from the local landing root) box next to the option. This will improve the security of the root account. To create an anonymous user account, select Create An Anonymous Account (create an anonymous account) the box next to the option. Create an anonymous account will reduce the security of the server and cause login and permission difficulties. Therefore not recommended.

15: confirmation, click Excute complete the installation

MySQL environment variable configuration

Path MYSQL_HOME and
MYSQL_HOME (the MySQL installation path), for example: C: \ Program Files \ MySQL \ MySQL Server 5.5

will be introduced into the Path mysql_bin [ % MYSQL_HOME% \ bin; ]

cmd window to test the connection MySQL

Win + R => cmd (enter password: Password set when installed MySQL, not to forget, recommended 123456, ha ~)

MySQL graphical tool introduced

Navicat, SQLyog, Navicat Premium 12 recommended [ Navicat Premium 12 ]


 

友情链接:MySQL安装配置方法图文教程_Mysql_脚本之家

Guess you like

Origin www.cnblogs.com/cao-yin/p/11549185.html