Category Archives: How to Fix

Mybatis automatically generated SQL error

first of all, I want to make it clear that the tool is not wrong, I’m sure your hair is wrong, yes, it’s me, let’s look at my fault

SQL: Insert into T_ADMINISTRATIVE (A_ID, s_ID, A_import_TZZl, A_import_tz_remark, A_import_file_route, A_expert_Lzzl, A_expert_Lz_remark, a_expert_file_route, A_risk_pgzl, A_risk_pgremark, A_risk -file_route, ssh_zl, ssh_remark, ssh_file_route, A_node_status, a_del_status) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘- file_route, ssh_zl,
ssh_remark, ssh_file_route, a_node_status,
a_de’ at line 4

insert increase error, at the beginning because it was a SQL statement problem, until finally confirm that it is not SQL problem, go back to the table you created (created garbage)

file-route. File_route. All right, just rebuild it.

Linux error deletion libc.so.6 how to recover

one day, after boot as usual when a common software, suddenly reported an error /lib/x86_64-linux-gnu/ libb.so.6: version glibc_2.28 ‘not found, the original is the version of libc is wrong, so download unzip update, re-establish the soft link, found that almost all commands can not be used. So </code b> can only use some commands by adding LD_PRELOAD=/lib/ x86_64-gnu /libc-2.27.so can only use some commands. Attempt to restart directly kernel panic =_=||

solution

  1. to create soft connection before entering the root model, then you can update the libc normal. So. 6 (I haven’t tried) </ li>
  2. if you pack is a dual system, then it is simple, direct from another system to access the directory, and the libc. So. 6 to replace the original file (to the original version)
  3. if there is only one system on your machine, you can use RUFUS startup disk 】 【 create a usb stick, and then U disk to start the system, to modify the libc. So. 6.

FileNotFoundError: [Errno 2] No such file or directory: ‘./mnist_image_label/mnist_train_jpg_6000028

FileNotFoundError: [Errno 2] No such file or directory: ‘./mnist_image_label/mnist_train_jpg_6000028755_0.jpg ‘

error in reading file

in tensorflow

Traceback (most recent call last):
  File "Tensorflow/Test/9-26 mnist_train_ex1.py", line 43, in <module>
    x_train,y_train = generateds(train_path,train_txt)
  File "Tensorflow/Test/9-26 mnist_train_ex1.py", line 25, in generateds
    img = Image.open(img_path) #读入图片
  File "\envs\tf2.0-gpu\lib\site-packages\PIL\Image.py", line 2878, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: './mnist_image_label/mnist_train_jpg_6000028755_0.jpg'

locates to line 25

img = Image.open(img_path) #读入图片

error reading image
view path

train_path = './mnist_image_label/mnist_train_jpg_60000'

found is missing “\”

reflect on the foundation and summarize

here

here is what’s under the file, so backslash

I am a small white, welcome to communicate

python ValueError: source code string cannot contain null bytes

pytest executes test cases with the following error

(python) D:\study\python\BasicKnowledgePoints\s5_frame\f01_pytest\f004_conftest>pytest test_01.py
ImportError while loading conftest 'D:\study\python\BasicKnowledgePoints\s5_frame\f01_pytest\f004_conftest\conftest.py'.
ValueError: source code string cannot contain null bytes

the reason is that my D:\study\python\BasicKnowledgePoints\s5_frame\f01_pytest\ init

Mex compiler error handling in MATLAB and GCC installation in Ubuntu

I, MATLAB use mex error and GCC installation of a variety of problems to solve.

when I run my program, I notice that the “model” in the image below has not defne. (undefined)

access to a number of data, walk a lot of detours, only to find that the original is tex-mex file not compile.
then, compile tex-mex file, enter: tex-mex – setup
found an error again: “No supported compiler or the SDK was found.”

open baidu began to browse a variety of, dazzling methods… In fact, you only need to download the supported compiler or SDK.

is here, and since I’m ubuntu’s matlab for Linux, all I need to do is install GCC.

the steps are as follows:

sudo apt-get build-dep GCC

sudo apt-get  build-dep  gcc  

after the above method is used, the following situation occurs:

Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

enter the command:

sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a

