innodb_log_buffer_size=2m# This parameter determines the amount of memory used by the log files, in M. Larger buffers can improve performance, but unexpected failures will cause data loss. MySQL developer recommends setting to 1-8m between Innodb_log_file_size=32m# This parameter determines the size of the data log file, and larger settings can improve performance, but it also increases the time required to recov
when the e2fsck check file system consistency is performed, the Super Block and block group descriptor in the NO. 0 block group are copied to the other block groups so that when the beginning of the NO. 0 block group is accidentally damaged, other copies can be used to recover, thereby reducing the loss.Third, Bitmap (bitmap):Each of these bits indicates whether a inode/block is available for free.Consider
When opening a Test.java file with VI or VIM under Linux[Email protected] test]# VI Test.java The following message appears: e325:attentionfoundaswapfilebythename " . Test.java.swp "ownedby: rootdated:WedDec713:52:562011 filename:/var/tmp/Test.java modified:yesusername :roothostname:jenny processid:7325 (stillrunning) Whileopeningfile "Test.java" dated:SatJan 1611:28:462016newerthanswap
What are the file management class commands on Linux and how they are used?File system operation commands are divided into: directory operation command, file Operation command, Permission action commandDirectory Operations Command:LS lists the directory's attribute informationPWD lists the directory path where the user
Accidentally deleted a file in Linux, but ps-ef|grep file name found that a process is still using the file, you can pass
Recover the file in the following ways.
For example:Create a simple
Accidental data deletion is a "low-level error" that is often encountered by junior O M personnel. Some experienced veterans sometimes get lost when they are tired and calm ". Once a data file is deleted by mistake, restoring the database with the least impact and the most rapid means is the top priority.There are many ways to recover data, such as hot and cold backup and flash back to the database. If you
logical partitions.In a Windows system, we typically create only one primary partition (that is, the C drive), then all the remaining disk space is zoned to the extended partition, and finally the logical partition is created in the extended partition. This logical relationship can be clearly seen in the Disk Management tool.All disks in the Linux system and each partition on the disk are represented in the form of a
The following message is encountered when editing mysql_backup.sh using the VI command in Linux E325:attention
". Mysql_backup.sh.swp"
Owned By:root Dated:sat APR 23 23:58:28 2016
File name:/mnt/resource/mysql_backup/mysql_backup.sh
Modified:yes
User Name:root host Name:xxxxxx
Process id:1998
"Mysql_backup.sh"
Dated:sun APR 24 09:33:18 2016
Newer than swap file
files are not overwritten-W confirm the correctness of the compressed fileThe optional parameters are as follows:-B Set Number of blocks-c switch to the specified directory-f Specifies the compressed fileHelp Display Help information–version displaying version informationCommon options-CVF Pack all the files into a. Tar packageExample to package log.log into Log.tarCommand TAR-CVF Log.tar log.log-ZCVF package all files and compress them into. tar.gz
default is really efficient and stable for the Ext2,ext2 file system. However, with the application of Linux system in the key business, the weakness of Linux file system is gradually revealed: the Ext2 file system which the system uses by default is a non-log
Using mysqldump in linux to back up a mysql database as an SQL FilePhase 1: Completely backup mysqldump-h IP address-uusername-ppassword-A> ~ /Name. SQL in this case, the entire database (structure and data) is exported and backed up into an SQL file -------------- Phase 2: to adjust the parameters to achieve different backup effects, let's first help mysqldump -- help because there are too many help output
First look at the example
Delete Copy move File command
Linux Code
Rm-rf/file
-r: Recursive processing parameters-F: Force all files to be deleted
Linux Code
Cp/test1/file1/test3/file2
Copy the file1 to the test3 and rename it file2
Linux Code
CP-A Test Test1
Copy
The hands are too fast and the intestines are ruined. Would have been to delete a file rm path/myfile.txtThe result somehow added a *, becameRM Path/myfile.txt *Hurriedly LS, found that all the code is Utopia, has not been submitted, has not been backed up. The deletion was not confirmed. A second, the world will be pure.Looking around with a fluke, there is no compression package backup. There are some backup places that are also very early in the wo
Avoid accidental deletion of Files: the Linux recycle bin mechanism was so anxious yesterday morning that the Program Files written in the virtual machine were accidentally deleted. Google's data recovery method failed, making yesterday's work a loss of money. Fortunately, there were not many program changes. Now we are going to use mechanisms on all servers to solve the problem of accidental deletion. This is much less costly than taking the time to
this time if there is new data to be stored on the hard disk or the system through the disk check with fsck, the deleted file data block and the directory of the link will be released, The space is occupied and overwritten by new data. At this point, the data can no longer be retrieved, that is, in the Linux system, delete files (directory is also a
this time if there is new data to be stored on the hard disk or the system through the disk check with fsck, the deleted file data block and the directory of the link will be released, The space is occupied and overwritten by new data. At this point, the data can no longer be retrieved, that is, in the Linux system, delete files (directory is also a
connections.
-i
interactive mode. Ask before overwriting the target file.
-f
forced replication. Even if the target file exists, it is still unconditionally overwritten.
MV Command MV [options] source target The MV command can be used to rename a file: $
Methods for recovering deleted files under Linux (Ext2 and ext3) 2009-12-19 15:23:47Category: LINUXif it is ext2 file system, the direct use of Debugfs can be recovered, but for Ext3,debugfs there is nothing, fortunately we have ext3grep this open source tool (http://code.google.com/p/ext3grep/)! For ext21. Create and delete test files on/data (/DEV/SDB) (for testing purposes plantodelete for example)#vi Pl
the file name is directly uft-8 encoding, Linux display will not be garbled.
Second, the contents of the file garbled.
1, with cat view found content garbled
2. iconv-f gbk-t UTF8 test. Txt-o test. txt
After testing has been the file garbled content successfully transcoding,
At the same time iconv do not do cover w
writes the specific contents of the transaction to be executed to the log
2. File system to operate
3. After the successful operation, the specific contents of the transaction are removed from the log
The advantage of doing this is that you can recover from a query log if there is an accident, such as a power outage or a disk failure, when the transaction is executed. The disadvantage is that you lose a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.