当前位置:网站首页>VIM, another program may be editing the same file If this is the solution of the case
VIM, another program may be editing the same file If this is the solution of the case
2022-07-04 12:36:00 【Menon research monk】
The problem is shown in
adopt vim perhaps vi When editing the file, the following appears: :
The terminal displays as follows :
Found a swap file by the name "/mydata/mysql/conf/.my.conf.swp"
owned by: root dated: Sat Jul 02 12:52:53 2022
file name: /mydata/mysql/conf/my.conf
modified: YES
user name: root host name: xx
process ID: xx
While opening file "/mydata/mysql/conf/my.conf"
CANNOT BE FOUND
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /mydata/mysql/conf/my.conf"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/mydata/mysql/conf/.my.conf.swp"
to avoid this message.
Swap file "/mydata/mysql/conf/.my.conf.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
The screenshot is as follows :
2. Principle analysis
stay linux In order to ensure security , If the document is inconsistent
For example, multiple people edit this file, resulting in different files 、 Last edit did not exit normally
Will generate a file suffix swp File format ( Temporary exchange file , Main backup buffer contents )
The way of saving or writing files is correct , commonly swp Format files will be automatically deleted , If there is an error in writing , Temporary files will always exist , When you edit it again, you will always point to changing the file
Delete it and re edit it or restore it and re edit it
3. resolvent
adopt ls -al When viewing all the files
You can see swp Format ( Hide temporary files , Temporary buffer )
vim Edit the prompt that appears :
Solve it according to the following tips
If the file is not important , direct q sign out ,rm -rf Delete it and try again 
边栏推荐
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 14
- Ml and NLP are still developing rapidly in 2021. Deepmind scientists recently summarized 15 bright research directions in the past year. Come and see which direction is suitable for your new pit
- Experiment 7. IPv6
- Global and Chinese market of dental elevators 2022-2028: Research Report on technology, participants, trends, market size and share
- Awk getting started to proficient series - awk quick start
- Global and Chinese markets for environmental disinfection robots 2022-2028: Research Report on technology, participants, trends, market size and share
- Force buckle 142 Circular linked list II
- asp. Core is compatible with both JWT authentication and cookies authentication
- It's hard to hear C language? Why don't you take a look at this (V) pointer
- netstat
猜你喜欢

13、 C window form technology and basic controls (3)

SAP ui5 date type sap ui. model. type. Analysis of the display format of date

DVC use case (VI): Data Registry

Leetcode: 408 sliding window median
![[the way of programmer training] - 2 Perfect number calculation](/img/fd/4bb8560f601daddaa8895f20215be4.jpg)
[the way of programmer training] - 2 Perfect number calculation
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5](/img/68/4f92ca7cbdb90a919711b86d401302.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11](/img/6a/398d9cceecdd9d7c9c4613d8b5ca27.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11

C语言数组

The detailed installation process of Ninja security penetration system (Ninjitsu OS V3). Both old and new VM versions can be installed through personal testing, with download sources
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8](/img/16/33f5623625ba817e6e022b5cb7ff5d.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8
随机推荐
TCP slicing and PSH understanding
vim 出现 Another program may be editing the same file. If this is the case 的解决方法
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
IIS error, unable to start debugging on the webserver
DVC use case (VI): Data Registry
JD home programmers delete databases and run away. Talk about binlog, the killer of MySQL data backup
Star leap plan | new projects are continuously being recruited! MSR Asia MSR Redmond joint research program invites you to apply!
DC-5靶机
SAP ui5 date type sap ui. model. type. Analysis of the display format of date
[ES6] template string: `string`, a new symbol in es2015
C language memory layout
Entitas learning [iv] other common knowledge points
Reptile learning 4 winter vacation series (3)
VBA, JSON interpretation, table structure -json string conversion
Tableau makes data summary after linking the database, and summary exceptions occasionally occur.
DDS-YYDS
Kivy教程之 08 倒计时App实现timer调用(教程含源码)
A few words explain redis cache penetration, breakdown, avalanche, and redis sentinel
TCP fast retransmission sack mechanism
Practical dry goods: deploy mini version message queue based on redis6.0