MySQL installation diagram setting detailed tutorial

MySQL is a small relational database management system that is widely used by many companies today. But for friends who have just come into contact with the mysql database server, it seems to be very unfamiliar. The following is a detailed tutorial of mysql installation diagrams collected and organized by Green Tea Xiaobian, so that beginners can better grasp the operation of this database management system.
Step/Method

    1

    Open the downloaded installation file, and the following interface will appear:
    MySQL Installation Graphical Setup Detailed Tutorial
    2

    Start the MySQL Installation Wizard, click "next" to continue
    MySQL Installation Graphical Setup Detailed Tutorial
    3

    Select the installation type, there are "Typical (default)", "Complete (complete)", "Custom (user-defined)" three options, we choose "Custom", there are more options, but also easy to familiar with the installation process.
    MySQL Installation Graphical Setup Detailed Tutorial
    4

    Left-click on "MySQL Server" and select "This feature, and all subfeatures, will be installed on local hard drive." content, all installed on the local hard drive". Click "Change..." to manually specify the installation directory.
    MySQL Installation Graphical Setting Detailed Tutorial
    MySQL Installation Graphical Setting Detailed Tutorial
    5

    Confirm the previous settings. If there is an error, press "Back" to return to redo. Press "Install" to start the installation.
    MySQL installation diagram setting detailed tutorial
    6

    is being installed, please wait until the following interface appears.
    MySQL installation graphic settings detailed tutorial
    7

    Click "next" to continue, the following interface appears.
    MySQL installation graphic setup detailed tutorial
    8

    Now the software installation is complete, the above interface appears, there is a very good function, the mysql configuration wizard, you don't have to
    manually configure my.ini as before, and set "Configure Check the box in front of the Mysql Server now", click "Finish" to end the
    software installation and start the mysql configuration wizard.     92.     Configure MySQL Server
    10     Click "Finish", the following interface appears, and the MySQL Server configuration wizard starts.     MySQL installation graphic setting detailed tutorial     11     Click "next" to display the following interface,     MySQL installation graphic setting detailed tutorial     12     Select the configuration method, "Detailed Configuration (manual precise configuration)", "Standard Configuration (standard configuration)", we choose "Detailed Configuration" ” to familiarize yourself with the configuration process.













    MySQL installation diagram setting detailed tutorial

    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 (special database)" Server, mysql occupies all available resources)", everyone chooses according to their own type, generally choose "Server Machine", it will not be too small, and it will not be full.
    MySQL installation diagram setting detailed tutorial

    Select the general purpose of the mysql database, "Multifunctional Database (general multi-functional, good)", "Transactional Database Only (server type, focus on transaction processing, general)", "Non-Transactional Database Only ( Non-transactional, relatively simple, mainly used for monitoring and counting, the support for MyISAM data type is limited to non-transactional), choose according to your own use, I choose "Transactional Database Only" here, press "Next" "Continue.
    MySQL installation diagram setting detailed tutorial

    To configure the InnoDB Tablespace is to select a storage space for the InnoDB database file. If it is modified, remember the location and choose the same place when reinstalling, otherwise the database may be damaged. , Of course, it is no problem to make a backup of the database. I will not go into details here. I have not modified it here, use the default location, and press "Next" to continue.
    MySQL installation diagram setting detailed tutorial

    Select the general mysql traffic of your website and the number of simultaneous connections, "Decision Support (DSS)/OLAP (about 20)", "Online Transaction Processing (OLTP) (about 500)", "Manual Setting" , enter a number yourself)", I choose "Online Transaction Processing (OLTP)" here, my own server should be enough, press "Next" to continue.
    MySQL installation diagram setting detailed tutorial

    Whether to enable TCP/IP connection, set the port, if not, you can only access the mysql database on your own machine, I enable it here, tick the front, Port Number: 3306, in On this page, you can also select "Enable Strict Mode" so that MySQL won't allow minor syntax errors. If you're still new, I'd recommend canceling the standard mode for less hassle. But once you are familiar with MySQL, try to use the standard mode, because it can reduce the possibility of harmful data entering the database. There is also a firewall setting "Add firewall exception..." that needs to be selected to add the listening port of the MYSQL service as a windows firewall exception to avoid firewall blocking. Press "Next" to continue.
    Detailed tutorial on MySQL installation diagram setting

    Note: If you want to use the data of the original database, it is best to determine what encoding is used in the original database. If the encoding set here is inconsistent with the encoding of the original database data, garbled characters may appear during use.

    This is more important, that is, to set the default database language encoding of mysql, the first one is Western encoding, and the second one is multi-byte general utf8 encoding, neither of which is our general encoding, here choose the third one, and then in Character Select or fill in "gbk" in Set, of course, "gb2312" can also be used, the difference is that gbk has a large font capacity, including all Chinese characters of gb2312, and adding traditional Chinese characters and other messy characters - using mysql At this time, run "SET NAMES GBK;" once before executing the data operation command (run it once, GBK can be replaced with other values, depending on the settings here), you can use Chinese characters (or other characters) normally, Otherwise, Chinese characters cannot be displayed normally. Press "Next" to continue.
    MySQL installation diagram setting detailed tutorial

    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 bin, and You don't need to point out the directory name, such as connection, "mysql.exe -uusername -ppassword;" is fine, you don't need to point out the full address of mysql.exe, which is very convenient), I have ticked all here, and the Service Name remains unchanged. Press "Next" to continue.
    MySQL installation diagram setting detailed tutorial

    This step asks if you want to modify the password of the default root user (super management) (the default is empty). If you want to modify the "New root password", fill in the new password here (if it is reinstalled and the password has been set before, It may be wrong to change the password here, please leave it blank, and remove the check in front of "Modify Security Settings", and change the password after the installation and configuration is completed), and fill it in again in "Confirm (enter again)" to prevent wrong entries. "Enable root access from remotemachines" Finally, "Create An Anonymous Account (create a new anonymous user, anonymous users can connect to the database, cannot operate data, including query)", generally do not need to tick, after setting, press "Next" to continue.
    MySQL Installation Graphical Settings Detailed Tutorial

    Confirm that the settings are correct. If there are any errors, press "Back" to return to check. Press "Execute" for the setting to take effect.
    END After the

precautions

    are set, press "Finish" to end the installation and configuration of mysql - there is a relatively common error here, that is, "Startservice" cannot be used. It usually appears on the server where mysql has been installed before. The solution is to ensure that the previous The installed mysql server has been completely uninstalled; if not, check whether the previous password has been modified as mentioned in the above step, and follow the above operation; if it still does not work, back up the data folder in 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 restart the mysql service. In this case, you may need to check the database and
    repair once to prevent data errors.



--Precautions

After the installation is successful, I can't connect to MySQL when I use
SQLyog for the first time , and there is a solution to the 1045 error. Let's take a look at what the error

     

      is: I run SQLyog for the first time after installing the database. Here is the solution:

      Step 1: Stop the MySQL service. For the specific method, you can click to view the blog I wrote last time: Two methods to open and close the mysql service.

      Step 2: Find the my.ini, file in your MySQL installation directory, open the file and find [mysqld], add the previous line skip-grant-tables below it, and save it.

      Step 3: Start the MySQL service. The method is the same as the first step.

      The connection should be successful now, as shown in the figure below:

Method 1: Use the cmd command

      First, open our dos window, start - run - enter cmd.

     

      As shown in the figure above, enter net start MySQL and press Enter to start, and enter net stop mysql and press Enter to close.


      Method 2: Select the computer (My Computer), right-click the mouse, select Manage, and then select Services under System and Application Services.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326489679&siteId=291194637