MySQL service is starting. MySQL service failed to start. The service did not report any errors.

The author installation mysql5.7.19, win8 system environment

1. Enter mysqld --console the information printed to the console and then look at the information there does not appear
2018-10-17T12: 35: 16.437782Z 0 [ERROR ] Can not start server: Bind on TCP / IP port: No such Directory or File
2018-10-17T12: 35: 16.437782Z 0 [ERROR] of Can not Start Server: ON Bind TCP / IP Port: No SUCH File or Directory
2018-10-17T12: 35: 16.439025Z 0 [ERROR] the Do Another mysqld Server already have have you running oN Port: 3306?
2018-10-17T12: 35: 16.450300Z 0 [eRROR] the Aborting
these errors, if there is to read on. If it is not the same error, then I believe you have new ideas to find the problem.
--------------------- 
2. Analysis

    Run -services.msc- can see two service mysql and mysql57. A local process, a network process.

    Start mysql service can only operate the database, can not connect to external data links will be reported performance_schema table or library does not exist, the link with the link tool is also available to see performance_schema the external application database-driven libraries, which can only be read information_schema an initial library.

    Start MySQL57 service is provided to the outside world can read, database application MySQL resource access and store some of their own internal data, external applications can access the database service.

    ★ cause of problems for mysql and port mysql57 are used in the default 3306, and therefore mysql mysql57 two services can only run a.

△ Solution one: a start, the other one stops.

Reference: https://blog.csdn.net/koloumi/article/details/83117497

    ①netstat -aon | findstr "3306" ( "" English state under double quotation marks). This takes up the cmd command to find the process id 3306 port;

    ② then open the Task Manager to find detailed information on the process id just saw off the end and then run net start mysql or any corresponding net start mysql57 start the appropriate service, will be able to successfully launched;

    ③ If you want to use another service, return ①.

 △ solution: configuration my.ini, so that the different ports and mysql mysql57 used.

    ① stop mysql and mysql57 services;

    ② find my.ini file. mysql5.7.19 the my.ini file in C: \ ProgramData \ MySQL \ MySQL Server 5.7

    ③ modify the my.ini file.

[mysqld]
port=3306

port [mysqld] = 3306 under revised to port = 3310 (may be other, can not be occupied by another process)

[mysqld]
port=3310

  ④cmd window run: net start mysql

                             net start mysql57

    It can be. At this point two services can run simultaneously

Guess you like

Origin blog.csdn.net/qq_29250265/article/details/94460442