How to set up MySQL replication
How to set up MySQL replication. And for debugging purpose, it will be great if I can run multiple MySQL instances on a single host.
To set up MySQL replication, check these tutorials:
How to set up MySQL replication. And for debugging purpose, it will be great if I can run multiple MySQL instances on a single host.
To set up MySQL replication, check these tutorials:
You can Setup multiple MySQL instances on single server.
How to iterate all dirs and files in a dir in C++? To open a dir, we can use opendir() to open a directory stream. DIR *opendir(const char *name); Then we can use readdir() to iterate the directory stream. struct dirent *readdir(DIR *dirp); Here is an example C++ program using these 2 library functions. #include…
There are options for Gnome 3 and Cinnamon to make touch pad “natual scroll”. But in MATE, there is no such options in its “Mouse” control options. How to enable natual scroll of touchpad in MATE on Linux? You may manually set the change of your ‘scrolls’ from the touch pad to negative values using…
How to find out all files with replication factor 1 in HDFS? The hdfs dfsadmin -report shows there are blocks with replication factor 1: Missing blocks (with replication factor 1): 7 How to find them out? You can run hdfs fsck to list all files with their replication counts and grep those with replication factor…
How to remove trailing spaces at the end of each line in a file on Linux? Use this script with sed: cat your_file | sed ‘s/[[:blank:]]+$//g’ Read more: How to remove trailing / in path in Bash? How to encode spaces in curl GET request URL on Linux? How to cut by multiple spaces in…
How to convert between Simplified Chinese and Traditional Chinese characters in text files on Linux from command line? You can use opencc to convert between Traditional Chinese and Simplified Chinese: https://github.com/BYVoid/OpenCC For example, to transfer a file in simplified Chinese sc.txt to traditional Chinese: opencc -i sc.txt -o tc.txt -c zhs2zht.ini The authors also provide…
Vim uses Xterm color codes like 9, 1 and 114 on Linux. What’s the overall mapping from color to codes or codes to color? Xterm color table: You can also find the Xterm color codes here. Read more: How to convert tiff images from RGB color to CMYK color on Linux? Convention of error codes…