Category Archives: How to Fix

PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[08004] [1040] Too many connections

preface

The OJ, which was built before, suddenly made an HTTP 500 error this evening. When I opened the log, I found that the MySQL database collapsed.

Text

Then open the MySQL configuration file. The path of the configuration file is as follows

/etc/mysql/mysql.conf.d/mysqld.cnf

Max the number of links in it_ Change the connections to 1000, and then restart mysql.

Solution: pychar opens internal error

Forebay:

Open pychar software help – & gt; Edit custom VM options… File, open pycharm64.exe.vmoptions file, add

– javaagent:C :\Program Files\JetBrains\PyCharm2019.3.4\bin\JetbrainsCrack-release-enc.jar

Close the software and re open it to report an internal error

resolvent:

You can open the. Pycharm2019.3 folder (the version you downloaded) and delete it

PS: let’s take a look at the problem that win10 pychar can’t open and double-click no response

Pychar still can’t be opened. Enter the CMD as an administrator, enter the following command, and restart the computer;

netsh winsock reset

In the search box of the computer, enter windows power shell

Restart the computer, and then open pychar software, you can work normally

 

error: Your local changes to the following files would be overwritten by merge

The following error occurred when using git pull command today

The result is the above error prompt, translated by Youdao dictionary software, the content is (error: your local changes to the following files will be merged and covered)

Using git log — oneline to check the log, you didn’t get the code. You checked a lot of information and other big men’s blogs on the Internet

The following git instruction method is used   It means to abandon local modification and directly override

1 git reset --hard
2 git pull

MarkDownPad 2 HTML Reading Error

MarkDownPad 2 HTML Reading Error

Question:

when “HTML reading error” error occurs when opening markdownpad editor


Solution:

click the “yes” button on the error prompt interface


To install the plug-in:

Download awesomium_ v1.6.6_ sdk_ The win.exe plug-in can be installed by default all the way 0


Ies HTP to 500.19 – Internal Server

The errors are as follows:
repair method:

    add the permission of everyone to the folder (I can solve it successfully through this method)
    add the necessary IIS function

    generally, these two moves can solve the problem! If there is a good way, welcome to comment

raise ValueError(‘Expected input batch_size ({}) to match target batch_size ({}).‘

raise ValueError(‘Expected input batch_ size ({}) to match target batch_ size ({}).’

Remember to print the size of the picture before forward propagation. I didn’t notice that all the pictures come in RGB three channel data this time. When using the . View function, I remember to look at it first. When I used it, I calculated the size of the picture directly according to a single channel. Generally, this is the phenomenon that the size of the picture does not match

The phenomenon of mating

Solve the problem that M1 Mac can’t debug when using GoLand

The general error information is as follows:

API server listening at: [::]:57824
debugserver-@(#)PROGRAM:LLDB  PROJECT:lldb-1200.0.44
 for x86_64.
error: failed to launch process /Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver: (os/kern) invalid argument
Exiting.

I use go 1.16, which supports arm architecture. The reason for this problem is that go debug needs DLV tool, which also needs arm architecture.

The easiest way to solve this problem is to go to the official website to update GoLand. Pay attention to go to the official website to download the latest arm version again. Usually, the update prompted in the IDE can only be regarded as a patch, not a big version update. In this way, the debugging tools of IDE are adapted to arm architecture.

Of course, due to various reasons that cannot be described, some users may not be suitable to go to the official website to update, so you can refer to this link   https://youtrack.jetbrains.com/issue/GO-10235#focus =Comments-27-4632451.0-0

Download the DLV debugging tool of arm architecture, and then configure it in IDE.

Create a new project in pycharm: modulenotfounde rror:No module named ‘distutils.util‘

The error is as follows:

Don’t panic. It’s not a big problem

When installing pycharm in the Ubuntu system and creating a new project, prompt

ModuleNotFoundError: No module named ‘distutils.util’

The reason is that Ubuntu 18.04 does not install PIP by default, so you need to install python3 pip,

Enter the command in the terminal:

sudo apt-get install python3-pip

When you create a new project again, the problem can be solved