parameter, you will find that the file has been changed, but when the service is restarted, the modified configuration is not executed, and you A list of MySQL folders will find a lot of. My.cnf.swp and other intermediate files. This is because MySQL did not read the my.cnf when it was started. At this time as long as the my.cnf file permissions to change to my_new.cnf the same permissions as OK, command: chmod 644 my.cnf OK (4) Ubuntu modified document content without VIM, it is best to put v
parameter, you will find that the file has been changed, but when the service is restarted, the modified configuration is not executed, and you A list of MySQL folders will find a lot of. My.cnf.swp and other intermediate files. This is because MySQL did not read the my.cnf when it was started. At this time as long as the my.cnf file permissions to change to my_new.cnf the same permissions as OK, command: chmod 644 my.cnf OK (4) Ubuntu modified document content without VIM, it is best to put v
-pgsourcetree=/usr/local/pgsql/bin[[email protected] slony1-1.2.6]# makeAll of Slony-i is successfully made. Ready to install[[email protected] slony1-1.2.6]# make installAll of Slony-i is successfully installed============================================================================================Install the Slony in the main library from the library, install the same way====================================================================================Three, master and slave configuration
to the pattern, returningA match object, or None if no match was found ."""Return _ compile (pattern, flags). search (string)
4. sub (pattern, repl, string, count = 0, flags = 0)
Def sub (pattern, repl, string, count = 0, flags = 0 ):
# Sub: Replace the matched string at the specified position"Return the string obtained by replacing the leftmostNon-overlapping occurrences of the pattern in string byRep
the last two are used to convert them into backslashes in the programming language, convert them into two backslashes, and then escape them into a backslash in the regular expression.
The native string in Python solves this problem well. In this example, the regular expression can be represented by r. Similarly, "\ d" matching a number can be written as r "\ d ". With the native string, mom doesn't have to worry about missing the backslash, and the written expression is more intuitive.4. Python
data]# mkdir-p/application/mongodb/data/{master,slave}
2. Start Master Instance
[Root@localhost data]# mongod--dbpath=/application/mongodb/data/master/--port 27017
--master Specifies that this instance is the primary server.
3. Start from instance
[Root@localhost ~]# mongod--dbpath=/application/mongodb/data/slave/--port 27018--slave--source 127.0.0.1:27017
--slave Specifies that the instance is from the server--source specify who is the primary server?
After the server is started, that i
]) Re.finditer (pattern, string[, flags]) Re.sub (Pattern, REPL, string[, Count]) re.subn (pattern, REPL, string[, Count])
Before introducing these methods, let's introduce the concept of pattern, which can be understood as a matching pattern, so how do we get the matching pattern? Very simply, we need to use the Re.compile method. For example
Pattern = Re.compile (R ' Hello ')
In the argument we pass in
database) (each database has only one by default and already exists and does not need to be executed) -- http://technet.microsoft.com/zh-cn/library/ms189516.asp Xexec sys. sp_helplogreader_agent @ publisher = null -- view the log agent exec sys in the current database. sp_addlogreader_agent @ job_login = n' KK \ SqlReplicator ', @ job_password = n' 123456', @ publisher_security_mode = 1, @ job_name = nullgo/**************************** [Create a release: the following code is used to publish mu
output, it means that Pycharm has been installed successfully.### 2.6 Python中的REPL环境Python has the following 3 modes of operation.
Run directly from the python command
Running in the Python IDE
Running in Python's REPL environmentThis section describes how to run a python program in a REPL environment, where
top of the stack after it finishes running.To better demonstrate the behavior of the stack in the demo, you can use Console.trace () to output the current stack data in the console. At the same time, you want to read the output stack data in order from top to bottom.Function C () { console.log (' C '); Console.trace ();} Function B () { console.log (' B '); C ();} function A () { console.log (' a '); b ();} A ();Running the above code in Node's
default data node (it has been found for a long time, initially thought it was in the configuration file) step 1-m operation [root @ test-db-20053 BACKUP-1] #/home/mysql-cluster-gpl-7.2.4-linux2.6-x86_64/bin/ndb_restore-e-c 10.100.200.36-n 4-B 1-m -- backup_path =/var /lib/mysql-cluster/BACKUP-1/Nodeid = 4 Backup Id = 1 backup path =/var/lib/mysql-cluster/BACKUP-1/Opening file '/var/lib/mysql-cluster/BACKUP-1/BACKUP-1.4.ctl 'File size 61160 bytesBackup version in files: ndb-6.3.11 ndb version:
/app/oracle/ogg./Ggsci
1. Target MGR Process
1) edit the configuration file
Edit params mgr
Port 7809Dynamicportlist 7800-8000Autostart er *Autorestart extract *, waitminutes 2, resetminutes 5Lagreporthours 1Laginfominutes 3Lagcriticalminutes 5Purgeoldextracts/u01/app/oracle/ogg/dirdat/rt *, usecheckpoints, minkeepdays 3
2) Start
Start mgr
2. Add a checklist
Note: After the default checkpoint is specified in the GLOBALS file, the new Replicat groups will automatically use this parameter when it
method
The Split method returns the list after splitting the string by a substring that can be matched, using the following form:
Split (string[, Maxsplit])
Where Maxsplit is used to specify the maximum number of splits and does not specify that all will be split.
Take a look at the example:
Import rep = Re.compile (R ' [\s\,\;] + ') Print p.split (' A, b;; c d ')
Execution Result:
[' A ', ' B ', ' C ', ' d ']
Sub method
The sub method is used for substitution. It is used in the following for
10.100.200.36-n 4-B 1-m -- backup_path =/var/lib/mysql-cluster/BACKUP-1/
Among them, backup_path is under the root directory of the default data node (found for a long time, initially thought in the configuration file)
Step 1-m operation
[Root @ test-db-20053 BACKUP-1] #/home/mysql-cluster-gpl-7.2.4-linux2.6-x86_64/bin/ndb_restore-e-c 10.100.200.36-n 4-B 1-m -- backup_path =/var/lib/mysql- cluster/BACKUP-1/
Nodeid = 4
Backup Id = 1
Backup path =/var/lib/mysql-cluster/BACKUP-1/
Opening file '/
result_iter2: print 'matching string :{}, position :{}'. format (m2.group (), m2.span ())
Execution result:
result1...matching string: 123456, position: (6, 12)matching string: 789, position: (13, 16)result2...matching string: 1, position: (3, 4)matching string: 2, position: (7, 8)
Split method
The split method splits strings according to matching substrings and returns the list. the format is as follows:
split(string[, maxsplit])
Maxsplit is used to specify the maximum number of
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.