when you run the initial command, the following situation occurs:

Unable to locate package
execute:

sudo apt-get update

start installation… Error:

, possibly due to network or other conflicts

ubuntu apt-get (You must put some ‘source’ URIs in your sources. List)
E: You must put some ‘source’ URIs in your sources. List

solution:

sudo vi /etc/apt/sources.list

open an editor and type:
copy code

deb-src http://archive.ubuntu.com/ubuntu trusty main restricted #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty restricted main universe multiverse #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates restricted main universe multiverse #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse #Added by software-properties
deb-src http://security.ubuntu.com/ubuntu trusty-security restricted main universe multiverse #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-proposed restricted main universe multiverse #Added by software-properties

copy code
press Esc, enter: wq, then enter the command:

sudo apt-get update

: “E45: ‘readonly’ option is set (add! To override)

this is authority, set file into read-only permissions, as is known to all, read-only files need to be performed prior to such modification sudo, but have changed, how to enforce save?Geeks tell you! Just save and execute the following command:

:wq! The above command is to force save exit, and then you can!

try again to run sudo apt-get build-dep GCC, again failed.

method 2: enter the command: sudo apt-get install build-essential

sudo apt-get  install  build-essential

start installation, successful.

Windows of matlab in tex-mex compilation fails, go to https://ww2.mathworks.cn/support/requirements/supported-compilers.html directly download the corresponding matlab version of MinGW C/C + + 6.3.

Finally, enter MTALAB and enter met-setup


choose first.
raises a problem to be solved: train a decision tree, use the random forest classifier to extract the features of the input image, and output the frequency image??

docker: error pulling image configuration:timeout

docker: error pulling image configuration:timeout

error:

docker: error pulling image configuration:

dial TCP 104.18.121.25:443: I /o timeout.

resolved:

