This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> use nersh; | |
mysql> SHOW TRIGGERS\G | |
*************************** 1. row *************************** | |
Trigger: update_order_issue | |
Event: UPDATE | |
Table: order_issue | |
Statement: INSERT INTO `templog` (act, tbl, pkey, comment) VALUES ('update', 'order_issue', NEW.id, CONCAT('set user_id = ', NEW.user_id)) | |
Timing: AFTER | |
Created: NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> DROP TRIGGER IF EXISTS update_order_issue; | |
Query OK, 0 rows affected (0.06 sec) | |
mysql> DROP TRIGGER IF EXISTS update_order_issue_archive; | |
Query OK, 0 rows affected (0.08 sec) | |
mysql> DROP TRIGGER IF EXISTS update_user_addressbook; | |
Query OK, 0 rows affected (0.05 sec) | |
mysql> DROP TRIGGER IF EXISTS delete_user_addressbook; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y bind bind-utils bind-libs portreserve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen-on { 127.0.0.1; 10.0.0.111; }; | |
здесь 10.0.0.111 - ip нашего сервера с сервисом bind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allow-query { 127.0.0.1; 10.0.0.0/24; }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chkconfig named on | |
service named restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dig google.com | |
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> google.com | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1012 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 4, ADDITIONAL: 4 | |
;; QUESTION SECTION: | |
;google.com. IN A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# route | sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 | |
Destination Gateway Genmask Flags Metric Ref Use Iface | |
Kernel IP routing table | |
172.16.16.0 172.16.16.2 255.255.255.252 UG 0 0 0 tun2 | |
172.16.16.2 * 255.255.255.255 UH 0 0 0 tun2 | |
172.16.24.0 172.16.24.2 255.255.248.0 UG 0 0 0 tun3 | |
172.16.24.0 172.16.24.2 255.255.255.252 UG 0 0 0 tun3 | |
172.16.24.2 * 255.255.255.255 UH 0 0 0 tun3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130802 15:10:50 [ERROR] Incorrect definition of table mysql.event: expected column 'sql_mode' at position 14 to have type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','I | |
GNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS',' | |
MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZER | |
O','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH'), found type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE' | |
,'NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MY | |
SQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','ST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service mysql stop | |
service mysql start --skip-grant-tables | |
mysql_upgrade |
OlderNewer