当前位置:网站首页>Stop automatically after MySQL starts (unable to start)
Stop automatically after MySQL starts (unable to start)
2022-06-23 01:58:00 【XUchenmp】
Among the numerous blogs on the Internet, those solutions failed to solve my problem , Stop copying each other , Ten blogs are the same as eight .
error
The log error port is occupied ,netstat -ano No processes are found to be in use , Modified into 3307 After that, the error of port occupation is reported .
reason
Hyper -v Occupied 3306 The port of , Lead to mysql Can't start .
1. Why can I start before ?
because Hyper The occupied port is not fixed .
2. Why did it change 3307 Not good either. ?
Because of bad luck ,3307 It happens to be .
The following figure shows the port occupancy for two restarts
Not enough technology , Luck , As long as you are lucky , There would be no such problem
terms of settlement
The command line checks the port usage
netsh interface ipv4 show excludedportrange protocol=tcp
If the port is occupied, the following methods can be used
1. Turn off the hyper
But I want to use docker, Turn off the docker Can't use
2. Exclude port occupancy
1. Turn off the hyper, Restart the computer
2. Start as Administrator cmd Window input the following command
netsh int ipv4 add excludedportrange protocol=tcp startport=3306 numberofports=1
3. open hyper
When checking the port occupancy again, I found that 3306 Has been ruled out 
Solutions ( You can have a look if you are interested )
mysql For startup errors or other errors, check the error log first , stay data Under the table of contents .err Postfix file , After getting the knowledge of port occupancy, check the port occupancy first , At this time, it is found that the port is not occupied by the process , That could be a system problem, not mysql The problem. , Find a solution through the keywords occupied by the port , The final discovery is hyper The problem of , After finding the cause, it will be solved .
summary
all the time , Meet all kinds of bug Or all kinds of errors are mindless paste error information to Baidu , Although in most cases it does happen very quickly , But maybe I don't know why . If a relatively rare error occurs , It may be that a lot of reading repeated blogs cannot be solved . So if you have time, you'd better look at the bottom log , Look at the underlying source code , Don't be afraid and lazy . Although it's really hard for junior programmers , But just because it's hard doesn't mean you can't understand it at all . After all, senior programmers come from junior programmers . Mutual encouragement
边栏推荐
- Primary pointer part
- "First knowledge of C language" (Part 3)
- Li Mu's notes on machine learning -1.2
- Exercise analysis summary
- Error C2061 syntax error: identifier ‘PreparedStatement‘
- Campus network AC authentication failed
- Wechat mobile terminal development - account login authorization
- Freshman C language summary post (hold change) Part1 output diamond
- JS prototype and prototype chain Paramecium can understand
- 2022-1-12
猜你喜欢

Common mistakes in C language (sizeof and strlen)

Foundation Consolidation - Flex width is content width

SQL programming task05 job -sql advanced processing

Unique in Pimpl_ PTR compilation errors and Solutions

Li Mu's notes on machine learning -1.2

An interesting example of relaxed memory models

JS to realize the rotation chart (riding light). Pictures can be switched left and right. Moving the mouse will stop the rotation

5. explain function overloading

How to download online printing on Web pages to local PDF format (manual personal test)

Binary String
随机推荐
8. destruct, construct, deep copy, shallow copy, assignment operator overload
Use of higher order functions
MySQL -- how to access the database of a computer in the same LAN (prenatal education level teaching)
Day367: valid complete square
Detailed explanation of GCC usage
SQL programming task06 assignment - Autumn recruit secret script ABC
JS case: support canvas electronic signature function on PC and mobile
Do you know the memory components of MySQL InnoDB?
Rebirth -- millimeter wave radar and some things I have to say
//1.15 putchar function
JS rotation chart (Netease cloud rotation chart)
1. Mx6u bare metal program (5) - external interrupt
Error reported when compiling basalt
Debian10 configuring rsyslog+loganalyzer log server
Uniapp View Horizontal Center
[cmake command notes]find_ path
[learning notes] roll back Mo team
Garbled code of SecureCRT, double lines, double characters, unable to input (personal detection)
[cmake command notes]target_ compile_ options
C. Unstable String