Tag Archives: Administration

SVN: Please execute the ‘Cleanup‘ command.

There is a new bug in the project. I need to extract a new branch, but after extraction, this problem occurs in the update branch

Please execute the ‘Cleanup’ command.

Why

Svn was interrupted due to an error updating the file with SVN

Solutions

Scheme 1:

Click TortoiseSVN
select clean up
select break write locks
OK

Scheme 2:

If scheme 1 fails, your SVN operation may be suspended

Download SQLite3 tool
decompress the sqlite3.exe file to the same level directory of. SVN directory
open the command line tool, switch to the same level directory of. SVN, and execute the following command
sqlite3.exe. SVN/wc.db “select * from work”_ queue”  
// this command can view the currently suspended SVN operations

sqlite3.exe .svn/wc.db “delete from work_ queue”  
// this command can delete the current suspended SVN operation

and then proceed to scheme 1

Scheme 3:

Check out a new. SVN file and replace the old. SVN file

Link to the original text: https://blog.csdn.net/lk1822791193/article/details/82655947

404 solution for WordPress Chinese tag

One of the common problems in blogs or websites built by WordPress is that the Chinese tag link does not exist. Google Administrator Tool prompt grabs 404 errors. In particular, windows hosts often have Chinese tag link grabbing errors, and Chinese tags cannot be displayed normally. Or Chinese tags can be displayed normally, but 404 errors will appear after clicking the link, which brings great inconvenience to users and is extremely difficult It greatly reduces the friendliness of the website.

How to solve this problem?

First method:

Open WP include/ classes.php (before 3.1) or WP include/class- wp.php (after 3.1 +, hereinafter referred to as the new version) find line 154 (the new version is line 142)

$pathinfo = $_ SERVER['PATH_ INFO';

Replace with:

$pathinfo = mb_ convert_ encoding($_ SERVER['PATH_ INFO'], 'UTF-8', 'GBK');

Find line 159 (the new version is line 147)

$req_ uri = $_ SERVER['REQUEST_ URI'];

Replace with:

$req_ uri = mb_ convert_ encoding($_ SERVER['REQUEST_ URI'], 'UTF-8', 'GBK');

After my personal test, this method can be used, the new version of the statement may be different from the above, but the method is basically the same, the corresponding statement can be replaced.

Second method:

1. Found in the WP includes folder at the root of the site“ rewrite.php ”This document;

2. Back it up“ rewrite.php ”In case of error (we’d better back up the original code before changing the code);

3. Open“ rewrite.php ”We find the following code in the file:

function get_tag_permastruct()
{
   if (isset($this->tag_structure)) 
  {
    return $this->tag_structure;
  }
  if (empty($this->permalink_structure)) 
  { 
    //Change this line
    $this->tag_structure = '';
    return false;
  }
  if (empty($this->tag_base))
  $this->tag_structure = $this->front . 'tag/';
  else$this->tag_structure = $this->tag_base . '/';
  $this->tag_structure .= '%tag%';
  return $this->tag_structure;
}

4. Put some of them together

" if (empty($this->permalink_structure)) { ”

Amend to read

“ if (! empty($this->permalink_structure)) { ";

Note that there is only a “!” sign in English. After testing, this method is very effective. PS. didn’t find the code in this file directly…

The third method: the final solution to the Chinese tag 404 error is actually ISAPI_ Rewrite pseudo static rules are not well written, which leads to the failure to find the web page file. In fact, just change the rules: the previous tag pseudo static rules

RewriteRule /tag/(.*)$ /index\.php\?tag=$1

Changed rules

RewriteRule /tag/(.*)/$ /index\.php\?tag=$1

I didn’t test this method, so I can’t guarantee its availability. Please back it up before modification!

Third method:

If the above two methods are not feasible, we recommend another method: alias each tag.

Alias is another URL friendly name. It is usually lowercase and can only contain letters, numbers and hyphens.

But for blogs with more than 100 Chinese tags, this method has a huge workload. Use with caution.

This method can link English tags normally, but it works for websites with Chinese tag problems, but it doesn’t work for websites with 404 English tag links.

MySQL forgot the root password

MySQL forgot the root password

1. Start the task manager and end the MySQL process

2. Enter the command line, enter the bin directory of MySQL (& lt; environment change & gt; path, you can find the bin directory) and start the MySQL service

mysqld -nt –skip-grant-tables  

(start without checking permissions);

(it may appear: 120705 17:41:14 [warning] option ‘new’: Boolean value’t ‘wasn’t recognized. Set to off. )

3. Reopen a command prompt window

 

  

Input: MySQL – uroot

4. Change the root password:

 

  

update mysql.user set password=PASSWORD(‘newpass’) where User=’root’;

5, flush privileges;

6, quit

Reconnecting MySQL

Reprint address:

http://blog.sina.com.cn/s/blog_ a3695da601010 mrs.html

Research on Maven management of Java project pom.xml The jar package error is reported, but the project is running normally

Today, I always make mistakes when building projects. I suspect that there is something wrong with the jar package, so I delete all the jar packages and reload them into the Maven warehouse,

Think very good, but made a mistake! POM file error, how to update all useless, delete jar package reload also can’t.

Finally, in the life and death of the occasion, choose the forced refresh, just like, then remember it!