vim/etc/docker/daemon. Json
{
“registry – mirrors” : [” https://registry.docker-cn.com “, “https://nrbewqda.mirror.aliyuncs.com”, “https://dmmxhzvq.mirror.aliyuncs.com”]
}

systemctl restart docker

and then pull mirror to

Linux (error 1819 (HY000): your password does not satisfy the current policy requirements)

problem ERROR 1819 (HY000): Your password does not satisfy the current policy requirements. To enhance security, MySQL5.7 randomly generated a password for root user. In the error log, regarding the location of the error log, if the RPM package is installed, the default is /var/log/mysqld.log.

can generally be set by log_error

obtain temporary password of MySQL by # grep "password" /var/log/mysqld.log command
2016-01-19T05:16:36.218234Z 1 [Note] A temporary password is generated for root@localhost: WaQ,qR%be2(5

mysql> select user();
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

If

is simply changed to a simple password, the following error is reported:

mysql> ALTER USER USER() IDENTIFIED BY '12345678';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

The

is actually related to the value of validate_password_policy.

validate_password_policy has the following values:

default is 1, which is MEDIUM, so the password you set at the beginning must be length, and must contain Numbers, lowercase or uppercase letters, and special characters.

sometimes, just for testing purposes, I don’t want to make the password that complicated. For example, I just want to set root’s password to 123456.

must modify two global parameters:

First, change the value of the validate_password_policy parameter

mysql> set global validate_password_policy=0;
Query OK, 0 rows affected (0.00 sec)

thus, the criteria for judging a password are based on the length of the password. This is determined by the validate_password_length parameter.

mysql> select @@validate_password_length;
+----------------------------+
| @@validate_password_length |
+----------------------------+
|             8 |
+----------------------------+
1 row in set (0.00 sec)

The

validate_password_length parameter defaults to 8 and has a minimum value of

validate_password_number_count
+ validate_password_special_char_count
+ (2 * validate_password_mixed_case_count)

where validate_password_number_count specifies the length of the data in the password, validate_password_special_char_count specifies the length of the special characters in the password, and validate_password_mixed_case_count specifies the length of the size letters in the password.

these parameters have a default value of 1, so validate_password_length has a minimum value of 4. If you explicitly specify validate_password_length to be less than 4, it will not error, but validate_password_length will be 4. As follows:

mysql> select @@validate_password_length;
+----------------------------+
| @@validate_password_length |
+----------------------------+
|             8 |
+----------------------------+
1 row in set (0.00 sec)
 
mysql> set global validate_password_length=1;
Query OK, 0 rows affected (0.00 sec)
 
mysql> select @@validate_password_length;
+----------------------------+
| @@validate_password_length |
+----------------------------+
|             4 |
+----------------------------+
1 row in set (0.00 sec)

if you change validate_password_number_count, validate_password_special_char_count, and validate_password_mixed_case_count any value, then validate_password_length will be dynamically changed.

mysql> select @@validate_password_length;
+----------------------------+
| @@validate_password_length |
+----------------------------+
|             4 |
+----------------------------+
1 row in set (0.00 sec)
 
mysql> select @@validate_password_mixed_case_count;
+--------------------------------------+
| @@validate_password_mixed_case_count |
+--------------------------------------+
|                  1 |
+--------------------------------------+
1 row in set (0.00 sec)
 
mysql> set global validate_password_mixed_case_count=2;
Query OK, 0 rows affected (0.00 sec)
 
mysql> select @@validate_password_mixed_case_count;
+--------------------------------------+
| @@validate_password_mixed_case_count |
+--------------------------------------+
|                  2 |
+--------------------------------------+
1 row in set (0.00 sec)
 
mysql> select @@validate_password_length;
+----------------------------+
| @@validate_password_length |
+----------------------------+
|             6 |
+----------------------------+
1 row in set (0.00 sec)

verify whether the validate_password plug-in is installed?You can view the following parameters, if not installed, the output will be empty.

mysql> SHOW VARIABLES LIKE 'validate_password%';
+--------------------------------------+-------+
| Variable_name            | Value |
+--------------------------------------+-------+
| validate_password_dictionary_file  |    |
| validate_password_length       | 6   |
| validate_password_mixed_case_count  | 2   |
| validate_password_number_count    | 1   |
| validate_password_policy       | LOW  |
| validate_password_special_char_count | 1   |
+--------------------------------------+-------+

Node.js Using port 80 to report errors in Linux

node. js USES port 80 in Linux to report an error

Because the server USES CentOS8, the local environment is changed to Linux to facilitate development and deployment.

FATAL listen EACCES: Permission denied 0.0.0.0:80
the at Server setupListenHandle [as _listen2] (net. Js: 1296:21)
the at listenInCluster (net. Js: 1361:12)
the at doListen (net. Js: 1498:7)
the at processTicksAndRejections (internal/process/task_queues. Js: 85:21)
✖ Nuxt Fatal Error
Error: listen EACCES: permission denied 0.0.0.0:80
NPM ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xxx dev: nuxt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xxx.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/xxx/.npm/_logs/xxx-debug.log

solution

initially suspected that port 80 was occupied, but when I checked the port information, I found that port 80 was not occupied, so I should have no permission to use port 80. The simple solution is to add sudo.

Replace NPM run devsudo NPM run dev

How to Fix GIT Push Error

problem 1:

after creating a new local branch, push the local branch to the remote library, and report an error

when using git pull or git push

gitThere is no tracking information for the current branch.

Please specify which branch you want to merge with.

See git-pull(1) for details

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> merged0.9.6

because there is no connection between the local branch and the remote branch (you can see the association between the local branch and the remote branch using git branch-vv). At the command line prompt, simply execute the following command to

git branch --set-upstream-to=origin/ upstream/local branch name

View all branches of local and remote repositories
git branch -a
view branches of remote repositories
git branch -r


problem 2
git push again,

 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://gitee.com/caizelin111/securitydemo'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Solutions:

1, the git pull origin master – allow – unrelated – nothing// the remote warehouse and local synchronization, eliminate the differences between </ p>

2, readd and commit corresponding files

3, git push origin master

4, at this point can upload successfully

Idea2020.2 encountered pom.xml The problem of file error report in Maven plug-in tomcat7

before baidu to find the answer, is dependent on specified in the servlets API – add provided

find their dependence has been added, did not find a solution.
red error, ali cloud warehouse can’t download the file. An error is as follows:

find file location, delete maven local repository file

solution: Specify the version information 2.2