Remove excess self-compiled kernel, mysql not connected issues

1. Remove excess self-compiled kernel

Every released Debian kernel update, there is always some kernel options with their hardware is not complete, it has to compile the kernel. Compile more, the extra core to take up extra hard disk space. I tried because the / boot partition is full, which led to compile the kernel to fail.
In order to free up limited resources, it is necessary to remove the extra cores.

Seen unloading their own kernel to  find a feasible method.

The main idea is in / lib / modules /, the / boot folder to delete unnecessary files, and then update the grub on it.

The following are results of FIG.

Before deleting, more self-compiled kernel

Delete / lib / modules /, / boot following files

Because each compile time, I always put the latest kernel into / usr / src, so I omitted to delete / usr / src excess source. If this is not done, remove the excess on their own source code.

Updating grub

Reboot, look at the renderings

Can be seen that, after some of the above operation, the core 5 has been reduced to two. Successful operation.

 

2.mysql not connected issues

Yesterday encounter a strange phenomenon, we can not erlang mysql server problems connected individuals feel the need to record it.
Operating System: Debian 6 x86_64
MySQL Version: 5.1.66

Description: The
number of connections mysql does not reach the maximum, using the command line can be connected, retrieved inside the database is no problem, JDBC connection is not a problem. But erlang TCP connection, the connection just be immediately closes the TCP connection.
Then try to restart the mysql server, restart the process more than one message:

Checking for corrupt, not cleanly closed and upgrade needing tables..


After several hours of tossing and found useful in the following command:

dpkg-reconfigure mysql-server-5.1

More information is available Re: Fixing corrupt mysql table

Reproduced in: https: //my.oschina.net/u/191928/blog/618638

Guess you like

Origin blog.csdn.net/weixin_34270865/article/details/91987018