Mysql_ reset password

# Modification of coding “`pythonshow variables like ‘%char%’; #View the current encoding 1.Open configuration file: vim /etc/mysql/my.cnf 2.After [client] and [mysqld], add: [client] default-character-set=utf8 [mysqld] character-set-server=utf8 3.Restart mysql: service mysql restart“`       # mysqlreset password “`python#1.Open configuration file: sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf 2. Add in the [mysqld] segment: skip-grant-tables #Skip permission to start MySQL 3.Restart MySQL service mysql restart 4.Log in with root, without pa...

Redis five big data structures commonly used commands

linux Download the redis database. apt install redis If the right is not enough, the right is directly raised. sudo apt install redis-server   linuxEnable and stop service service redis startservice redis stopservice redis restart xshellEnter Linux cd .. # Return to root directory ls # see file cd etc/   Well, it’s time to get to the point. First, record.Connect, exit, switch databaseA command Connect:redis:redis-cli Sign out:exit Switch database:select n The database has no name, 16 by default, identified by 0-15, and the connection redis selects the first database by de...

Leetcode- jumping game

Jumping game     Given a non negative integer array, you are initially located in the first position of the array. Each element in the array represents the maximum length you can jump at that location. Determine whether you can reach the last position. Example 1: Input: [2,3,1,1,4]Output: trueExplanation: jump 1 steps from position 0 to 1, then jump 3 steps to the last position. Example 2: input: [3,2,1,0,4] Output: falseExplanation: anyway, you always get to the index 3. But the maximum jump length is 0, so you can never get to the last position.Train of thought: adoptdynamic program...

Vuex real-time data, state modification does not trigger getter refresh.

// getters const getters = { netStatusMonitorData: state => { return state.faultInfo; },   };   const mutations = { [baseTypes.UPDATE_DATA_MODULE](state) { //oldcode //state.faultInfo =pageData.dataSource;  //After the assignment does not trigger the getter method to refresh, it changes the deep copy to trigger the getter refresh. let tempData = {}; $.extend(true, tempData, pageData.dataSource); state.faultInfo = tempData; } };

Quality improvement: 16 ways to improve the quality of Baidu bidding keywords

1、Clicking rate     The ratio between the number of hits and the number of keywords displayed.       2、The matching degree of creative content and keywords refers to whether the key is smooth after the key is incorporated.     For example:     Key words: English Schools     Originality: to learn English well {Harbin English school}.       3、Correlation between creative content and keywords       4、Landing page: correlation between keywords, creativity and landing pages       5、Click performance: netizens click on search results and enter the website after...

How to control bidding price

To control average click price and save costs, we need to start with the following aspects:           1、Improve the quality if you can do that.           2、Control ranking, ranked third to five, click the price is certainly much lower.           3、PC terminal plan and mobile terminal plan are set up respectively.           4、Each city plans to make an accurate bid. The drawback is that it will be very troublesome to operate.                        5、Relax the matching mode, bid according to the matching, the average click price will certainly be ...

Mysql notes

1、By default, Mysql compares strings in a case-insensitive manner, and if you want to make case-insensitive comparisons, you can add the Binary keyword, which means that strings are handled binarily. When comparing operations on strings, MySql will distinguish the size of strings.Write. For example: 2、When a number and a string are operated on, the string is converted to a number according to certain rules. If the first bit of the string and several consecutive digits after it are numbers, it is converted to the value of the number, otherwise, it is converted to 0. For example:  

(LDD) view the program dependency Library

Original text: https://linuxtools-rst.readthedocs.io/zh_CN/latest/tool/ldd.html ldd Function: Used to view shared libraries needed by a program to run, often used to solve problems that a program cannot run because it lacks a library file. Example: look at the library that test programs run on: /opt/app/todeav1/test$ldd test libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00000039a7e00000) libm.so.6 => /lib64/libm.so.6 (0x0000003996400000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00000039a5600000) libc.so.6 => /lib64/libc.so.6 (0x0000003995800000) /lib64/ld-linux-x86-64.so.2 (0...