tag:blogger.com,1999:blog-733968832137287952024-03-05T15:36:13.132-08:00एक और MySQL DBAएक और MySQL यूके हिंदी के लिए translate.google.com के माध्यम से अनूदितKeith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-73396883213728795.post-54865214704258285722024-02-24T16:35:00.000-08:002024-02-24T16:35:25.898-08:00मारियाडीबी एन्क्रिप्शन (डेटा आराम पर)<p><span style="font-family: arial;">मारियाडीबी एन्क्रिप्शन के लिए कुछ विकल्प दिखाने वाला एक सरल उदाहरण नीचे दिया गया है। </span></p><p><span style="font-family: arial;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">आपको यह विचार करना होगा कि आप क्या एन्क्रिप्ट करना चाहते हैं। </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">डेटा का संचार (पारगमन में डेटा) या उदाहरण में डेटा (बाकी पर डेटा)। </span></span></span></span></span></p><p><span style="font-family: arial;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">यह पोस्ट अमेज़ॅन लिनक्स पर चलने वाले AWS फ्री टियर नोड का उपयोग करके डेटा एट रेस्ट विकल्प पर केंद्रित होगी। </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">मैं
एन्क्रिप्शन के साथ वर्तमान तालिकाओं को अद्यतन करने के साथ-साथ नई लोड
तालिकाओं को दिखाने के लिए 2 अलग-अलग उदाहरणों पर वैश्विक डेटाबेस का उपयोग
करूंगा जो स्वचालित रूप से एन्क्रिप्ट की जाएंगी। </span></span></span></span></span></p><p><span style="font-family: arial;"><br /></span></p><p>
</p><p><span style="font-family: arial;">सबसे पहले, हम इंस्टालेशन के साथ शुरुआत करेंगे...सिर्फ इस डेमो के लिए त्वरित और आसान। </span></p><p><span style="font-family: arial;"><br /></span></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># yum -y install mariadb105-server<br /></span><span style="font-family: courier;"># vi /etc/my.cnf.d/mariadb-server.cnf<br /></span><span style="font-family: courier;"># cat /etc/my.cnf.d/mariadb-server.cnf | grep server_id <br /></span><span style="font-family: courier;">server_id=100</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"># cat /etc/my.cnf.d/mariadb-server.cnf | grep server_id<br /></span><span style="font-family: courier;">server_id=200<br /></span><span style="font-family: courier;"># systemctl start mariadb.service<br /></span><span style="font-family: courier;"># mysql<br /></span><span style="font-family: courier;">MariaDB [(none)]> status<br /></span><span style="font-family: courier;">--------------<br /></span><span style="font-family: courier;">mysql Ver 15.1 Distrib 10.5.23-MariaDB, for Linux (x86_64) using EditLine wrapper</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">Connection id:<span style="white-space: pre;"> </span>3<br /></span><span style="font-family: courier;">Current database:<br /></span><span style="font-family: courier;">Current user:<span style="white-space: pre;"> </span>root@localhost<br /></span><span style="font-family: courier;">SSL:<span style="white-space: pre;"> </span>Not in use<br /></span><span style="font-family: courier;">Current pager:<span style="white-space: pre;"> </span>stdout<br /></span><span style="font-family: courier;">Using outfile:<span style="white-space: pre;"> </span>''<br /></span><span style="font-family: courier;">Using delimiter:<span style="white-space: pre;"> </span>;<br /></span><span style="font-family: courier;">Server:<span style="white-space: pre;"> </span>MariaDB<br /></span><span style="font-family: courier;">Server version:<span style="white-space: pre;"> </span>10.5.23-MariaDB MariaDB Server<br /></span><span style="font-family: courier;">Protocol version:<span style="white-space: pre;"> </span>10<br /></span><span style="font-family: courier;">Connection:<span style="white-space: pre;"> </span>Localhost via UNIX socket<br /></span><span style="font-family: courier;">Server characterset:<span style="white-space: pre;"> </span>latin1<br /></span><span style="font-family: courier;">Db characterset:<span style="white-space: pre;"> </span>latin1<br /></span><span style="font-family: courier;">Client characterset:<span style="white-space: pre;"> </span>utf8<br /></span><span style="font-family: courier;">Conn. characterset:<span style="white-space: pre;"> </span>utf8<br /></span><span style="font-family: courier;">UNIX socket:<span style="white-space: pre;"> </span>/var/lib/mysql/mysql.sock<br /></span><span style="font-family: courier;">Uptime:<span style="white-space: pre;"> </span>27 sec</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">MariaDB [(none)]> select @@server_id;<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">| @@server_id |<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">| 100 |<br /></span><span style="font-family: courier;">+-------------+</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">MariaDB [(none)]> select @@server_id;<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">| @@server_id |<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">| 200 |<br /></span><span style="font-family: courier;">+-------------+</span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><br /></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;"><br /></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;">हम वैश्विक डेटाबेस को उदाहरण सर्वर_आईडी 100 पर लोड करेंगे। </span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;"><br /></span></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># mysql < world.sql<br /></span><span style="font-family: courier;"># mysql<br /></span><span style="font-family: courier;">Welcome to the MariaDB monitor. Commands end with ; or \g.<br /></span><span style="font-family: courier;">Your MariaDB connection id is 5<br /></span><span style="font-family: courier;">Server version: 10.5.23-MariaDB MariaDB Server</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.</span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span><span style="font-family: courier;">MariaDB [(none)]> select @@server_id;<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">| @@server_id |<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">| 100 |<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">1 row in set (0.000 sec)</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">MariaDB [(none)]> show databases;<br /></span><span style="font-family: courier;">+--------------------+<br /></span><span style="font-family: courier;">| Database |<br /></span><span style="font-family: courier;">+--------------------+<br /></span><span style="font-family: courier;">| information_schema |<br /></span><span style="font-family: courier;">| mysql |<br /></span><span style="font-family: courier;">| performance_schema |<br /></span><span style="font-family: courier;">| world |<br /></span><span style="font-family: courier;">+--------------------+<br /></span><span style="font-family: courier;">4 rows in set (0.000 sec)</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">MariaDB [(none)]> select @@server_id;<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">| @@server_id |<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">| 200 |<br /></span><span style="font-family: courier;">+-------------+<br /></span><span style="font-family: courier;">1 row in set (0.000 sec)</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">MariaDB [(none)]> show databases;<br /></span><span style="font-family: courier;">+--------------------+<br /></span><span style="font-family: courier;">| Database |<br /></span><span style="font-family: courier;">+--------------------+<br /></span><span style="font-family: courier;">| information_schema |<br /></span><span style="font-family: courier;">| mysql |<br /></span><span style="font-family: courier;">| performance_schema |<br /></span><span style="font-family: courier;">+--------------------+<br /></span><span style="font-family: courier;">3 rows in set (0.000 sec) </span></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><br /></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;">अब हम देख सकते हैं कि दोनों उदाहरण वर्तमान में एन्क्रिप्शन का उपयोग नहीं कर रहे हैं। </span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><br /></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [(none)]> select @@server_id;<br />+-------------+<br />| @@server_id |<br />+-------------+<br />| 100 |<br />+-------------+<br />1 row in set (0.000 sec)<br />MariaDB [(none)]> SELECT NAME, ENCRYPTION_SCHEME, CURRENT_KEY_ID FROM information_schema.INNODB_TABLESPACES_ENCRYPTION ;<br />Empty set (0.000 sec)</span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br />MariaDB [(none)]> select @@server_id;<br />+-------------+<br />| @@server_id |<br />+-------------+<br />| 200 |<br />+-------------+<br />1 row in set (0.000 sec)<br />MariaDB [(none)]> SELECT NAME, ENCRYPTION_SCHEME, CURRENT_KEY_ID FROM information_schema.INNODB_TABLESPACES_ENCRYPTION ;<br />Empty set (0.000 sec)</span></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;">अब दोनों प्रणालियों पर मैं यादृच्छिक कुंजियाँ स्थापित करूँगा और उन्हें एन्क्रिप्ट करूँगा। </span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;"><br /></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># mkdir /etc/mysql/</span></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># mkdir /etc/mysql/encryption/<br /></span><span style="font-family: courier;"># (echo -n "1;" ; openssl rand -hex 32 ) | sudo tee -a /etc/mysql/encryption/keyfile<br /></span><span style="font-family: courier;"># (echo -n "2;" ; openssl rand -hex 32 ) | sudo tee -a /etc/mysql/encryption/keyfile<br /></span><span style="font-family: courier;"># (echo -n "100;" ; openssl rand -hex 32 ) | sudo tee -a /etc/mysql/encryption/keyfile</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"># cat /etc/mysql/encryption/keyfile<br /></span><span style="font-family: courier;">1;466139b487d5735b536a10502b0607d2b96dfa58a7f95ce4847d98ef585af8b5<br /></span><span style="font-family: courier;">2;a0f533c2e459dc64e0aeb1f0f8c9dfb496571e71001ca60fac35c8bbc6361096<br /></span><span style="font-family: courier;">100;4b4bfd61af39d57e068385cf1a023bdfc5972ed414a24167067ca5256fc314e6</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"># cat /etc/mysql/encryption/keyfile<br /></span><span style="font-family: courier;">1;f8b1b250d3bf7159e2abd15be146367415a80d3781bbcf7d96b26640d7efdc8a<br /></span><span style="font-family: courier;">2;c7eaccedd0ef561f0c08d461abfd651947230b08c71aec67c6064bbedb6408ec<br /></span><span style="font-family: courier;">100;90475521b6eb6be3c1ec02770f3e8f80b34130f37d25c89b51cf10ec6a7c5bb6</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">openssl rand -hex 128 > /etc/mysql/encryption/keyfile.key<br /></span><span style="font-family: courier;">openssl enc -aes-256-cbc -md sha1 -pass file:/etc/mysql/encryption/keyfile.key -in /etc/mysql/encryption/keyfile -out /etc/mysql/encryption/keyfile.enc</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"> ls -ltr /etc/mysql/encryption/<br /></span><span style="font-family: courier;">total 12<br /></span><span style="font-family: courier;">-rw-r--r--. 1 root root 203 Feb 24 23:39 keyfile<br /></span><span style="font-family: courier;">-rw-r--r--. 1 root root 257 Feb 24 23:40 keyfile.key<br /></span><span style="font-family: courier;">-rw-r--r--. 1 root root 224 Feb 24 23:41 keyfile.enc</span></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><br /></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;">अब हम प्लगइन के साथ-साथ एन्क्रिप्शन के विकल्पो ं को सक्षम करने के लिए सीएनएफ फ़ाइल सेट कर सकते ह ैं। </span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><br /></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># vi /etc/my.cnf.d/mariadb-server.cnf<br />[mariadb]<br />## File Key Management<br />plugin_load_add = file_key_management<br />loose_file_key_management_filename = /etc/mysql/encryption/keyfile<br />loose_file_key_management_filename = /etc/mysql/encryption/keyfile.enc<br />loose_file_key_management_filekey = FILE:/etc/mysql/encryption/keyfile.key<br />loose_file_key_management_encryption_algorithm = AES_CBC<br /><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">## InnoDB/XtraDB Encryption Setup<br />innodb_encrypt_log = ON<br />innodb_encrypt_temporary_tables=ON<br />innodb_encryption_threads=4<br />innodb_encrypt_tables=ON<br />innodb_default_encryption_key_id=1<br /><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">## Aria Encryption Setup<br />aria_encrypt_tables = ON<br /><br />## Temp & Log Encryption<br />encrypt-tmp-disk-tables = 1<br />encrypt-tmp-files = 1<br />encrypt_binlog = ON</span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;">Restart MariaDB so we can check on the current status. </span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">systemctl restart mariadb.service</span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">mysql</span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><div>MariaDB [(none)]> select @@server_id;</div><div>+-------------+</div><div>| @@server_id |</div><div>+-------------+</div><div>| 100 |</div><div>+-------------+</div><div>1 row in set (0.001 sec)</div><div><br /></div><div>MariaDB [(none)]> SELECT NAME, ENCRYPTION_SCHEME, CURRENT_KEY_ID FROM information_schema.INNODB_TABLESPACES_ENCRYPTION ;</div><div>+----------------------------+-------------------+----------------+</div><div>| NAME | ENCRYPTION_SCHEME | CURRENT_KEY_ID |</div><div>+----------------------------+-------------------+----------------+</div><div>| innodb_system | 1 | 1 |</div><div>| mysql/innodb_table_stats | 1 | 1 |</div><div>| mysql/innodb_index_stats | 1 | 1 |</div><div>| mysql/transaction_registry | 1 | 1 |</div><div>| mysql/gtid_slave_pos | 1 | 1 |</div><div>| world/city | 1 | 1 |</div><div>| world/country | 1 | 1 |</div><div>| world/countrylanguage | 1 | 1 |</div><div>+----------------------------+-------------------+----------------+</div><div>8 rows in set (0.000 sec)</div><div><br /></div><div><div>MariaDB [(none)]> select @@server_id;</div><div>+-------------+</div><div>| @@server_id |</div><div>+-------------+</div><div>| 200 |</div><div>+-------------+</div><div>1 row in set (0.000 sec)</div><div><br /></div><div>MariaDB [(none)]> SELECT NAME, ENCRYPTION_SCHEME, CURRENT_KEY_ID FROM information_schema.INNODB_TABLESPACES_ENCRYPTION ;</div><div>+----------------------------+-------------------+----------------+</div><div>| NAME | ENCRYPTION_SCHEME | CURRENT_KEY_ID |</div><div>+----------------------------+-------------------+----------------+</div><div>| innodb_system | 1 | 1 |</div><div>| mysql/innodb_index_stats | 1 | 1 |</div><div>| mysql/gtid_slave_pos | 1 | 1 |</div><div>| mysql/innodb_table_stats | 1 | 1 |</div><div>| mysql/transaction_registry | 1 | 1 |</div><div>+----------------------------+-------------------+----------------+</div><div>5 rows in set (0.000 sec)</div></div></span></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><br /></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;">साथ ही विश्व डेटा को इंस्टेंस सर्वर_आईडी 200 पर अपलोड करें। </span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;"><br /></span></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># mysql < world.sql<br /># mysql <br />MariaDB [(none)]> select @@server_id;<br />+-------------+<br />| @@server_id |<br />+-------------+<br />| 200 |<br />+-------------+<br />1 row in set (0.000 sec)<br />MariaDB [(none)]> SELECT NAME, ENCRYPTION_SCHEME, CURRENT_KEY_ID FROM information_schema.INNODB_TABLESPACES_ENCRYPTION ;<br />+----------------------------+-------------------+----------------+<br />| NAME | ENCRYPTION_SCHEME | CURRENT_KEY_ID |<br />+----------------------------+-------------------+----------------+<br />| innodb_system | 1 | 1 |<br />| mysql/innodb_index_stats | 1 | 1 |<br />| mysql/gtid_slave_pos | 1 | 1 |<br />| mysql/innodb_table_stats | 1 | 1 |<br />| mysql/transaction_registry | 1 | 1 |<br />| world/city | 1 | 1 |<br />| world/country | 1 | 1 |<br />| world/countrylanguage | 1 | 1 |<br />+----------------------------+-------------------+----------------+<br />8 rows in set (0.000 sec)</span></div><h3 style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; margin: 0px; position: relative;"><br /></h3><p><span style="font-family: arial;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Information_schema.INNODB_TABLESPACES_ENCRYPTION के अनुसार अब हम एन्क्रिप्टेड हैं। </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">हालाँकि, वे इसे स्कीमा स्तर पर नहीं दिखाते हैं। </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">हालांकि वे कहते हैं कि यदि यह </span></span></span></span></span><span style="font-family: arial;">INNODB_TABLESPACES_ENCRYPTION
तालिका में दिखाई देता है तो यह एन्क्रिप्टेड है, मैं आश्वस्त होना पसंद
करता हूं और इसे तालिका और स्कीमा में देखना पसंद करता हूं। </span></p><p><span style="font-family: arial;"><br /></span></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [(none)]> show create table world.city\G<br /></span><span style="font-family: courier;">*************************** 1. row ***************************<br /></span><span style="font-family: courier;"> Table: city<br /></span><span style="font-family: courier;">Create Table: CREATE TABLE `city` (<br /></span><span style="font-family: courier;"> `ID` int(11) NOT NULL AUTO_INCREMENT,<br /></span><span style="font-family: courier;"> `Name` char(35) NOT NULL DEFAULT '',<br /></span><span style="font-family: courier;"> `CountryCode` char(3) NOT NULL DEFAULT '',<br /></span><span style="font-family: courier;"> `District` char(20) NOT NULL DEFAULT '',<br /></span><span style="font-family: courier;"> `Population` int(11) NOT NULL DEFAULT 0,<br /></span><span style="font-family: courier;"> PRIMARY KEY (`ID`),<br /></span><span style="font-family: courier;"> KEY `CountryCode` (`CountryCode`),<br /></span><span style="font-family: courier;"> CONSTRAINT `city_ibfk_1` FOREIGN KEY (`CountryCode`) REFERENCES `country` (`Code`)<br /></span><span style="font-family: courier;">) ENGINE=InnoDB AUTO_INCREMENT=4080 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci<br /></span><span style="font-family: courier;">1 row in set (0.001 sec)</span></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></p><p><span style="font-family: arial;">इस बिंदु तक, आप देख सकते हैं कि </span><span style="font-family: arial;">स्कीमा और डेटा के पुनरारंभ या लोड होने के बाद दोनों उदाहरणों को INNODB_TABLESPACES_ENCRYPTION स्कीमा में शामिल किया गया है। </span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
</p><p><span style="font-family: arial;">तो...तालिका में कुछ संशोधनों से यहां मदद मिलेगी... </span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><br /></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [world]> ALTER TABLE city ENCRYPTED=Yes ENCRYPTION_KEY_ID=1;<br /></span><span style="font-family: courier;">Query OK, 0 rows affected (0.074 sec)<br /></span><span style="font-family: courier;">Records: 0 Duplicates: 0 Warnings: 0</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">MariaDB [world]> ALTER TABLE country ENCRYPTED=Yes ENCRYPTION_KEY_ID=1;<br /></span><span style="font-family: courier;">Query OK, 0 rows affected (0.031 sec)<br /></span><span style="font-family: courier;">Records: 0 Duplicates: 0 Warnings: 0</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;">MariaDB [world]> ALTER TABLE countrylanguage ENCRYPTED=Yes ENCRYPTION_KEY_ID=1;<br /></span><span style="font-family: courier;">Query OK, 0 rows affected (0.033 sec)<br /></span><span style="font-family: courier;">Records: 0 Duplicates: 0 Warnings: 0</span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><div>MariaDB [world]> show create table city\G</div><div>*************************** 1. row ***************************</div><div> Table: city</div><div>Create Table: CREATE TABLE `city` (</div><div> `ID` int(11) NOT NULL AUTO_INCREMENT,</div><div> `Name` char(35) NOT NULL DEFAULT '',</div><div> `CountryCode` char(3) NOT NULL DEFAULT '',</div><div> `District` char(20) NOT NULL DEFAULT '',</div><div> `Population` int(11) NOT NULL DEFAULT 0,</div><div> PRIMARY KEY (`ID`),</div><div> KEY `CountryCode` (`CountryCode`),</div><div> CONSTRAINT `city_ibfk_1` FOREIGN KEY (`CountryCode`) REFERENCES `country` (`Code`)</div><div>) ENGINE=InnoDB AUTO_INCREMENT=4080 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `ENCRYPTED`=Yes `ENCRYPTION_KEY_ID`=1</div><div>1 row in set (0.000 sec)</div></span></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></p><p><span style="font-family: arial;"><span style="vertical-align: inherit;"><span class="" style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">यह सरल है आदि। </span><span style="vertical-align: inherit;">अब तक... अब हमें बिनलॉग सक्षम करने और और अधिक जांचने की आवश्यकता है। </span></span></span></span></span></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">vi /etc/my.cnf.d/mariadb-server.cnf<br />log_bin=demo<br /><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">cat /etc/my.cnf.d/mariadb-server.cnf | grep log_bin<br />log_bin=demo<br /><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># systemctl restart mariadb.service<br /><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [(none)]> select @@server_id;<br />+-------------+<br />| @@server_id |<br />+-------------+<br />| 100 |<br />+-------------+<br />1 row in set (0.000 sec)<br /><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [(none)]> show master status\G<br />*************************** 1. row ***************************<br /> File: demo.000001<br /> Position: 363<br /> Binlog_Do_DB:<br />Binlog_Ignore_DB:<br /><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [(none)]> select @@server_id;<br />+-------------+<br />| @@server_id |<br />+-------------+<br />| 200 |<br />+-------------+<br />1 row in set (0.000 sec)<br /><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [(none)]> show master status\G<br />*************************** 1. row ***************************<br /> File: demo.000001<br /> Position: 363<br /> Binlog_Do_DB:<br />Binlog_Ignore_DB:<br />1 row in set (0.000 sec)</span></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;">बिनलॉग्स पर एक नजर डालकर जांच की जा रही है.... </span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">mariadb-binlog--base64-output=DECODE-ROWS --verbose demo.000001</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">/*!40019 SET @@session.max_insert_delayed_threads=0*/;</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">DELIMITER /*!*/;</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># at 4</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">#240225 0:06:06 server id 100 end_log_pos 256 CRC32 0x04ce3741 <span style="white-space: pre;"> </span>Start: binlog v 4, server v 10.5.23-MariaDB-log created 240225 0:06:06 at startup</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># Warning: this binlog is either in use or was not closed properly.</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">ROLLBACK/*!*/;</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># at 256</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># Encryption scheme: 1, key_version: 1, nonce: eb7991b210f3f4d2f7f21537</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># The rest of the binlog is encrypted!</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">ERROR: Error in Log_event::read_log_event(): 'Event decryption failure', data_len: 2400465656, event_type: 240</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">DELIMITER ;</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"># End of log file</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">ROLLBACK /* added by mysqlbinlog */;</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;</span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: arial;">यह देखकर अच्छा लगा कि यह अब एन्क्रिप्ट किया जा रहा है। </span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [world]> create table city2 like city;<br /></span><span style="font-family: courier;">Query OK, 0 rows affected (0.013 sec)</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [world]> insert into city2 select * from city;<br /></span><span style="font-family: courier;">Query OK, 4079 rows affected (0.078 sec)<br /></span><span style="font-family: courier;">Records: 4079 Duplicates: 0 Warnings: 0</span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"><br /></span></div><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">MariaDB [world]> show create table city2\G<br /></span><span style="font-family: courier;">*************************** 1. row ***************************<br /></span><span style="font-family: courier;"> Table: city2<br /></span><span style="font-family: courier;">Create Table: CREATE TABLE `city2` (<br /></span><span style="font-family: courier;"> `ID` int(11) NOT NULL AUTO_INCREMENT,<br /></span><span style="font-family: courier;"> `Name` char(35) NOT NULL DEFAULT '',<br /></span><span style="font-family: courier;"> `CountryCode` char(3) NOT NULL DEFAULT '',<br /></span><span style="font-family: courier;"> `District` char(20) NOT NULL DEFAULT '',<br /></span><span style="font-family: courier;"> `Population` int(11) NOT NULL DEFAULT 0,<br /></span><span style="font-family: courier;"> PRIMARY KEY (`ID`),<br /></span><span style="font-family: courier;"> KEY `CountryCode` (`CountryCode`)<br /></span><span style="font-family: courier;">) ENGINE=InnoDB AUTO_INCREMENT=4080 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `ENCRYPTED`=Yes `ENCRYPTION_KEY_ID`=1<br /></span><span style="font-family: courier;">1 row in set (0.000 sec)</span></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;"><br /></span></p><p><span style="font-family: arial;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">हालाँकि मैं इन लेन-देन को बिनलॉग में देखना चाहत ा हूँ.. कैसे? </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">लॉग में डेटा देखने में सक्षम होने के लिए आप --read-from-remote-server के साथ mariadb_binlog का उपयोग कर सकते हैं...</span></span></span></span></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><br /></p><div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="font-family: courier;">mariadb-binlog --base64-output=DECODE-ROWS --verbose --read-from-remote-server demo.000001 | more<br />/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;<br />/*!40019 SET @@session.max_insert_delayed_threads=0*/;<br />/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;<br />DELIMITER /*!*/;<br /># at 4<br />#240225 0:06:06 server id 100 end_log_pos 256 CRC32 0x04ce3741 <span style="white-space: pre;"> </span>Start: binlog v 4, server v 10.5.23-MariaDB-log created 240225 0:06:06 at startup<br />ROLLBACK/*!*/;<br /># at 256<br />#240225 0:06:06 server id 100 end_log_pos 296 CRC32 0x0c89f3bb <span style="white-space: pre;"> </span>Ignorable<br /># Ignorable event type 164 (Start_encryption)<br /># at 296<br />#240225 0:06:06 server id 100 end_log_pos 325 CRC32 0x535776a2 <span style="white-space: pre;"> </span>Gtid list []<br /># at 325<br />#240225 0:06:06 server id 100 end_log_pos 363 CRC32 0x2ac4a61b <span style="white-space: pre;"> </span>Binlog checkpoint demo.000001<br /># at 363<br />#240225 0:09:40 server id 100 end_log_pos 405 CRC32 0x93e10dc4 <span style="white-space: pre;"> </span>GTID 0-100-1 ddl<br />/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;<br />/*!100001 SET @@session.gtid_domain_id=0*//*!*/;<br />/*!100001 SET @@session.server_id=100*//*!*/;<br />/*!100001 SET @@session.gtid_seq_no=1*//*!*/;<br /># at 405<br />#240225 0:09:40 server id 100 end_log_pos 501 CRC32 0x39269040 <span style="white-space: pre;"> </span>Query<span style="white-space: pre;"> </span>thread_id=5<span style="white-space: pre;"> </span>exec_time=0<span style="white-space: pre;"> </span>error_code=0<br />use `world`/*!*/;<br />SET TIMESTAMP=1708819780/*!*/;<br />SET @@session.pseudo_thread_id=5/*!*/;<br />SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1, @@session.sql_if_exists=0, @@session.explicit_defaults_<br />for_timestamp=0/*!*/;<br />SET @@session.sql_mode=1411383296/*!*/;<br />SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;<br />/*!\C utf8 *//*!*/;<br />SET @@session.character_set_client=utf8,@@session.collation_connection=33,@@session.collation_server=8/*!*/;<br />SET @@session.lc_time_names=0/*!*/;<br />SET @@session.collation_database=DEFAULT/*!*/;<br />create table city2 like city<br />/*!*/;<br /># at 501<br />#240225 0:09:49 server id 100 end_log_pos 543 CRC32 0xde82b753 <span style="white-space: pre;"> </span>GTID 0-100-2 trans<br />/*!100001 SET @@session.gtid_seq_no=2*//*!*/;<br />START TRANSACTION<br />/*!*/;<br /># at 543<br /># at 602<br />#240225 0:09:49 server id 100 end_log_pos 602 CRC32 0x05bbb9e6 <span style="white-space: pre;"> </span>Annotate_rows:<br />#Q> insert into city2 select * from city<br />#240225 0:09:49 server id 100 end_log_pos 661 CRC32 0x9e0b4e0d <span style="white-space: pre;"> </span>Table_map: `world`.`city2` mapped to number 21<br /># at 661</span></div><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><br /></p><p><span style="font-family: arial;">उम्मीद है कि यह कम से कम आपको आरंभ करने में मदद कर सकता है... </span></p><p><span style="font-family: courier;"><br /></span></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
</p><h3><span style="font-family: courier;">संसाधन</span><span style="vertical-align: inherit;"> :</span></h3><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"></p><p style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">https://mariadb.com/kb/en/securing-mariadb-encryption/ </p>Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-33125872299995227922020-11-12T07:16:00.005-08:002020-11-12T07:29:27.298-08:00स्कीमा पाने के लिए अपनी FRM फ़ाइल का उपयोग करना और फिर आईडीबी फ़ाइलों को दोबारा करना .. <p><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"> यह एक ऐसा विषय है जो कुल मिलाकर आपको कभी नहीं करना चाहिए ... क्यों? </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">क्योंकि
आपने बैकअप सही बनाया है ... आपने परीक्षण किया है और बैकअप का काम जानते
हैं इसलिए आप बस उन बैकअप को सुरक्षित कर सकते हैं और अपना खोया हुआ स्कीमा
और संबंधित डेटा प्राप्त कर सकते हैं ... </span></span></span></span></p><p><span style="vertical-align: inherit;">हालाँकि
उस कोने के कार्यालय में एक उदाहरण .. आपको स्थापित करने के लिए कभी नहीं
मिला .. यह महत्वपूर्ण नहीं है ... बस दुर्घटनाग्रस्त हो गया है और अब आपको
एहसास हुआ कि आप वास्तव में इसका उपयोग कैसे करते हैं ... </span></p><p><span style="vertical-align: inherit;">सब कुछ खोया नहीं है ।। </span></p><p><span style="vertical-align: inherit;">MySQL ने अपनी MySQL उपयोग सूची को थोड़ा देर बाद जारी किया और चूंकि MySQL शेल के साथ इसे और अधिक बदल दिया गया। </span></p><p></p><ul>
<li><a href="https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://downloads.mysql.com/archives/utilities&usg=ALkJrhjE2ZJYB7cgnimXYTzkrcHWt_aNqA"><span style="vertical-align: inherit;">https://downloads.mysql.com/archives/utilities</span></a> </li>
<li><a href="https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/downloads/shell/&usg=ALkJrhjRxQlE5VnsYktPIl-MBDZI-eL2DA"><span style="vertical-align: inherit;">https://dev.mysql.com/downloads/shell/</span></a></li>
</ul><div><span style="vertical-align: inherit;">mysqlfrm
अभी भी बहुत आसान है, जब एक त्वरित और सरलैंड में FRM फ़ाइल से स्कीमा को
बाहर निकालने की आवश्यकता होती है और यह एक साधारण इंस्टॉल है। </span></div><div><br /></div><div>
<div class="codebox">
<code>
mysqlfrm --diagnostic city.frm<br />
# WARNING: Cannot generate character set or collation names
without the --server option.
# CAUTION: The diagnostic mode is a best-effort parse of the
.frm file. As such, it may not identify all of the components of the
table correctly. This is especially true for damaged files. It will also
not read the default values for the columns and the resulting statement
may not be syntactically correct.<br />
# Reading .frm file for city.frm:<br />
# The .frm file is a TABLE.<br />
# CREATE TABLE Statement:<br />
<br />
CREATE TABLE `city` (<br />
`ID` int(11) NOT NULL AUTO_INCREMENT,<br />
`Name` char(160) DEFAULT NULL,<br />
`CountryCode` char(12) NOT NULL,<br />
`District` char(80) NOT NULL,<br />
`Population` int(11) NOT NULL,<br />
PRIMARY KEY `PRIMARY` (`ID`),<br />
KEY `CountryCode` (`CountryCode`),<br />
KEY `popkey` (`Population`)<br />
) ENGINE=InnoDB;<br />
<br />
#...done.<br />
</code>
</div>
</div><div><br /></div><div><br /></div><div><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">इसलिए अब आपके पास जो स्कीमा है वह आप खो चुके हैं ... डीबी या टेबल का दोबारा करें। </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">उदाहरण के लिए, मैं कहूंगा कि हमने दुनिया का डेटा डीबी से खो दिया है। </span></span></span></span></div><p></p><div><span style="font-family: monospace;">$ cp </span><span style="font-family: monospace;">city.ibd </span><span style="font-family: monospace;"> / tmp / </span></div><div><span style="font-family: monospace;"><br /></span></div><p>
</p><div>
<div class="codebox">
<code>
$ cp city.ibd /tmp/ <br />
mysql> LOCK TABLES city WRITE;<br />
mysql> ALTER TABLE city DISCARD TABLESPACE;<br />
<br />
cp city.ibd /edb/local/mysql/data/rundeck/<br />
chown tmdba:dba /edb/local/mysql/data/rundeck/city.ibd<br />
<br />
mysql> ALTER TABLE city IMPORT TABLESPACE;<br />
mysql> UNLOCK TABLES;<br />
mysql> SELECT COUNT(*) FROM city;<br />
<br />
</code>
</div>
<div><br /></div></div>Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-52953924166336797672020-09-21T10:43:00.003-07:002020-09-21T10:43:19.398-07:00MySQL mysql_config_editor और उम्मीद है <p> यह किसी को भी मदद करने के लिए एक नोट है जो अपने बच्चों को 10.1 में mysql_config_editorand का उपयोग करना चाह सकता है। </p><p><span style="vertical-align: inherit;">mysql_config_editor
पासवर्ड तर्क नहीं लेता है, इसलिए उपकरण उपकरण जो आपके पासवर्ड को
mysql_config_editor विफल करने के लिए उपयोग करने के लिए .my.cnf फ़ाइल सेट
करने से पहले हो सकता है। </span></p><p><span style="vertical-align: inherit;">यह संभव उपकरण के साथ यद्यपि संभव और काफी सरल है। </span></p><p></p><div class="</code></div>ox"><code><p></p><p> yum -y install expect </p></code><p><code></code></p></div><p></p><p><span style="vertical-align: inherit;">यह उपयुक्त नहीं है के लिए भी काम करता है। </span></p><p><br /></p><p><span style="vertical-align: inherit;">इसलिए इस उदाहरण में, मैं एक सरल बैश स्क्रिप्ट संस्करण दिखाऊंगा। </span></p><p><span style="vertical-align: inherit;">1 .. मेरा लॉगिन पथ काम नहीं करता है ... </span></p><p></p><div class="</code></div>ox"><code><p></p><p>mysql --login-path=local</p><p>ERROR 1045 (28000): Access denied for user</p></code><p><code></code></p></div><p></p><p><br /></p><p><span style="vertical-align: inherit;">यह उम्मीद के साथ सेट करें </span></p><p><span style="vertical-align: inherit;">आप इसे अपने बैश स्क्रिप्ट के माध्यम से निष्पादित करेंगे। </span></p><p></p><div class="</code></div>ox"><code><p></p><p>expect <<EOD</p><p>spawn mysql_config_editor set --login-path=local --host=localhost --user=root --password </p><p>expect "password"</p><p>send -- "<PASSWORD>\r"</p><p>interact</p><p>EOD</p></code><p><code></code></p></div><p></p><p><br /></p><p><span style="vertical-align: inherit;">अब यह काम कर रहा है ...</span></p><p></p><div class="</code></div>ox"><code><p></p><p>mysql --login-path=local</p><p>Welcome to the MySQL monitor. Commands end with ; or \g.</p><p>Your MySQL connection id is 1002</p></code></div>Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-32580872537890270402020-03-15T15:13:00.000-07:002020-03-15T15:13:08.485-07:00MySQL और डॉकर्स ... एक साधारण सेट अप<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate">MySQL & Dockers ... नई अवधारणाएं नहीं हैं, लोग पिछले कुछ समय से डॉकर्स की ओर बढ़ रहे हैं।</span> <span class="notranslate"> किसी ऐसे व्यक्ति के लिए, जो विकास के लिए बस आगे बढ़ रहा है, उसके लिए कुछ बाधाएँ हो सकती हैं।</span> <br /><br /> <span class="notranslate">
जबकि MySQL स्थानीय रूप से ठीक चलने में काम करता है, यदि आप MySQL के
विभिन्न संस्करणों में कोड का परीक्षण कर रहे हैं तो कई संस्करणों को आसानी
से उपलब्ध होना अच्छा है।</span> <br /><br /> <span class="notranslate"> वर्षों के लिए एक विकल्प Giuseppe Maxia द्वारा <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://mysqlsandbox.net/&usg=ALkJrhgsyhNRsobTYCQtl9o9jQula5P-aQ">https://mysqlsandbox.net/ का रहा</a> है।</span> <span class="notranslate"> यह कई उदाहरणों को प्राप्त करने और प्रतिकृति और परीक्षण आदि को प्राप्त करने में सक्षम होने के लिए एक बहुत ही वैध समाधान है।</span> <br /><br /> <span class="notranslate"> जब यह MySQL के विभिन्न संस्करणों में परीक्षण करने की बात आती है, तो डॉकर अब एक और अक्सर उपयोग किया जाने वाला परिदृश्य है।</span> <span class="notranslate"> निम्नलिखित केवल कुछ संस्करणों को आसानी से स्थापित करने के लिए कुछ चरणों पर जाएंगे।</span> <span class="notranslate"> मैं OSX का उपयोग करता हूं इसलिए ये उदाहरण OSX के लिए हैं।</span> <br /><br /> <span class="notranslate">
आपको शुरू करने के लिए डॉकर की आवश्यकता है और निश्चित रूप से डॉकर
डेस्कटॉप आपके लिए एक आसान उपकरण है जिससे आप आसानी से पहुँच प्राप्त कर
सकते हैं।</span> <br /><br />
<ul>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://docs.docker.com/docker-for-mac/install/&usg=ALkJrhi1kPAIkNO_Dz1_GEjvm33SWfOj3Q">https://docs.docker.com/docker-for-mac/install/</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://docs.docker.com/docker-for-windows/&usg=ALkJrhiBlu_sElTg8TK49Q5zI8XbFTJnjA">https://docs.docker.com/docker-for-windows/</a></span> </li>
</ul>
<div>
<span class="notranslate"> एक बार जब मैंने डॉकर सेट किया तो मैं अपने वातावरण को MySQL के लिए तैयार कर सकता था।</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate">
यहाँ मैंने एक डॉकर फ़ोल्डर बनाया है जिसमें MySQL डेटा डाइरेक्टरीज़,
फाइल्स फाइल के साथ-साथ mysql-files डाइरेक्टरी भी शामिल हैं अगर ज़रूरत
हो।</span> </div>
<div class="codebox">
<code>
</code><br /><div>
<code>mkdir ~/Docker ;</code> </div>
<code>
</code><br /><div>
<code>mkdir ~/Docker/mysql_data;</code> </div>
<code>
</code><div>
<code>mkdir ~/Docker/mysql-files;</code> </div>
<div>
<code>mkdir ~/Docker/cnf;</code> </div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> अब mysql_data के अंदर</span> </div>
<br />
<div class="codebox">
<code>
</code><br /><div>
<div>
<code>cd ~/Docker/mysql_data;</code> </div>
<div>
<code>mkdir 8.0;</code> </div>
<div>
<code>mkdir 5.7;</code> </div>
<div>
<code>mkdir 5.6;</code> </div>
<div>
<code>mkdir 5.5;</code> </div>
</div>
</div>
<div>
<br /></div>
<div>
<br /><div>
<span class="notranslate"> अब मैंने इस उदाहरण के लिए सरल cnf फाइलें स्थापित की हैं।</span> <span class="notranslate"> नोट करने के लिए प्राथमिक चीज बाइंड-एड्रेस है।</span> <span class="notranslate"> यह यह सुनिश्चित करने के लिए सेट किया गया है कि यह हमारे लिए खोला गया है कि MySQL को डॉकटर के बाहर कैसे पहुँचा जाए।</span> <span class="notranslate">
आप यह भी देख सकते हैं कि इन फ़ाइलों का उपयोग अतिरिक्त कॉन्फ़िगरेशन
जानकारी सेट करने के लिए किया जा सकता है जैसा कि आप प्रति MySQL docker
उदाहरण में फिट देखते हैं।</span> </div>
<div>
<br /></div>
<br /><div class="codebox">
<code>
</code><br /><div>
<div>
<code>cd ~/Docker/cnf;</code> </div>
<div>
<code><br /></code> </div>
<div>
<div>
<code>cat my.8.0.cnf</code> </div>
<div>
<code>[mysqld]</code> </div>
<div>
<code>pid-file = /var/run/mysqld/mysqld.pid</code> </div>
<div>
<code>socket = /var/run/mysqld/mysqld.sock</code> </div>
<div>
<code>datadir = /var/lib/mysql</code> </div>
<div>
<code>secure-file-priv= /var/lib/mysql-files</code> </div>
<div>
<code># Disabling symbolic-links is recommended to prevent assorted security risks</code> </div>
<div>
<code>symbolic-links=0</code> </div>
<div>
<code>bind-address = 0.0.0.0</code> </div>
<div>
<code>port=3306</code> </div>
<div>
<code>server-id=80</code> </div>
<div>
<code><br /></code> </div>
<div>
<code><br /></code> </div>
<div>
<code># Custom config should go here</code> </div>
<div>
<code>!includedir /etc/mysql/conf.d/</code> </div>
</div>
<div>
<code><br /></code> </div>
<div>
<div>
<code>cat my.5.7.cnf</code> </div>
<div>
<code>[mysqld]</code> </div>
<div>
<code>bind-address = 0.0.0.0</code> </div>
<div>
<code>server-id=57</code> </div>
<div>
<code>max_allowed_packet=32M</code> </div>
</div>
<div>
<code><br /></code> </div>
<div>
<code>$ cat my.5.6.cnf</code> </div>
<div>
<div>
<code>[mysqld]</code> </div>
<div>
<code>bind-address = 0.0.0.0</code> </div>
<div>
<code>server-id=56</code> </div>
</div>
<div>
<code><br /></code> </div>
<div>
<code>$ cat my.5.5.cnf</code> </div>
<div>
<div>
<code>[mysqld]</code> </div>
<div>
<code>bind-address = 0.0.0.0</code> </div>
<div>
<code>server-id=55</code> </div>
</div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span class="notranslate"> अब ठीक है कि हमारे पास कॉन्फ़िगरेशन फ़ाइलें सेट हैं, हमें डॉकर्स बनाने की आवश्यकता है।</span> <span class="notranslate"> बिल्ड कमांड के लिए ध्यान देने योग्य कुछ बातें।</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> --name हमने डॉकटर के लिए एक नामांकित संदर्भ सेट किया है।</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> यहाँ हम विन्यास फाइल, डेटा निर्देशिका और mysql-files निर्देशिकाओं को मैप कर रहे हैं।</span> <span class="notranslate"> यह हमें आसानी से my.cnf फ़ाइल और आदि को समायोजित करने की अनुमति देता है।</span> </div>
<div>
<span class="notranslate"> -v ~ / डॉकटर / cnf / my.8.0.cnf: /etc/mysql/my.cnf</span> </div>
<div>
<span class="notranslate"> -v ~ / डॉकटर / mysql_data / 8.0: / var / lib / mysql</span> </div>
<div>
<span class="notranslate"> -v ~ / Docker / mysql-files: / var / lib / mysql-files</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate">
हम डॉक के बाहर इन MySQL उदाहरणों तक पहुंचने में सक्षम होना चाहते हैं,
इसलिए हमें तदनुसार पोर्ट को प्रकाशित और मैप करने की आवश्यकता है।</span> </div>
<div>
<span class="notranslate"> -पी 3306: 3306 इसका मतलब है कि डॉकटर के अंदर 3306 लोकल से 3306</span> </div>
<div>
<span class="notranslate"> -p 3307: 3306 इसका मतलब है कि dock के अंदर 3307 लोकल से 3306</span> </div>
<div>
<span class="notranslate"> -p 3308: 3306 इसका मतलब है कि 3308 लोकल डॉकटर के अंदर 3306 है</span> </div>
<div>
<span class="notranslate"> -p 3309: 3306 इसका मतलब है कि dock के अंदर 3309 लोकल से 3306</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> फिर हम कुछ पर्यावरण चर भी पास करते हैं।</span> </div>
<div>
<span class="notranslate"> -मे MYSQL_ROOT_HOST =% -e MYSQL_ROOT_PASSWORD = <पासवर्ड यहां सेट करें></span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> इसलिए यह सब एक साथ ...</span> </div>
<div>
<br /></div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<div>
<code>docker run --restart always --name
mysql8.0 -v ~/Docker/cnf/my.8.0.cnf:/etc/mysql/my.cnf -v
~/Docker/mysql_data/8.0:/var/lib/mysql -v
~/Docker/mysql-files:/var/lib/mysql-files -p 3306:3306 -d -e
MYSQL_ROOT_HOST=% -e MYSQL_ROOT_PASSWORD=<set a password here>
mysql:8.0</code> </div>
<div>
<code><br /></code> </div>
<div>
<code>docker
run --restart always --name mysql5.7 -v
~/Docker/cnf/my.5.7.cnf:/etc/mysql/my.cnf -v
~/Docker/mysql_data/5.7:/var/lib/mysql -v
~/Docker/mysql-files:/var/lib/mysql-files -p 3307:3306 -d -e
MYSQL_ROOT_HOST=% -e MYSQL_ROOT_PASSWORD=<set a password here>
mysql:5.7</code> </div>
<div>
<code><br /></code> </div>
<div>
<code>docker
run --restart always --name mysql5.6 -v
~/Docker/cnf/my.5.6.cnf:/etc/mysql/my.cnf -v
~/Docker/mysql_data/5.6:/var/lib/mysql -v
~/Docker/mysql-files:/var/lib/mysql-files -p 3308:3306 -d -e
MYSQL_ROOT_HOST=% -e MYSQL_ROOT_PASSWORD=<set a password here>
mysql:5.6</code> </div>
<div>
<code><br /></code> </div>
<div>
<code>docker
run --restart always --name mysql5.5 -v
~/Docker/cnf/my.5.5.cnf:/etc/mysql/my.cnf -v
~/Docker/mysql_data/5.5:/var/lib/mysql -v
~/Docker/mysql-files:/var/lib/mysql-files -p 3309:3306 -d -e
MYSQL_ROOT_HOST=% -e MYSQL_ROOT_PASSWORD=<set a password here>
mysql:5.5</code> </div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> उपरोक्त आदेशों के प्रत्येक निष्पादन के बाद, आपको एक आईडी वापस मिलनी चाहिए।</span> </div>
<div>
<span class="notranslate"> उदाहरण: 3cb07d7c21476fbf298648986208f3429ec664167d8eef7fed17bf9ee3ce6316</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate">
आप डॉकर डेस्कटॉप के माध्यम से प्रत्येक डॉक टर्मिनल को आसानी से शुरू कर
सकते हैं / पुनः आरंभ कर सकते हैं या संबंधित आईडी का ध्यान रख सकते हैं और
आप टर्मिनल के माध्यम से निष्पादित कर सकते हैं।</span> <br /><br /><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqWnqbzBw-vnNL8Xms6chlJKiZpF-spBBA1CuwW_kMl0Yu7IxGJ1LEjXU_cOnjCmJywkgLXn7pwdRdn-b88JRdUnXlbPa43g2QkJRXxjhGOw5mYiUjWmTesp5-hSdlqld25UEB7X59b2c/s1600/Screen+Shot+2020-03-15+at+4.01.31+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="485" data-original-width="853" height="226" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqWnqbzBw-vnNL8Xms6chlJKiZpF-spBBA1CuwW_kMl0Yu7IxGJ1LEjXU_cOnjCmJywkgLXn7pwdRdn-b88JRdUnXlbPa43g2QkJRXxjhGOw5mYiUjWmTesp5-hSdlqld25UEB7X59b2c/s400/Screen+Shot+2020-03-15+at+4.01.31+PM.png" width="400" /></a> </div>
<div class="separator" style="clear: both; text-align: center;">
<span class="notranslate"> डॉकर डेस्कटॉप आपको उन सभी चरों को भी दिखाता है जिन्हें आपने पास किया था ताकि आप उसे सत्यापित कर सकें।</span> </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmSQJmYv8nxZnRHfVyq-Z2Iux_HP8PuvMaZPMorTD8D3DOn7saLPQ7X8FuS2NAkJY4PasiC9dhWqVhqdxZ8i3XS78A5iOUZZtWdoo8lH4Bm7iiBt8enSFgeDBkJTv5aWQXqcqS3fEOR2I/s1600/Screen+Shot+2020-03-15+at+4.04.04+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="53" data-original-width="249" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmSQJmYv8nxZnRHfVyq-Z2Iux_HP8PuvMaZPMorTD8D3DOn7saLPQ7X8FuS2NAkJY4PasiC9dhWqVhqdxZ8i3XS78A5iOUZZtWdoo8lH4Bm7iiBt8enSFgeDBkJTv5aWQXqcqS3fEOR2I/s1600/Screen+Shot+2020-03-15+at+4.04.04+PM.png" /></a> </div>
<div class="separator" style="clear: both; text-align: center;">
<span class="notranslate"> आप निश्चित रूप से यहां सीएलआई तक भी पहुंच सकते हैं, रोक सकते हैं और इसे आसानी से शुरू या नष्ट कर सकते हैं।</span> </div>
</div>
<div>
<br /></div>
<div class="codebox">
<code>
</code><br /><div>
<div class="p1" style="font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
<code><span class="s1" style="font-variant-ligatures: no-common-ligatures;">$ docker exec -it 3cb07d7c21476fbf298648986208f3429ec664167d8eef7fed17bf9ee3ce6316 /bin/sh; exit</span></code> </div>
<div class="p1" style="font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
<code><span class="s1" style="font-variant-ligatures: no-common-ligatures;"># mysql -p</span></code> </div>
</div>
<code>
</code></div>
<div>
<br /></div>
<div>
<span class="notranslate"> अगर डॉकटर कंटेनर पहले से चल रहा है, तो आप अपने लोकलहोस्ट टर्मिनल के माध्यम से MySQL तक पहुँच सकते हैं।</span> </div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<div class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
<code><span class="s1" style="font-family: "menlo"; font-size: 11px;">$</span> <span style="font-family: "menlo";"><span style="font-size: 11px; font-variant-ligatures: no-common-ligatures;">mysql --host=localhost --protocol=tcp --port=3306 -p -u root</span></span></code> </div>
</div>
<code>
</code></div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate">
अब यदि आपके पास कोई एक्सेस समस्या है, तो यह सुनिश्चित करने के लिए याद
रखें कि MySQL खाते सही हैं और आपके पोर्ट और मैपिंग सही हैं।</span> </div>
<div>
<ul>
<li> <span class="notranslate"> 'प्रारंभिक संचार पैकेट पढ़ने' पर MySQL सर्वर से कनेक्शन खो गया</span> </li>
<li> <span class="notranslate"> ERROR 1045 (28000): उपयोगकर्ता 'root'@'192.168.0.5' (पासवर्ड का उपयोग कर: Y:) के लिए अस्वीकृत</span> </li>
</ul>
</div>
<div>
<br /> <span class="notranslate"> अब आप देख सकते हैं कि सभी उपलब्ध हैं और उपलब्ध हैं और सर्वर Ids मेल खाता है जो हम प्रति cnf फ़ाइल ईयरइलर सेट करते हैं।</span> </div>
<div>
<br /></div>
<div class="codebox">
<code>$ mysql --host=localhost --protocol=tcp --port=3306 -e "Select @@hostname, @@version, @@server_id " <br /> +--------------+-----------+-------------+ <br /> | @@hostname | @@version | @@server_id | <br /> +--------------+-----------+-------------+ <br /> | 58e9663afe8d | 8.0.19 | 80 | <br /> +--------------+-----------+-------------+ <br /> $ mysql --host=localhost --protocol=tcp --port=3307 -e "Select @@hostname, @@version, @@server_id " <br /> +--------------+-----------+-------------+ <br /> | @@hostname | @@version | @@server_id | <br /> +--------------+-----------+-------------+ <br /> | b240917f051a | 5.7.29 | 57 | <br /> +--------------+-----------+-------------+ <br /> $ mysql --host=localhost --protocol=tcp --port=3308 -e "Select @@hostname, @@version, @@server_id " <br /> +--------------+-----------+-------------+ <br /> | @@hostname | @@version | @@server_id | <br /> +--------------+-----------+-------------+ <br /> | b4653850cfe9 | 5.6.47 | 56 | <br /> +--------------+-----------+-------------+ <br /> $ mysql --host=localhost --protocol=tcp --port=3309 -e "Select @@hostname, @@version, @@server_id " <br /> +--------------+-----------+-------------+ <br /> | @@hostname | @@version | @@server_id | <br /> +--------------+-----------+-------------+ <br /> | 22e169004583 | 5.5.62 | 55 | <br /> +--------------+-----------+-------------+ </code> </div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-14025938092371124572019-07-12T22:25:00.001-07:002019-07-12T22:25:57.183-07:00MySQL आप टेबलस्पेस को कैसे पुनर्स्थापित करते हैं<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate">MySQL आप टेबलस्पेस को कैसे पुनर्स्थापित करते हैं?</span> <br /><br /> <span class="notranslate"> यह नई जानकारी नहीं है, लेकिन मैंने इसे अभी तक इसे कवर नहीं किया है, जो इसे इसकी आवश्यकता है।</span> <br /><br /> <span class="notranslate"> यदि आप अपनी ibd फ़ाइलें खो देते हैं ... तो आप अपना डेटा खो देते हैं।</span> <span class="notranslate"> इसलिए यदि आपके पास एक प्रति उपलब्ध है .. या यदि आप किसी अन्य डेटाबेस से सिंक्रनाइज़ कर रहे हैं, तो भी आप इसे आयात कर सकते हैं</span> <span class="notranslate"> क्या / आप कैसे टेबलस्पेस खो देते हैं?</span> <br /><br /> <span class="notranslate"> यहाँ टेबलस्पेस को पुनर्प्राप्त करने के लिए एक सरल उदाहरण है।</span> <br /><br />
<div class="codebox">
<code><br /> <br /> mysql> Create database demo; <br /> <br /> mysql> use demo; <br /> <br /> mysql> CREATE TABLE `demotable` ( <br /> -> `id` int(11) NOT NULL AUTO_INCREMENT, <br /> -> `dts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, <br /> -> PRIMARY KEY (`id`) <br /> -> ) ENGINE=InnoDB; </code> </div>
<br /><br /> <span class="notranslate"> अब हम कुछ डेटा स्टोर करते हैं ...</span> <br /><br />
<div class="codebox">
<code><br /> mysql> INSERT INTO demotable (id) VALUES (NULL); <br /> Query OK, 1 row affected (0.10 sec) <br /> <br /> mysql> INSERT INTO demotable (id) VALUES (NULL); <br /> Query OK, 1 row affected (0.08 sec) <br /> <br /> mysql> SELECT * FROM demotable; <br /> +----+---------------------+ <br /> | id | dts | <br /> +----+---------------------+ <br /> | 1 | 2019-07-12 23:31:34 | <br /> | 2 | 2019-07-12 23:31:35 | <br /> +----+---------------------+ <br /> 2 rows in set (0.00 sec) </code> </div>
<br /><br /> <span class="notranslate"> ठीक है अब इसे तोड़ने दो ।।</span> <br /><br />
<div class="codebox">
<code><br /> # systemctl stop mysqld <br /> # cd /var/lib/mysql/demo/ <br /> # ls -ltr <br /> total 80 <br /> -rw-r-----. 1 mysql mysql 114688 Jul 12 23:31 demotable.ibd <br /> # mv demotable.ibd /tmp/ <br /> <br /> # systemctl start mysqld <br /> # mysql demo <br /> <br /> mysql> show tables; <br /> +----------------+ <br /> | Tables_in_demo | <br /> +----------------+ <br /> | demotable | <br /> +----------------+ <br /> 1 row in set (0.00 sec) <br /> <br /> mysql> desc demotable; <br /> +-------+-----------+------+-----+-------------------+-----------------------------------------------+ <br /> | Field | Type | Null | Key | Default | Extra | <br /> +-------+-----------+------+-----+-------------------+-----------------------------------------------+ <br /> | id | int(11) | NO | PRI | NULL | auto_increment | <br /> | dts | timestamp | NO | | CURRENT_TIMESTAMP | DEFAULT_GENERATED on update CURRENT_TIMESTAMP | <br /> +-------+-----------+------+-----+-------------------+-----------------------------------------------+ <br /> 2 rows in set (0.01 sec) <br /> <br /> mysql> INSERT INTO demotable (id) VALUES (NULL); <br /> ERROR 1812 (HY000): Tablespace is missing for table `demo`.`demotable`. </code> </div>
<br /><br /> <span class="notranslate"> टूटी हुई और खोई हुई मेज़ ... अब हम इसे पुनः प्राप्त कर सकते हैं।</span> <br /><br />
<div class="codebox">
<code><br /> demo]# cp /tmp/demotable.ibd . <br /> <br /> mysql> ALTER TABLE demotable DISCARD TABLESPACE; <br /> <br /> demo]# cp /tmp/demotable.ibd . <br /> demo]# ls -ltr <br /> total 112 <br /> -rw-r-----. 1 root root 114688 Jul 12 23:50 demotable.ibd <br /> demo]# chown mysql:mysql demotable.ibd <br /> demo]# mysql demo <br /> mysql> ALTER TABLE demotable IMPORT TABLESPACE; <br /> ERROR 1034 (HY000): Incorrect key file for table 'demotable'; try to repair it <br /> <br /> mysql> REPAIR TABLE demotable; <br /> +----------------+--------+----------+---------------------------------------------------------+ <br /> | Table | Op | Msg_type | Msg_text | <br /> +----------------+--------+----------+---------------------------------------------------------+ <br /> | demo.demotable | repair | note | The storage engine for the table doesn't support repair | <br /> +----------------+--------+----------+---------------------------------------------------------+ </code> </div>
<br /><br /> <span class="notranslate">
ध्यान दें कि अब हमें एक और त्रुटि भी मिली .. यह आमतौर पर tmpdir के लिए
उपलब्ध स्थान से जुड़ा होता है, और मरम्मत वैसे भी .ibd के लिए काम नहीं
करता है।</span> <br /><br />
<div class="codebox">
<code><br /> mysql> select @@tmpdir; <br /> +----------+ <br /> | @@tmpdir | <br /> +----------+ <br /> | /tmp | <br /> +----------+ <br /> <br /> # vi /etc/my.cnf <br /> tmpdir=/var/lib/mysql-files/ <br /> <br /> # systemctl restart mysqld <br /> # mysql demo </code> </div>
<br /><br /> <span class="notranslate"> उदाहरण के लिए ओके ने mysql-files डायरेक्टरी का इस्तेमाल किया।</span> <br /> <span class="notranslate"> अब हम फिर से कोशिश कर सकते हैं।</span> <br /><br />
<div class="codebox">
<code><br /> mysql> ALTER TABLE demotable IMPORT TABLESPACE; <br /> Query OK, 0 rows affected, 1 warning (0.61 sec) <br /> <br /> mysql> INSERT INTO demotable (id) VALUES (NULL); <br /> Query OK, 1 row affected (0.11 sec) <br /> <br /> mysql> SELECT * FROM demotable; <br /> +----+---------------------+ <br /> | id | dts | <br /> +----+---------------------+ <br /> | 1 | 2019-07-12 23:31:34 | <br /> | 2 | 2019-07-12 23:31:35 | <br /> | 3 | 2019-07-12 23:56:08 | <br /> +----+---------------------+ </code> </div>
<br /><br /> <span class="notranslate"> ठीक है काम किया।</span> <br /> <span class="notranslate"> अब, यह सब अच्छा और सरल है यदि आपके पास सिर्फ एक टेबल है।</span> <span class="notranslate"> लेकिन 100 का क्या ...</span> <br /><br /> <span class="notranslate"> इसे स्वचालित रूप से और निश्चित रूप से मदद करने के लिए अपने info_schema का उपयोग करें।</span> <br /><br /> <span class="notranslate"> परीक्षण के लिए कुछ और प्रतियां बनाएं।</span> <br />
<div class="codebox">
<code><br /> mysql> create table demotable1 like demotable; <br /> Query OK, 0 rows affected (0.51 sec) <br /> <br /> mysql> create table demotable2 like demotable; <br /> Query OK, 0 rows affected (1.04 sec) <br /> <br /> mysql> create table demotable3 like demotable; <br /> Query OK, 0 rows affected (0.74 sec) <br /> <br /> mysql> create table demotable4 like demotable; <br /> Query OK, 0 rows affected (2.21 sec) </code> </div>
<br /><br /> <span class="notranslate"> उन सब को तोड़ो ।।</span> <br />
<div class="codebox">
<code><br /> demo]# mv *.ibd /tmp/ </code> </div>
<br /><br /> <span class="notranslate"> अब अपनी information_schema.tables तालिका का उपयोग करके, आप उन सभी कमांड का निर्माण कर सकते हैं जिनकी आपको आवश्यकता होगी।</span> <br />
<div class="codebox">
<code><br /> # vi build_discard.sql <br /> # cat build_discard.sql <br />
SELECT CONCAT(" ALTER TABLE ",TABLE_SCHEMA,".",TABLE_NAME," DISCARD
TABLESPACE; ") as CMD FROM information_schema.TABLES WHERE
TABLE_SCHEMA='demo'; <br /> <br /> # vi build_import.sql <br /> # cat build_import.sql <br />
SELECT CONCAT(" ALTER TABLE ",TABLE_SCHEMA,".",TABLE_NAME," IMPORT
TABLESPACE; ") as CMD FROM information_schema.TABLES WHERE
TABLE_SCHEMA='demo'; </code> </div>
<br /><br />
<div class="codebox">
<code><br /> # mysql -N < build_import.sql > import_tablespace.sql <br /> # mysql -N < build_discard.sql | mysql demo <br /> <br /> demo]# cp /tmp/*.ibd . <br /> demo]# chown mysql:mysql *.ibd <br /> # systemctl restart mysqld <br /> # mysql demo < import_tablespace.sql <br /> # mysql demo <br /> <br /> mysql> INSERT INTO demotable (id) VALUES (NULL); <br /> Query OK, 1 row affected (0.08 sec) <br /> <br /> mysql> INSERT INTO demotable1 (id) VALUES (NULL); <br /> Query OK, 1 row affected (0.05 sec) <br /> <br /> mysql> INSERT INTO demotable2 (id) VALUES (NULL); <br /> Query OK, 1 row affected (0.09 sec) <br /> <br /> mysql> INSERT INTO demotable3 (id) VALUES (NULL); <br /> ^[[AQuery OK, 1 row affected (0.37 sec) <br /> <br /> mysql> INSERT INTO demotable4 (id) VALUES (NULL); <br /> Query OK, 1 row affected (0.12 sec) </code> <br /><div>
</div>
</div>
<br /><br /> <span class="notranslate"> और इसने काम किया।</span></div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-49660455701073447782019-07-12T21:45:00.001-07:002019-07-12T21:45:25.840-07:00MySQL Binlogs :: कैसे पुनर्प्राप्त करें<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate">इसलिए मुझे एहसास हुआ कि मैंने इस स्थिति के बाद इस बारे में एक पोस्ट नहीं किया था कि हाल ही में आया था।</span> <br /><br /> <span class="notranslate"> यहाँ परिदृश्य है: एक बैकअप आधी रात को लिया गया था, उन्होंने प्रति डेटाबेस MySQL डंप का उपयोग किया।</span> <span class="notranslate"> फिर अगले दिन सुबह दस बजे डेटाबेस क्रैश हो गया।</span> <span class="notranslate">
मुझे बुलाए जाने से पहले घटनाओं की एक श्रृंखला हुई थी, लेकिन वे इसे
डेटाबेस के एक संस्करण तक ले गए थे, जिसमें MyISAM तालिकाओं और तालिकाओं से
गायब IBD फाइलें थीं।</span> <br /><br /> <span class="notranslate"> तो विकल्प 1, बैकअप से बहाल करना हमें आधी रात को मिलेगा और हम घंटों डेटा खो देंगे।</span> <span class="notranslate"> विकल्प 2, हम 1000 की ibd फ़ाइलों को फिर से जोड़ते हैं और सब कुछ रखते हैं।</span> <span class="notranslate"> तब हमारे पास विकल्प 3 था, बैकअप से पुनर्स्थापित करें, फिर हाल के परिवर्तनों के लिए बिनलॉग लागू करें।</span> <br /><br /> <span class="notranslate"> इसे और दिलचस्प बनाने के लिए, उनके पास मेरे द्वारा बताई गई सभी ibd फाइलें नहीं थीं, और मुझे कुछ याद नहीं था।</span> <span class="notranslate"> तो यकीन नहीं है कि यह कैसे संभव था लेकिन विकल्प 2 एक अमान्य विकल्प बन गया।</span> <span class="notranslate"> वे निश्चित रूप से, कम से कम डेटा हानि संभव चाहते थे, इसलिए हम विकल्प 3 के साथ गए।</span> <br /><br /> <span class="notranslate">
इसे सुरक्षित रूप से करने के लिए मैंने पोर्ट 3307 के तहत MySQL का एक और
उदाहरण शुरू किया। इससे मुझे काम करने के लिए एक सुरक्षित जगह मिल गई, जबकि
यातायात ने बंदरगाह 3306 उदाहरण पर MyISAM डेटा तक पहुंच पढ़ी थी।</span> <br /><br /> <span class="notranslate"> एक बार सभी बैकअप डंप फ़ाइलें असम्पीडित और 3307 उदाहरण में आयातित मैं Binlog फ़ाइलों पर ध्यान केंद्रित करने में सक्षम था।</span> <br /><br /> <span class="notranslate"> पहले तो यह अवधारणा वास्तव में जितना कठिन है, उससे कहीं अधिक जोखिम भरा है।</span> <span class="notranslate"> यह वास्तव में बहुत आगे और सरल है।</span> <br /><br /> <span class="notranslate"> इसलिए सबसे पहले आपको अपने बाद का डेटा ढूंढना होगा।</span> <span class="notranslate"> बिनलॉग फाइलों की समीक्षा आपको यह बताती है कि क्या फाइलें प्रासंगिक हैं।</span> <span class="notranslate"> मेरे मामले में, किसी तरह वे बिनलॉग को रीसेट करने में कामयाब रहे, इसलिए 117 फ़ाइल में 2 तारीख सीमाएं थीं।</span> <br /><br /> <span class="notranslate"> पहले बिनलॉग समीक्षा के लिए, निम्न कमांड मानव-पठनीय प्रारूप में डेटा को आउटपुट करता है।</span> <br />
<div class="codebox">
<code>mysqlbinlog
--defaults-file=/root/.my.cnf --base64-output=DECODE-ROWS --verbose
mysql-bin.000117 > review_mysql-bin.000117.sql </code> </div>
<br /> <span class="notranslate"> * नोट ... उपरोक्त कमांड को चलाने में सावधानी बरतें।</span> <span class="notranslate"> ध्यान दें कि मेरे पास फ़ाइल को सीधे उसी स्थान पर डंप करना है जैसे कि बिनलॉग।</span> <span class="notranslate"> इसलिए मान्य करें कि आपका फ़ाइल नाम मान्य है।</span> <span class="notranslate"> यह mysql-bin.000117.sql, इस mysql-bin.000101 .sql से अलग है।</span> <span class="notranslate"> आप अपने बिनलॉग को 2 विकल्प और .sql से पहले एक स्थान के साथ ढीला कर देंगे।</span> <br /><br /> <span class="notranslate"> अब डेटा को बचाने के लिए इसे लागू किया जा सकता है।</span> <span class="notranslate"> चूँकि मेरे पास कई सारे बैनॉगल्स थे, जिससे मैंने एक फाइल बनाई और मैं वैसे भी समय-सीमा की दोबारा जाँच करना चाहता था।</span> <br /><br />
<div class="codebox">
<code><br />
mysqlbinlog --defaults-file=/root/.my.cnf --start-datetime="2019-07-09
00:00:00" --stop-datetime="2019-07-10 00:00:00" mysql-bin.000117 >
binlog_restore.sql <br /> mysqlbinlog --defaults-file=/root/.my.cnf mysql-bin.000118 >> binlog_restore.sql <br /> mysqlbinlog --defaults-file=/root/.my.cnf mysql-bin.000119 >> binlog_restore.sql <br />
mysqlbinlog --defaults-file=/root/.my.cnf --start-datetime="2019-07-10
00:00:00" --stop-datetime="2019-07-10 10:00:00" mysql-bin.000117
>> binlog_restore.sql <br /> mysqlbinlog --defaults-file=/root/.my.cnf --stop-datetime="2019-07-10 10:00:00" mysql-bin.000120 >> binlog_restore.sql <br /> mysqlbinlog --defaults-file=/root/.my.cnf --stop-datetime="2019-07-10 10:00:00" mysql-bin.000121 >> binlog_restore.sql <br /> <br /> mysql --socket=/var/lib/mysql_restore/mysql.sock -e "source /var/lib/mysql/binlog_restore.sql" <br /> </code> </div>
<br /> <span class="notranslate"> अब मैंने दिए गए समय सीमाओं के लिए उन बिनलॉग से सभी डेटा को लागू किया।</span> <span class="notranslate"> क्लाइंट ने सभी डेटा को डबल-चेक किया और यह सब वापस पाकर बहुत खुश था।</span> <br /><br /> <span class="notranslate"> इस स्थिति के लिए कई अलग-अलग विकल्प मौजूद थे, यह क्लाइंट के साथ सबसे अच्छी कसरत करने के लिए हुआ।</span> <br /><br /> <span class="notranslate">
एक बार जब सभी को पुनर्स्थापित किए गए संस्करण पर सभी मान्य थे, तो यह
दोनों डेटाबेसों का एक सरल पड़ाव था, डेटा निर्देशिकाओं को स्थानांतरित कर
दिया (डेटादिर डिफॉल्ट्स को अक्षुण्ण रखना चाहता था), निर्देशिकाओं को केवल
सुरक्षित होने के लिए और MySQL को शुरू करने के लिए चुना।</span> <span class="notranslate"> अब बहाल किया गया उदाहरण 3306 पोर्ट पर था।</span> </div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com1tag:blogger.com,1999:blog-73396883213728795.post-47199321360452852272019-06-17T05:59:00.001-07:002019-06-17T05:59:59.948-07:00MySQL ग्रुप प्रतिकृति<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" trbidi="on">
<span class="notranslate">इसलिए MySQL का समूह प्रतिकृति MySQL 5.7 के साथ सामने आया।</span> <span class="notranslate"> अब यह थोड़ा बाहर हो गया है जबकि लोग इसके बारे में अधिक पूछना शुरू कर रहे हैं।</span> <br /><ul>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhhofc0tiJ-nL-wVCQ-6C18zn1iE2w">https://dev.mysql.com/doc/refman/8.0/en/group-replication.html</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication-deploying-in-single-primary-mode.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhjxD_6oazNhupRZJ_tWcjYNKtHgmA">https://dev.mysql.com/doc/refman/8.0/en/group-replication-deploying-in-single-primary-mode.html</a></span> </li>
</ul>
<span class="notranslate"> नीचे इसको कैसे सेट किया जाए इसका एक उदाहरण है और कुछ दर्द बिंदु उदाहरण हैं जैसे मैंने इसके साथ चारों ओर पोक किया है।</span> <br /> <span class="notranslate"> मैं तीन अलग-अलग सर्वरों का उपयोग कर रहा हूं,</span> <br /><br /> <span class="notranslate"> सर्वर CENTOSA</span> <br /><div class="codebox">
<code><br /> mysql> INSTALL PLUGIN group_replication SONAME 'group_replication.so'; <br /> Query OK, 0 rows affected (0.02 sec) <br /> <br /> vi my.cnf <br /> disabled_storage_engines="MyISAM,BLACKHOLE,FEDERATED,ARCHIVE,MEMORY" <br /> server_id=1 <br /> gtid_mode=ON <br /> enforce_gtid_consistency=ON <br /> binlog_checksum=NONE <br /> <br /> log_bin=binlog <br /> log_slave_updates=ON <br /> binlog_format=ROW <br /> master_info_repository=TABLE <br /> relay_log_info_repository=TABLE <br /> <br /> transaction_write_set_extraction=XXHASH64 <br /> group_replication_group_name="90d8b7c8-5ce1-490e-a448-9c8d176b54a8" <br /> group_replication_start_on_boot=off <br /> group_replication_local_address= "192.168.111.17:33061" <br /> group_replication_group_seeds= "192.168.111.17:33061,192.168.111.89:33061,192.168.111.124:33061" <br /> group_replication_bootstrap_group=off <br /> <br /> mysql> SET SQL_LOG_BIN=0; <br /> mysql> CREATE USER repl@'%' IDENTIFIED BY 'replpassword'; <br /> mysql> GRANT REPLICATION SLAVE ON *.* TO repl@'%'; <br /> mysql> FLUSH PRIVILEGES; <br /> mysql> SET SQL_LOG_BIN=1; <br /> <br /> <br /> CHANGE MASTER TO <br /> MASTER_USER='repl', <br /> MASTER_PASSWORD='replpassword' <br /> FOR CHANNEL 'group_replication_recovery'; <br /> <br /> <br /> mysql> SET GLOBAL group_replication_bootstrap_group=ON; <br /> Query OK, 0 rows affected (0.00 sec) <br /> <br /> <br /> mysql> START GROUP_REPLICATION; <br /> Query OK, 0 rows affected (3.11 sec) <br /> <br /> <br /> mysql> SET GLOBAL group_replication_bootstrap_group=OFF; <br /> Query OK, 0 rows affected (0.00 sec) <br /> <br /> <br /> mysql> SELECT * FROM performance_schema.replication_group_members \G <br /> <br /> *************************** 1. row *************************** <br /> CHANNEL_NAME: group_replication_applier <br /> MEMBER_ID: 1ab30239-5ef6-11e9-9b4a-08002712f4b1 <br /> MEMBER_HOST: centosa <br /> MEMBER_PORT: 3306 <br /> MEMBER_STATE: ONLINE <br /> MEMBER_ROLE: PRIMARY <br /> MEMBER_VERSION: 8.0.15 <br /> </code> </div>
<span class="notranslate"> इसलिए अब हम और सर्वर जोड़ सकते हैं।</span> <br /> <span class="notranslate"> सर्वर CENTOSB</span> <br /><ul>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication-adding-instances.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhgliLXf2yejt6td6iS9qKt0U9d-fw" target="_blank">https://dev.mysql.com/doc/refman/8.0/en/group-replication-adding-instances.html</a></span> </li>
</ul>
<br /><div class="codebox">
<code>vi my.cnf <br /> disabled_storage_engines="MyISAM,BLACKHOLE,FEDERATED,ARCHIVE,MEMORY" <br /> server_id=2 <br /> gtid_mode=ON <br /> enforce_gtid_consistency=ON <br /> binlog_checksum=NONE <br /> <br /> log_bin=binlog <br /> log_slave_updates=ON <br /> binlog_format=ROW <br /> master_info_repository=TABLE <br /> relay_log_info_repository=TABLE <br /> <br /> <br /> transaction_write_set_extraction=XXHASH64 <br /> group_replication_group_name="90d8b7c8-5ce1-490e-a448-9c8d176b54a8" <br /> group_replication_start_on_boot=off <br /> group_replication_local_address= "192.168.111.89:33061" <br /> group_replication_group_seeds= "192.168.111.17:33061,192.168.111.89:33061,192.168.111.124:33061" <br /> group_replication_bootstrap_group=off <br /> <br /> mysql> CHANGE MASTER TO <br /> MASTER_USER='repl', <br /> MASTER_PASSWORD='replpassword' <br /> FOR CHANNEL 'group_replication_recovery'; <br /> Query OK, 0 rows affected, 2 warnings (0.02 sec) <br /> <br /> mysql> CHANGE MASTER TO GET_MASTER_PUBLIC_KEY=1; <br /> Query OK, 0 rows affected (0.02 sec) <br /> <br /> mysql> START GROUP_REPLICATION; <br /> Query OK, 0 rows affected (4.03 sec) <br /> <br /> mysql> SELECT * FROM performance_schema.replication_group_members; <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | group_replication_applier | 1ab30239-5ef6-11e9-9b4a-08002712f4b1 | centosa | 3306 | ONLINE | PRIMARY | 8.0.15 | <br /> | group_replication_applier | 572ca2fa-5eff-11e9-8df9-08002712f4b1 | centosb | 3306 | RECOVERING | SECONDARY | 8.0.15 | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> 2 rows in set (0.00 sec) </code> </div>
<br /><br /> <span class="notranslate"> सर्वर CENTOSC</span> <br /><ul>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication-adding-instances.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhgliLXf2yejt6td6iS9qKt0U9d-fw" target="_blank">https://dev.mysql.com/doc/refman/8.0/en/group-replication-adding-instances.html</a></span> </li>
</ul>
<br /><div class="codebox">
<code>vi my.cnf <br /> disabled_storage_engines="MyISAM,BLACKHOLE,FEDERATED,ARCHIVE,MEMORY" <br /> server_id=3 <br /> gtid_mode=ON <br /> enforce_gtid_consistency=ON <br /> binlog_checksum=NONE <br /> log_bin=binlog <br /> log_slave_updates=ON <br /> binlog_format=ROW <br /> master_info_repository=TABLE <br /> relay_log_info_repository=TABLE <br /> <br /> transaction_write_set_extraction=XXHASH64 <br /> group_replication_group_name="90d8b7c8-5ce1-490e-a448-9c8d176b54a8" <br /> group_replication_start_on_boot=off <br /> group_replication_local_address= "192.168.111.124:33061" <br /> group_replication_group_seeds= "192.168.111.17:33061,192.168.111.89:33061,192.168.111.124:33061" <br /> group_replication_bootstrap_group=off <br /> <br /> mysql> CHANGE MASTER TO <br /> -> MASTER_USER='repl', <br /> -> MASTER_PASSWORD='replpassword' <br /> -> FOR CHANNEL 'group_replication_recovery'; <br /> Query OK, 0 rows affected, 2 warnings (0.02 sec) <br /> <br /> mysql> CHANGE MASTER TO GET_MASTER_PUBLIC_KEY=1; <br /> Query OK, 0 rows affected (0.02 sec) <br /> <br /> mysql> START GROUP_REPLICATION; <br /> Query OK, 0 rows affected (3.58 sec) <br /> mysql> SELECT * FROM performance_schema.replication_group_members \G <br /> *************************** 1. row *************************** <br /> CHANNEL_NAME: group_replication_applier <br /> MEMBER_ID: 1ab30239-5ef6-11e9-9b4a-08002712f4b1 <br /> MEMBER_HOST: centosa <br /> MEMBER_PORT: 3306 <br /> MEMBER_STATE: ONLINE <br /> MEMBER_ROLE: PRIMARY <br /> MEMBER_VERSION: 8.0.15 <br /> <br /> *************************** 2. row *************************** <br /> CHANNEL_NAME: group_replication_applier <br /> MEMBER_ID: 572ca2fa-5eff-11e9-8df9-08002712f4b1 <br /> MEMBER_HOST: centosb <br /> MEMBER_PORT: 3306 <br /> MEMBER_STATE: ONLINE <br /> MEMBER_ROLE: SECONDARY <br /> MEMBER_VERSION: 8.0.15 <br /> <br /> *************************** 3. row *************************** <br /> CHANNEL_NAME: group_replication_applier <br /> MEMBER_ID: c5f3d1d2-8dd8-11e9-858d-08002773d1b6 <br /> MEMBER_HOST: centosc <br /> MEMBER_PORT: 3306 <br /> MEMBER_STATE: ONLINE <br /> MEMBER_ROLE: SECONDARY <br /> MEMBER_VERSION: 8.0.15 <br /> 3 rows in set (0.00 sec) </code> </div>
<br /><br /> <span class="notranslate"> तो यह सब बहुत अच्छा है, लेकिन इसका मतलब यह नहीं है कि वे ऑनलाइन जाते हैं, वे अक्सर वसूली मोड में बैठ सकते हैं।</span> <br /> <span class="notranslate"> मैंने देखा है कि यह MySQL दुर्घटनाओं के साथ अभी तक इसे स्थिर रखने की आवश्यकता है।</span> <br /><div class="codebox">
<code>mysql>
create database testcentosb;<br> ERROR 1290 (HY000): The MySQL
server is running with the --super-read-only option so it cannot execute
this statement<br></code> </div>
<span class="notranslate"> साइड नोट उन कारकों में से कुछ को संबोधित करने के लिए -</span> <br /><div class="codebox">
<code>mysql> START GROUP_REPLICATION; <br /> ERROR 3094 (HY000): The START GROUP_REPLICATION command failed as the applier module failed to start. <br /> <br /> mysql> reset slave all; <br /> Query OK, 0 rows affected (0.03 sec) <br /> </code> </div>
<span class="notranslate"> - इसके बाद चेंज मास्टर कमांड से शुरुआत करें</span> <br /><div class="codebox">
<code>mysql> START GROUP_REPLICATION; <br />
ERROR 3092 (HY000): The server is not configured properly to be an
active member of the group. Please see more details on error log. <br /> <br />
[ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS]
Error on opening a connection to 192.168.111.17:33061 on local port:
33061.' <br /> [ERROR] [MY-011526] [Repl] Plugin group_replication
reported: 'This member has more executed transactions than those present
in the group. Local transactions:
c5f3d1d2-8dd8-11e9-858d-08002773d1b6:1-4 > <br /> [ERROR] [MY-011522]
[Repl] Plugin group_replication reported: 'The member contains
transactions not present in the group. The member will now exit the
group.' </code> </div>
<br /> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://ronniethedba.wordpress.com/2017/04/22/this-member-has-more-executed-transactions-than-those-present-in-the-group/&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhgDC9D_bcZztwCceBjxDbsdRhEjnw" target="_blank">https://ronniethedba.wordpress.com/2017/04/22/this-member-has-more-executed-transactions-than-those-present-in-the-group/</a></span> </div>
<br /><br />
<div class="codebox">
<code>[ERROR]
[MY-011620] [Repl] Plugin group_replication reported: 'Fatal error
during the recovery process of Group Replication. The server will leave
the group.' <br /> [ERROR] [MY-013173] [Repl] Plugin group_replication
reported: 'The plugin encountered a critical error and will abort: Fatal
error during execution of Group Replication' <br /> <br /> SELECT * FROM performance_schema.replication_connection_status\G</code> </div>
<br /><br /> <span class="notranslate"> मेरे विचार...</span> <br /> <span class="notranslate"> ध्यान रखें कि समूह प्रतिकृति एकल प्राथमिक मोड या बहु-नोड में स्थापित की जा सकती है</span> <br />
<div class="codebox">
<code>mysql> select @@group_replication_single_primary_mode\G <br /> *************************** 1. row *************************** <br /> @@group_replication_single_primary_mode: 1 <br /> <br /> mysql> create database testcentosb; <br /> ERROR 1290 (HY000): The MySQL server is running with the --super-read-only option so it cannot execute this statement </code> </div>
<span class="notranslate"> यदि आप कोई भी प्राथमिक नोड नहीं लिखते हैं तो आपको निश्चित रूप से एक त्रुटि मिलेगी।</span> <br />
<div class="codebox">
<div class="p1">
<span class="s1"><br /></span> </div>
<br /><div class="p1">
<span class="notranslate"> <span class="s1">समूह-प्रतिकृति-एकल-प्राथमिक-मोड = बंद <- cnf फ़ाइलों में जोड़ा गया।</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">mysql> SELECT * FROM performance_schema.replication_group_members;</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+
--------------------------- + --------------------- ----------------- +
------------- + ------------- + ---- ---------- + ------------- +
---------------- +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">चैनल का नाम</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">सदस्य आईडी</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">Cross.tv_HOST |</span></span> <span class="notranslate"> <span class="s1">Cross.tv_PORT |</span></span> <span class="notranslate"> <span class="s1">Cross.tv_STATE |</span></span> <span class="notranslate"> <span class="s1">Cross.tv_ROLE |</span></span> <span class="notranslate"> <span class="s1">Cross.tv_VERSION |</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+
--------------------------- + --------------------- ----------------- +
------------- + ------------- + ---- ---------- + ------------- +
---------------- +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">group_replication_applier |</span></span> <span class="notranslate"> <span class="s1">1ab30239-5ef6-11e9-9b4a-08002712f4b1 |</span></span> <span class="notranslate"> <span class="s1">centosa</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">3306 |</span></span> <span class="notranslate"> <span class="s1">ठीक हो</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">प्राथमिक</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">8.0.15</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">group_replication_applier |</span></span> <span class="notranslate"> <span class="s1">572ca2fa-5eff-11e9-8df9-08002712f4b1 |</span></span> <span class="notranslate"> <span class="s1">centosb</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">3306 |</span></span> <span class="notranslate"> <span class="s1">ऑनलाइन</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">प्राथमिक</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">8.0.15</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">group_replication_applier |</span></span> <span class="notranslate"> <span class="s1">c5f3d1d2-8dd8-11e9-858d-08002773d1b6 |</span></span> <span class="notranslate"> <span class="s1">centosc</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">3306 |</span></span> <span class="notranslate"> <span class="s1">ठीक हो</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">प्राथमिक</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">8.0.15</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+
--------------------------- + --------------------- ----------------- +
------------- + ------------- + ---- ---------- + ------------- +
---------------- +</span></span> </div>
<br /><div class="p1">
<span class="notranslate"> <span class="s1">सेट में 3 पंक्तियाँ (0.00 सेकंड)</span></span> </div>
</div>
<br /><br /> <span class="notranslate">
हालाँकि यह तब है जब आप अपने ट्रैफिक को संभालने के लिए अपने ट्रैफिक को
संभालने के लिए कीपलाइज्ड, माईएसक्यूएल राउटर, प्रोक्सीएसक्यूएल आदि का
इस्तेमाल करते हैं।</span> <span class="notranslate"> हम नीचे से यह देख सकते हैं कि जब मैं प्राथमिक रुका था, तो वह तुरंत ही विफल हो गया।</span> <br /><br />
<div class="codebox">
<code>mysql> SELECT * FROM performance_schema.replication_group_members ; <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | group_replication_applier | 1ab30239-5ef6-11e9-9b4a-08002712f4b1 | centosa | 3306 | ONLINE | PRIMARY | 8.0.15 | <br /> | group_replication_applier | 572ca2fa-5eff-11e9-8df9-08002712f4b1 | centosb | 3306 | ONLINE | SECONDARY | 8.0.15 | <br /> | group_replication_applier | c5f3d1d2-8dd8-11e9-858d-08002773d1b6 | centosc | 3306 | ONLINE | SECONDARY | 8.0.15 | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> 3 rows in set (0.00 sec) <br /> <br /> [root@centosa]# systemctl stop mysqld <br /> <br /> mysql> SELECT * FROM performance_schema.replication_group_members ; <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | group_replication_applier | 572ca2fa-5eff-11e9-8df9-08002712f4b1 | centosb | 3306 | ONLINE | PRIMARY | 8.0.15 | <br /> | group_replication_applier | c5f3d1d2-8dd8-11e9-858d-08002773d1b6 | centosc | 3306 | ONLINE | SECONDARY | 8.0.15 | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> 2 rows in set (0.00 sec) <br /> <br /> [root@centosa]# systemctl start mysqld <br /> [root@centosa]# mysql <br /> mysql> START GROUP_REPLICATION; <br /> Query OK, 0 rows affected (3.34 sec) <br /> <br /> mysql> SELECT * FROM performance_schema.replication_group_members ; <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | group_replication_applier | 1ab30239-5ef6-11e9-9b4a-08002712f4b1 | centosa | 3306 | RECOVERING | SECONDARY | 8.0.15 | <br /> | group_replication_applier | 572ca2fa-5eff-11e9-8df9-08002712f4b1 | centosb | 3306 | ONLINE | PRIMARY | 8.0.15 | <br /> | group_replication_applier | c5f3d1d2-8dd8-11e9-858d-08002773d1b6 | centosc | 3306 | ONLINE | SECONDARY | 8.0.15 | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> 3 rows in set (0.00 sec) </code> </div>
<br /><br /> <span class="notranslate"> अब रिकवरी अभी भी एक मुद्दा था, क्योंकि यह केवल वापस शामिल नहीं होगा।</span> <span class="notranslate"> फिर से सभी खातों और चरणों की समीक्षा करनी थी, लेकिन मैंने इसे अंततः वापस ले लिया।</span> <br /><br />
<div class="codebox">
<code>mysql> SELECT * FROM performance_schema.replication_group_members; <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> | group_replication_applier | 1ab30239-5ef6-11e9-9b4a-08002712f4b1 | centosa | 3306 | ONLINE | SECONDARY | 8.0.15 | <br /> | group_replication_applier | 572ca2fa-5eff-11e9-8df9-08002712f4b1 | centosb | 3306 | ONLINE | PRIMARY | 8.0.15 | <br /> | group_replication_applier | c5f3d1d2-8dd8-11e9-858d-08002773d1b6 | centosc | 3306 | ONLINE | SECONDARY | 8.0.15 | <br />
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
<br /> 3 rows in set (0.00 sec) </code> </div>
<br /><br /> <span class="notranslate">
मुझे इसके साथ और अधिक परीक्षण करने की आवश्यकता है क्योंकि मैं अभी तक
100% बेचा नहीं गया हूं क्योंकि मुझे इसकी आवश्यकता है क्योंकि मैं गैलेरा
प्रतिकृति की ओर झुक रहा हूं।</span> <br /><br /> <span class="notranslate"> ब्याज का URLS</span> <br /><br /><br />
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhhofc0tiJ-nL-wVCQ-6C18zn1iE2w">https://dev.mysql.com/doc/refman/8.0/en/group-replication.html</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication-deploying-in-single-primary-mode.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhjxD_6oazNhupRZJ_tWcjYNKtHgmA">https://dev.mysql.com/doc/refman/8.0/en/group-replication-deploying-in-single-primary-mode.html</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=http://datacharmer.blogspot.com/2017/01/mysql-group-replication-vs-multi-source.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhg8hzIidUDXhb1JJR2o4oR5uqNkUA">http://datacharmer.blogspot.com/2017/01/mysql-group-replication-vs-multi-source.html</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication-launching.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhjOw-RDq5wzRxybA-RxKAlzPyOlxw">https://dev.mysql.com/doc/refman/8.0/en/group-replication-launching.html</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication-configuring-instances.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhiJqLMdV7_II5gsJ8P0AxMXOEM7_A">https://dev.mysql.com/doc/refman/8.0/en/group-replication-configuring-instances.html</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication-adding-instances.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhgliLXf2yejt6td6iS9qKt0U9d-fw">https://dev.mysql.com/doc/refman/8.0/en/group-replication-adding-instances.html</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://ronniethedba.wordpress.com/2017/04/22/how-to-setup-mysql-group-replication/&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhixUSDzl6rmMekuaApMm9fCnOdANg">https://ronniethedba.wordpress.com/2017/04/22/how-to-setup-mysql-group-replication/</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://www.digitalocean.com/community/tutorials/how-to-configure-mysql-group-replication-on-ubuntu-16-04&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhhuJ4BZ-zufqG61yW80xuJVn72crw">https://www.digitalocean.com/community/tutorials/how-to-configure-mysql-group-replication-on-ubuntu-16-04</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/group-replication-options.html&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhgwdpMqhtvCWY3TyfwXf0gRHvrUww#sysvar_group_replication_group_seeds">https://dev.mysql.com/doc/refman/8.0/en/group-replication-options.html#sysvar_group_replication_group_seeds</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://bugs.mysql.com/bug.php%3Fid%3D90534&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhg4RgjQqJ1eHMcwDkBuX-zPjp8GPQ" target="_blank">https://bugs.mysql.com/bug.php?id=90534</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://www.percona.com/blog/2017/02/24/battle-for-synchronous-replication-in-mysql-galera-vs-group-replication/&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhg2TwcAg-5nTrOJJCjIZ4evmeDncg">https://www.percona.com/blog/2017/02/24/battle-for-synchronous-replication-in-mysql-galera-vs-group-replication/</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://lefred.be/content/mysql-group-replication-is-sweet-but-can-be-sour-if-you-misunderstand-it/&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhhyW5u1sdJHZ0wKLY93adCxYnCPtQ">https://lefred.be/content/mysql-group-replication-is-sweet-but-can-be-sour-if-you-misunderstand-it/</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://www.youtube.com/watch%3Fv%3DIfZK-Up03Mw&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhh3EuoJHa_JVYarjSFj5oQcLj3CVQ">https://www.youtube.com/watch?v=IfZK-Up03Mw</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://mysqlhighavailability.com/mysql-group-replication-a-quick-start-guide/&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhhesUDcODmUB-ftdeaUBBSDBOJc4Q">https://mysqlhighavailability.com/mysql-group-replication-a-quick-start-guide/</a></span></li>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-16574941128326632132019-06-03T11:10:00.001-07:002019-06-03T11:10:56.174-07:00Max_connections 214 4.15.0-46-जेनेरिक # 49-उबंटू<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate">तो आपके my.cnf फ़ाइल में 214 तक के मान से सेट होने वाले अधिकतम_कनेक्ट का मुद्दा उबंटू पर थोड़ी देर के लिए रहा है।</span> <br /><br /> <span class="notranslate"> एक उदाहरण के रूप में, यह 2015 में यहां वापस नोट किया गया था</span> <br /><br />
<ul>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=https://codepoets.co.uk/2015/mysql-max_connections-stuck-on-214/&xid=17259,15700021,15700186,15700191,15700256,15700259&usg=ALkJrhhY_bFo4N4bpCukKX4u7ZOCh5pMPg">https://codepoets.co.uk/2015/mysql-max_connections-stuck-on-214/</a></span> </li>
</ul>
<br /><br /> <span class="notranslate"> मैं हाल ही में फिर से इसमें भाग गया और निम्न चरणों के साथ हल किया गया।</span> <br /><br /><br />
<div class="codebox">
<code># cp /lib/systemd/system/mysql.service /etc/systemd/system/ <br /> # cd /etc/systemd/system/ <br /> # vi mysql.service <br /> <br /> LimitNOFILE=infinity <br /> LimitMEMLOCK=infinity <br /> <br /> # systemctl daemon-reload <br /> # systemctl restart mysql </code> </div>
<br /><br /> <span class="notranslate"> एक बार उन चरणों को पूरा करने के बाद MySQL कनेक्शन my.cnf फ़ाइल में दिए गए पैरामीटर पर स्थिर थे।</span></div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-75215546048004653152019-04-14T15:17:00.001-07:002019-04-14T15:17:35.893-07:00सरल KeepaliveD की स्थापना की<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate">इसलिए अभी काफी समय से आसपास रखा गया है .... हालांकि यह अभी भी कई लोगों के लिए एक रहस्य है।</span> <br /> <span class="notranslate"> तो यह एक बहुत ही सरल उदाहरण है कि MySQL के साथ कैसे काम किया जा सकता है।</span> <span class="notranslate"> उम्मीद है, यह सवालों के साथ उन लोगों की मदद कर सकता है।</span> <br /><br /> <span class="notranslate"> हम दास स्थापित करने के लिए एक सरल गुरु होगा।</span> <span class="notranslate"> अर्थ .. हम एक को लिखते हैं जब तक कि हम किसी घटना के लिए दूसरे को विफल नहीं करते।</span> <br /><br /> <span class="notranslate"> पहली - स्थापित रखें</span> <br /><br /><br />
<div class="p1">
<span class="notranslate"> <span class="s1"># यम खोज को रखा गया</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">Keepaliven .x86_64: लोड बैलेंसर और उच्च उपलब्धता सेवा</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">नाम और सारांश <b>केवल</b> मेल खाते <b>हैं</b> , हर चीज के लिए "सभी खोजें" का उपयोग करें।</span></span> </div>
<div class="p1">
</div>
<div class="p1">
<span class="notranslate"> <span class="s1"># yum -y स्थापित रखें</span></span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1"><span style="font-family: times; font-size: x-small;">अब आपके पास एक config फाइल होनी चाहिए</span></span></span> </div>
<div class="p1">
<span class="s1"><span style="font-family: times; font-size: x-small;"><br /></span></span> </div>
<div class="p1">
</div>
<div class="p1">
<span class="notranslate"> <span class="s1"># ls -ltr /etc/keepalived/keepalived.conf</span></span> <span class="s1"> </span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1"><span class="Apple-converted-space"><span style="font-family: times; font-size: x-small;">ऑरिजनल रखें क्योंकि आप हमेशा बैकअप लेते हैं ... सही है ...।</span></span></span></span> </div>
<div class="p1">
</div>
<div class="p1">
<span class="notranslate"> <span class="s1"># cp /etc/keepalived/keepalived.conf /etc/keepalived/keepalived.conf.orig</span></span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span style="font-family: "times"; font-size: x-small;">तो आपको एक ipaddress पता लगाने की आवश्यकता है जिसे आप अपने वर्चुअल आईपी के लिए उपयोग कर सकते हैं।</span></span> <span class="notranslate"> <span style="font-family: "times"; font-size: x-small;">मैंने इस उदाहरण के लिए 192.168.0.123 उठाया।</span></span> </div>
<div class="p1">
<br /></div>
<div class="p1">
<span class="notranslate"> <span style="font-family: "times"; font-size: x-small;">इसके बाद, हम अपनी नई कॉन्फिगर फाइल के लिए उपयोग की जाने वाली स्क्रिप्ट सेट करेंगे।</span></span> </div>
<div class="p1">
<span style="font-family: "times"; font-size: x-small;"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span style="font-family: "times"; font-size: x-small;">कुछ बातें मैंने यहाँ कीं ।।</span></span> </div>
<div class="p1">
<span class="notranslate"> <span style="font-family: "times"; font-size: x-small;">मैं रखने के लिए एक .cnf फ़ाइल को छोड़ दिया और एक लॉग इन / / / सब रखा।</span></span> </div>
<div class="p1">
<span class="notranslate"> <span style="font-family: "times"; font-size: x-small;">यह उदाहरण के लिए सरल बनाता है ताकि आप ऐसा कर सकें या अपनी स्वयं की cnf फ़ाइलों का उपयोग कर सकें।</span></span> </div>
<div class="p1">
<span style="font-family: "times"; font-size: x-small;"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span style="font-family: "times"; font-size: x-small;">पटकथा:</span></span> <br /> <span style="font-family: "times"; font-size: x-small;"><br /></span> <div class="p1">
<span class="notranslate"> <span class="s1">cat /etc/keepalived/keepalived_check.sh</span></span> <span class="s1"> </span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">#! / bin / bash</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1"># मॉनिटर mysql स्टेटस</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1"># अगर यह नोड mysql मर चुका है</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1"># और इसका गुलाम जिंदा है, तो इसकी रखवाली बंद करो।</span></span> <span class="notranslate"> <span class="s1">अन्य नोड आईपी को बांध देगा।</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">निर्यात MYSQL_HOME = / etc / रखवाली /</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">निर्यात पथ = $ MYSQL_HOME / बिन: $ पथ</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">mysql = "/ usr / bin / mysql"</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">mysqladmin = "/ usr / bin / mysqladmin"</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">delay_file = "$ MYSQL_HOME / slave_delay_second.log"</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">slave_host = $ 1</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">ALIVE = $ ($ mysqladmin --defaults-file = $ MYSQL_HOME / .my.localhost.nf</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">पिंग |</span></span> <span class="notranslate"> <span class="s1">grep जिंदा |</span></span> <span class="notranslate"> <span class="s1">wc -l);</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">REMOTEALIVE = $ ($ mysqladmin --defaults-file = $ MYSQL_HOME / .my.remotehost.cnf</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">पिंग |</span></span> <span class="notranslate"> <span class="s1">grep जिंदा |</span></span> <span class="notranslate"> <span class="s1">wc -l);</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">अगर [[$ ALIVE-1]]</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">फिर</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">#echo "MySQL नीचे है"</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">अगर [[$ REMOTEALIVE -eq 1]]</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">फिर</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">#</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">गूंज "चुप रहो जिंदा रहो"</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">systemctl रोक रखना</span></span> <span class="s1"> </span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">#</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">गूंज "रखवाले रोक"</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">फाई</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">#अन्य</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1"># माय "MySQL ऊपर है"</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">#दिनांक</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">फाई</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
</div>
<div class="p1">
<span class="notranslate"> <span class="s1">बाहर निकलें 0 # किया गया</span></span> </div>
</div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span style="font-family: "times"; font-size: x-small;">नई कॉन्फ़िग फ़ाइल</span></span> <br /> <span style="font-family: "times"; font-size: x-small;"><br /></span> <div class="p1">
<span class="notranslate"> <span class="s1">cat /etc/keepalived/keepalived.conf</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">Global_defs {</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">सूचना_मेल {</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">anothermysqldba@gmail.com</span></span> <span class="s1"> </span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">}</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">notification_email_from othermysqldba@gmail.com</span></span> <span class="s1"> </span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">smtp_server लोकलहोस्ट</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">smtp_connect_timeout 30</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">}</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">vrrp_script check_mysql {</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">स्क्रिप्ट "/etc/keepalived/keepalived_check.sh"</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">अंतराल २</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">वजन 2</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">}</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">vrrp_instance VI_1 {</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">राज्य मास्टर</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">इंटरफ़ेस enp0s8</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1"># <--- व्हाट्स इंटरफेम नॉमल योर रियल आईपी / sbin / ifconfig</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1"># आईपी लिंक शो के साथ मिला</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">virtual_router_id 51</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">प्राथमिकता १०१</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">advert_int 1</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">nopreempt</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1"># केवल उच्च प्राथमिकता नोड पर आवश्यक है</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">प्रमाणीकरण {</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">ऑरल_टाइप PASS</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">11_11 पर</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">}</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">track_script {</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">check_mysql</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">}</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">virtual_ipaddress {</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">192.168.0.123</span></span> <span class="s1"> </span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">}</span></span> </div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"></span><br /></div>
<br /><div class="p1">
<span class="notranslate"> <span class="s1">}</span></span> </div>
</div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1"><span style="font-family: times; font-size: x-small;">यह सब बहुत अच्छा है लेकिन क्या यह काम करता है ...।</span></span></span> </div>
<div class="p1">
<span class="s1"><span style="font-family: times; font-size: x-small;"><br /></span></span> <span class="notranslate"> <span class="s1"><span style="font-family: times; font-size: x-small;">तो हमारे पास 2 होस्ट हैं</span></span></span> <br /> <span class="s1"><span style="font-family: times; font-size: x-small;"><br /></span></span> <div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा रखा हुआ] # होस्टनाम</span></span> </div>
<br /><div class="p1">
<span class="notranslate"> <span class="s1">centosa</span></span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[root @ centosb Keepalived] # hostname</span></span> </div>
<div class="p1">
</div>
<div class="p1">
<span class="notranslate"> <span class="s1">centosb</span></span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1"><span style="font-family: times; font-size: x-small;">रखना शुरू कर दिया</span></span></span> </div>
<div class="p1">
<br /></div>
<div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा को रखा गया है] # सिस्टमटाल की स्थिति को बनाए रखा गया है</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">● Keepalived.service - LVS और VRRP उच्च उपलब्धता मॉनिटर</span></span> </div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">भरी हुई: भरी हुई (/usr/lib/systemd/system/keepalived.service; विकलांग; वेंडर प्रेसर: अक्षम)</span></span> </div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">सक्रिय: निष्क्रिय (मृत)</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा को रखा गया] # सिस्टेक्टल को फिर से रखा गया</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा को रखा गया है] # सिस्टमटाल की स्थिति को बनाए रखा गया है</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s2"><b>●</b></span> <span class="s1">Keepalived.service - LVS और VRRP उच्च उपलब्धता मॉनिटर</span></span> </div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">भरी हुई: भरी हुई (/usr/lib/systemd/system/keepalived.service; विकलांग; वेंडर प्रेसर: अक्षम)</span></span> </div>
<div class="p1">
</div>
<div class="p2">
<span class="s3"> </span> <span class="notranslate"> <span class="s3">सक्रिय:</span> <span class="s1"><b>सक्रिय (चल रहा है)</b></span></span> </div>
<span class="s1"><span style="font-family: times; font-size: x-small;"><br /></span></span> </div>
<div class="p1">
<div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा को रखा गया] # ssh 192.168.0.123 'hostname'</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">root@192.168.0.123 का पासवर्ड:</span></span> <span class="s1"> </span> </div>
<br /><div class="p1">
<span class="notranslate"> <span class="s1">centosa</span></span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1"><span style="font-family: times; font-size: x-small;">कनेक्शन कार्य पहले से ही साबित करें</span></span></span> </div>
<div class="p1">
<span class="s1"><span style="font-family: times; font-size: x-small;"><br /></span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा रखा हुआ] # mysql --defaults-file = .my.remotehost.cnf --host = 192.168.0.101</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">-host "select @@ hostname"</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">@@ होस्टनाम |</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">centosb</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा को रखा गया] # mysql --defaults-file = .my.remotehost.cnf --host = 192.168.0.102</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">-host "select @@ hostname"</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">@@ होस्टनाम |</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">centosa</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> </div>
<div class="p1">
</div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1"><span style="font-family: times; font-size: x-small;">डबल चेक करें कि यह चल रहा है ...</span></span></span> </div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[root @ centosa keepalived] # सिस्टेक्स्टल स्टेटस कीपेल्ड |</span></span> <span class="notranslate"> <span class="s1">grep सक्रिय</span></span> </div>
<div class="p1">
</div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">सक्रिय:</span> <span class="s2"><b>सक्रिय</b></span></span> <span class="s1"> </span></div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[root @ centosb Keepalived] # systemctl स्टेटस को सुरक्षित रखा गया |</span></span> <span class="notranslate"> <span class="s1">grep सक्रिय</span></span> </div>
<div class="p1">
</div>
<div class="p1">
<span class="s1"> </span> <span class="notranslate"> <span class="s1">सक्रिय:</span> <span class="s2"><b>सक्रिय</b></span></span> <span class="s1"> </span></div>
<div class="p1">
<span class="s1"><br /></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1"><span style="font-family: times; font-size: x-small;">वर्तमान वीआईपी का परीक्षण करें ... mysql को रोकें और वही वीआईपी परिवर्तन होस्ट देखें ...</span></span></span> </div>
<div class="p1">
<span class="s1"><span style="font-family: times; font-size: x-small;"><br /></span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा को रखा गया] # mysql --defaults-file = .my.remotehost.cnf --host = 192.168.0.123</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">-host "select @@ hostname"</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">@@ होस्टनाम |</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">centosa</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा को रखा गया] # सिस्टेक्स्ल ने मायस्कल्ड को रोक दिया</span></span> <span class="s1"> </span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">[रूट @ सेंटोसा को रखा गया] # mysql --defaults-file = .my.remotehost.cnf --host = 192.168.0.123</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">-host "select @@ hostname"</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">@@ होस्टनाम |</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="notranslate"> <span class="s1">|</span></span> <span class="notranslate"> <span class="s1">centosb</span></span> <span class="s1"> </span> <span class="notranslate"> <span class="s1">|</span></span> </div>
<div class="p1">
</div>
<div class="p1">
<span class="notranslate"> <span class="s1">+ ------------ +</span></span> </div>
<div class="p1">
<span class="s1"><br /></span></div>
</div>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-74569506756706492212019-04-09T13:36:00.001-07:002019-04-09T13:36:21.810-07:00कभी-कभी धीमा डेटाबेस .. डेटाबेस नहीं है ...<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate"><span style="background-color: white; color: #455464; font-family: SourceSansPro, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;">इसलिए मुझे हाल ही में यह देखने के लिए कहा गया था कि अपडेटेड MySQL 5, .6 पुराने 5.5 की तुलना में धीमा क्यों था</span></span> <br /> <span style="background-color: white; color: #455464; font-family: SourceSansPro, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;"><br /></span> <span class="notranslate"> <span style="background-color: white; color: #455464; font-family: SourceSansPro, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;">इसलिए मैंने मानक चर और कैश और इत्यादि को देखते हुए चारों ओर से शुरुआत की</span></span> <br /> <span style="background-color: white; color: #455464; font-family: SourceSansPro, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;"><br /></span> <span class="notranslate"> <span style="background-color: white; color: #455464; font-family: SourceSansPro, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;">परीक्षण मामला एक साधारण दिनचर्या थी जो 5.5 की तुलना में 5.6 पर चलने के लिए लगभग दोगुनी थी।</span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="background-color: white; font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="background-color: white; font-size: 12px;">मिश्रण में जोड़ने के लिए .. 5.6 संस्करण में Innodb_buffer_pool_size और कुल मिलाकर अधिक राम दोगुना था।</span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="background-color: white; font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="background-color: white; font-size: 12px;">इसलिए मैंने MySQLslap के साथ कुछ परीक्षण शुरू किए ...</span></span></span> <br /><br style="background-color: white; box-sizing: border-box; color: #455464; font-family: SourceSansPro, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;" /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">मैसकल्सलैप परीक्षण इसे 5.6 पर धीमा दिखाता है</span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">5.6:</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">mysqlslap
--defaults-file = ./। my.cnf --concurrency = 150 - मान = 130 -query = /
test.sql --create-schema = applicationdata --verbose</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">बेंचमार्क</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">सभी प्रश्नों को चलाने के लिए सेकंड की औसत संख्या: 0.028 सेकंड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">सभी प्रश्नों को चलाने के लिए सेकंड की न्यूनतम संख्या: 0.019 सेकंड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">सभी प्रश्नों को चलाने के लिए अधिकतम सेकंड: 0.071 सेकंड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">प्रश्नों को चलाने वाले ग्राहकों की संख्या: 150</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">प्रति ग्राहक औसत प्रश्नों की संख्या: 1</span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">5.5:</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">mysqlslap
--defaults-file = ./। my.cnf --concurrency = 150 - मान = 130 --query = /
test.sql --create-schema = applicationdata --verbose</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">बेंचमार्क</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">सभी प्रश्नों को चलाने के लिए सेकंड की औसत संख्या: 0.015 सेकंड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">सभी प्रश्नों को चलाने के लिए न्यूनतम सेकंड: 0.011 सेकंड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">सभी प्रश्नों को चलाने के लिए अधिकतम सेकंड: 0.024 सेकंड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">प्रश्नों को चलाने वाले ग्राहकों की संख्या: 150</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">प्रति ग्राहक औसत प्रश्नों की संख्या: 1</span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">यह सब सार्वजनिक बेंचमार्क के खिलाफ जाता है</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><a href="https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=auto&sp=nmt4&tl=hi&u=http://dimitrik.free.fr/blog/archives/2013/02/mysql-performance-mysql-56-ga-vs-mysql-55-32cores.html%25C2%25A0&xid=17259,15700021,15700186,15700191,15700253,15700256,15700259&usg=ALkJrhhROvjoS_-cTZ-8yzMlSuzit3xWrg" target="_blank">http://dimitrik.free.fr/blog/archives/2013/02/mysql-performance-mysql-56-ga-vs-mysql-55-32cores.html</a></span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">इसलिए मैंने डिस्क स्तर की जाँच की -</span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">5.6:</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"># dd if = / dev / zero of = test bs = 1048576 count = 2048</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">में 2048 + 0 रिकॉर्ड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">2048 + 0 रिकॉर्ड बनाया</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">2147483648 बाइट्स (2.1 जीबी) की नकल, 25.7401 एस, 83.4 एमबी / एस</span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"># dd if = का परीक्षण = / dev / null bs = 1048576</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">में 2048 + 0 रिकॉर्ड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">2048 + 0 रिकॉर्ड बनाया</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">2147483648 बाइट्स (2.1 जीबी) कॉपी, 29.1527 एस, 73.7 एमबी / एस</span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">5.5:</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"># dd if = / dev / zero of = test bs = 1048576 count = 2048</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">में 2048 + 0 रिकॉर्ड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">2048 + 0 रिकॉर्ड बनाया</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">2147483648 बाइट्स (2.1 जीबी) कॉपी, 19.9214 सेकंड, 108 एमबी / एस</span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"># dd if = का परीक्षण = / dev / null bs = 1048576</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">में 2048 + 0 रिकॉर्ड</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">2048 + 0 रिकॉर्ड बनाया</span></span></span> <br /> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">2147483648 बाइट्स (2.1 जीबी) कॉपी, 20.0243 सेकंड, 107 एमबी / एस</span></span></span> <br /> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;"><br /></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">यहाँ 5.5 के साथ डिस्क MySQL की परवाह किए बिना धीमी है।</span></span></span> <span class="notranslate"> <span style="color: #455464; font-family: SourceSansPro, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 12px;">तो इस मामले में .... डिस्क की गति को ठीक करने के लिए देखो .. MySQL ठीक चल रहा था और होगा।</span></span></span></div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-59307631208222790952018-05-23T17:14:00.002-07:002018-05-23T17:14:16.269-07:00प्रॉक्सी MySQL :: HAproxy || ProxySQL और KeepAlived<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">तो जब आपके MySQL ट्रैफ़िक को रूट करने की बात आती है तो कई विकल्प मौजूद होते हैं।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><br />
<ul style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=http://www.haproxy.org/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhg40NFCw29M1zecEkUmIOKvbackXA" style="color: #888888; text-decoration-line: none;" target="_blank">HAProxy</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://mariadb.com/products/technology/maxscale&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhj75Vj8-AumNQ5A0DAWyo3Sj1Wpxw" style="color: #888888; text-decoration-line: none;" target="_blank">मारिया डीबी मैक्सस्केल</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://www.nginx.com/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhgpsSKez5RoXiqniO9ScsvfMRpX1Q" style="color: #888888; text-decoration-line: none;" target="_blank">nginx</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/mysql-router/8.0/en/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhgwsGFT92-hUXEeVJhqQd1E5RwaUg" style="color: #888888; text-decoration-line: none;" target="_blank">MySQL राउटर</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=http://www.proxysql.com/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhiOj97FJFNyVf5oadYtdRxefpezAg" style="color: #888888; text-decoration-line: none;" target="_blank">ProxySQL</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate">यदि आप चाहते थे तो भी आप <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://launchpad.net/mysql-proxy&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhinaxMvlkQ7qfJuzPv39KJn7K8_Cg" style="color: #888888; text-decoration-line: none;" target="_blank">MySQL प्रॉक्सी</a> प्राप्त कर सकते हैं लेकिन यह ईओएफ है।</span></li>
</ul>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">अब मैंने देखा है कि ग्राहकों के साथ हैरप्रैक्सी अधिक बार उपयोग किया जाता है, यह सेट अप करने के लिए काफी सीधे है।</span> <span class="notranslate">पेरोकोना में दिलचस्पी रखने वालों के लिए एक उदाहरण है:</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://www.percona.com/doc/percona-xtradb-cluster/LATEST/howtos/haproxy.html&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhTBCpIZs2fzFoIDTHthHN1wZHeag" style="color: #888888; text-decoration-line: none;">https://www.percona.com/doc/percona-xtradb-cluster/LATEST/howtos/haproxy.html</a></span></li>
</ul>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">व्यक्तिगत रूप से मुझे ProxySQL पसंद है।</span> <span class="notranslate">पेर्कोनिया के पास भी कुछ ब्लॉग हैं</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/ProxySQL-Configuration&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhj_MdE1UrpgPHBzWJBlZk5TQ39lTw" style="color: #888888; text-decoration-line: none;">https://github.com/sysown/proxysql/wiki/ProxySQL-Configuration</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://www.percona.com/blog/2017/01/19/setup-proxysql-for-high-availability-not-single-point-failure/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhjrM_UMxaWqAXOqK9avsIaIka36A" style="color: #888888; text-decoration-line: none;">https://www.percona.com/blog/2017/01/19/setup-proxysql-for-high-availability-not-single-point-failure/</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://www.percona.com/blog/2017/01/25/proxysql-admin-configuration/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhiXiFkM7bZ0I0KtQFCEXqKCd96Suw" style="color: #888888; text-decoration-line: none;">https://www.percona.com/blog/2017/01/25/proxysql-admin-configuration/</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://www.percona.com/blog/2016/09/15/proxysql-percona-cluster-galera-integration/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhjNjIoTOJwdSzwgvAKR6q2FaaYBDw" style="color: #888888; text-decoration-line: none;">https://www.percona.com/blog/2016/09/15/proxysql-percona-cluster-galera-integration/</a></span></li>
</ul>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">पेर्कोन में प्रॉक्सीएसक्यूएल संस्करण भी उपलब्ध है</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://www.percona.com/downloads/proxysql/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhgWqznUt4Xz19NU2x1-8jJIZzy5Ug" style="color: #888888; text-decoration-line: none;">https://www.percona.com/downloads/proxysql/</a></span></li>
</ul>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">मैं सोच रहा था कि मैं कुछ उदाहरण लिखूंगा लेकिन कुल परकोना ने इसे सब कुछ समझाया है।</span> <span class="notranslate">मैं उन पदों से कुछ भी नहीं लेना चाहता हूं, इसके बजाय इंगित करता हूं कि उन यूआरएल के माध्यम से बहुत अच्छी जानकारी उपलब्ध है।</span> <span class="notranslate">तो जो पहले से लिखा गया है उसे फिर से लिखने की बजाय, मैं रुचि रखने वालों के लिए जानकारी का संग्रह तैयार करूंगा।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">सबसे पहले तुलना करें और खुद को तय करें कि आपको क्या चाहिए और चाहिए।</span> <span class="notranslate">पाठ्यक्रम का निम्नलिखित लिंक ProxySQL की ओर पक्षपातपूर्ण होने जा रहा है लेकिन यह आपको विचार करने के लिए एक समग्र दायरा देता है।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=http://www.proxysql.com/compare&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhiKsTKHsOoxQuJDDJIAjoKFVI7KGg" style="color: #888888; text-decoration-line: none;">http://www.proxysql.com/compare</a></span></li>
</ul>
<div>
<span class="notranslate">यदि आपके पास मास्टर के लिए क्लस्टर या मास्टर है और आपको परवाह नहीं है कि कौन से सर्वर लिखते हैं बनाम पढ़ते हैं, बस जब तक आपके पास कनेक्शन हो;</span><span class="notranslate">तो HAproxy आपके लिए एक सरल तेज़ सेट अप की संभावना है।</span></div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">ProxySQL के साथ बोनस एक भारित फैशन, आसानी से यातायात को सॉर्ट करने की क्षमता है।</span> <span class="notranslate">तो आप लिख सकते हैं कि नोड 1 पर जाएं, और नोड 2 और नोड 3 से खींचें का चयन करें। इस पर दस्तावेज़ीकरण यहां पाया जा सकता है:</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/ProxySQL-Read-Write-Split-(HOWTO)&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhh5PvDqvgIg1y3AmMzHc6XYxMof1A" style="color: #888888; text-decoration-line: none;">https://github.com/sysown/proxysql/wiki/ProxySQL-Read-Write-Split-(HOWTO)</a></span></li>
</ul>
<div>
<span class="notranslate">हां यह HAproxy के साथ किया जा सकता है लेकिन आपको तदनुसार आवेदन को निर्देश देना होगा।</span></div>
<div>
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://severalnines.com/resources/tutorials/mysql-load-balancing-haproxy-tutorial&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhjHLBG6pC0eRMiY7ThG-clt3-g-1Q" style="color: #888888; text-decoration-line: none;">https://severalnines.com/resources/tutorials/mysql-load-balancing-haproxy-tutorial</a></span></li>
</ul>
</div>
<div>
<span class="notranslate">यह आपके क्वेरी नियमों के आधार पर ProxySQL में संभाला जाता है।</span></div>
<div>
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/Main-(runtime)&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhJH1aMFWXw7vQS6xyTIRslfDVUEg#mysql_query_rules" style="color: #888888; text-decoration-line: none;">https://github.com/sysown/proxysql/wiki/Main-(runtime)#mysql_query_rules</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/ProxySQL-Configuration&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhj_MdE1UrpgPHBzWJBlZk5TQ39lTw#mysql-query-rules" style="color: #888888; text-decoration-line: none;">https://github.com/sysown/proxysql/wiki/ProxySQL-Configuration#mysql-query-rules</a></span></li>
</ul>
</div>
<div>
<br /></div>
<div>
<span class="notranslate">अब यहां स्पष्ट प्रश्न: ठीक है तो आप ProxySQL को विफलता के एक बिंदु बनने से कैसे रोकते हैं?</span></div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">आप निवेश कर सकते हैं एक मजबूत लोड बैलेंसर और इत्यादि आदि ... इस पर हार्डवेयर टॉस करें .... या इसे अपने आप को आसान बनाएं और ओपन सोर्स का समर्थन करें और <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=http://www.keepalived.org/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhgrUOcDAvO4k2fkmRlEgvjYm0d7lg" style="color: #888888; text-decoration-line: none;" target="_blank">KeepAlive</a> डी का उपयोग करें।</span> <span class="notranslate">यह सेट अप करना बहुत आसान है और इसमें से सभी को फिर से दस्तावेज किया गया है:</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://www.percona.com/blog/2017/01/19/setup-proxysql-for-high-availability-not-single-point-failure/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhjrM_UMxaWqAXOqK9avsIaIka36A" style="color: #888888; text-decoration-line: none;">https://www.percona.com/blog/2017/01/19/setup-proxysql-for-high-availability-not-single-point-failure/</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=http://www.keepalived.org/doc/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhoF8gMikQNmH-9agjdRe5mF2MpCw" style="color: #888888; text-decoration-line: none;">http://www.keepalived.org/doc/</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate">निष्पक्ष होने के लिए यहां तक कि रखरखाव और HAproxy के लिए एक उदाहरण भी है</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://andyleonard.com/2011/02/01/haproxy-and-keepalived-example-configuration/&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhinfmqK1h9qSkKmRLB28vj8nIi_SA" style="color: #888888; text-decoration-line: none;">https://andyleonard.com/2011/02/01/haproxy-and-keepalived-example-configuration/</a></span></li>
</ul>
<div>
<span class="notranslate">यदि आपने कभी लुआ और <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://anothermysqldba.blogspot.com/2013/05/setup-mysql-proxy.html&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhucajf1LAUnl2cNX6H3Q_UzxdTBQ" style="color: #888888; text-decoration-line: none;" target="_blank">mysql-proxy</a> से निपटाया है, तो ProxySQL और Keepalived आपके लिए बहुत आसान होना चाहिए।</span> <span class="notranslate">यदि आप अभी भी इसे किसी कारण से चाहते हैं: <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://launchpad.net/mysql-proxy&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhinaxMvlkQ7qfJuzPv39KJn7K8_Cg" style="color: #888888; text-decoration-line: none;">https://launchpad.net/mysql-proxy</a></span></div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">भले ही आप HAproxy, ProxySQL या किसी अन्य समाधान का चयन करते हैं, आपको यह सुनिश्चित करने की ज़रूरत है कि एक बार दूसरे के साथ विफलता के एक बिंदु को प्रतिस्थापित न करें और इसके लिए बनाए रखा जाए।</span> <span class="notranslate">यदि आप प्रॉक्सी का उपयोग कर रहे हैं तो ऐसा करने के लिए बहुत कम कारण नहीं है।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">तो ProxySQL पर कुछ और चीजें।</span></div>
<div style="background-color: white;">
<ul style="color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate">यदि आप उन होस्ट्स को ट्रैक करते हैं जो आपकी रिपोर्टिंग या निगरानी के माध्यम से आपके डेटाबेस से कनेक्ट होते हैं, तो उन आईपीएस या होस्टनाम का एहसास हो रहा है जो अब प्रॉक्सी सर्वर होने जा रहे हैं।</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate">फिर आपके पास पहले से ही MySQL में मौजूद सभी उपयोगकर्ताओं के बारे में क्या है?</span> <span class="notranslate">क्या आप उन्हें proxysql में माइग्रेट कर सकते हैं?</span> <span class="notranslate">हाँ तुम कर सकते हो।</span> <span class="notranslate">इसमें कुछ कदम उठाए जाते हैं लेकिन यह सक्षम है।</span> <span class="notranslate">यहां इसका एक उदाहरण दिया गया है:</span></li>
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dba.stackexchange.com/questions/164705/how-to-easily-bring-80-mysql-users-into-proxysql&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhDebJXJoXMmx4GmReikuCWbIvqlQ" style="color: #888888; text-decoration-line: none;">https://dba.stackexchange.com/questions/164705/how-to-easily-bring-80-mysql-users-into-proxysql</a></span></li>
</ul>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate">सुनिश्चित करें कि आप <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/Configuring-ProxySQL&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhi3vhssZkJ7CuwaNxeOqrusxcNjiw" style="color: #888888; text-decoration-line: none;" target="_blank">मल्टी लेयर कॉन्फ़िगरेशन सिस्टम को</a> समझते हैं।</span> <span class="notranslate">डिस्क पर अपनी जानकारी बचाओ!</span></li>
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/Main-(runtime)&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhJH1aMFWXw7vQS6xyTIRslfDVUEg#runtime-tables" style="color: #888888; text-decoration-line: none;">https://github.com/sysown/proxysql/wiki/Main-(runtime)#runtime-tables</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/Main-(runtime)&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhJH1aMFWXw7vQS6xyTIRslfDVUEg#disk-database" style="color: #888888; text-decoration-line: none;">https://github.com/sysown/proxysql/wiki/Main-(runtime)#disk-database</a></span></li>
</ul>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate">ProxySQL MySQL डिफ़ॉल्ट पोर्ट 3306 पर चला सकता है</span></li>
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate">हां <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/Global-variables&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhWN47YG_9P29ZFycsLKUD078B6bA#mysql-interfaces" style="color: #888888; text-decoration-line: none;" target="_blank">mysql-interfaces</a> संपादित करें</span></li>
</ul>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate">अब अपने अधिकतम_कनेक्शन को ध्यान में रखें।</span> <span class="notranslate">यदि आपके पास mysql में Max_connections 500 पर सेट है, तो यह मानक उपयोगकर्ताओं के लिए आपकी सीमा की सीमा है।</span> <span class="notranslate">ProxySQL के साथ अब आप सिस्टम भर में उपयोगकर्ताओं को फैला सकते हैं और अधिकतम प्रति नोड सेट कर सकते हैं।</span> <span class="notranslate">तो यह सुनिश्चित करने में सहायता के लिए कि आप 500 कनेक्शन हिट नहीं करते हैं, <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/Global-variables&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhhWN47YG_9P29ZFycsLKUD078B6bA#mysql-max_connections" style="color: #888888; text-decoration-line: none;" target="_blank">MySQL-max_connections को</a> MySQL मान से थोड़ा कम सेट करें।</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/Monitor-Module&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhgW2dU0LWA9jOETTVfwLVUO23glJQ#monitor-module" style="color: #888888; text-decoration-line: none;" target="_blank">मॉनीटर मॉड्यूल</a> और <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/STATS-(statistics)&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhgL5c9bny3S9C-_EOSLgg-m0Pw_0Q#the-stats-database" style="color: #888888; text-decoration-line: none;" target="_blank">स्टेटस</a> का लाभ उठाएं .. जानें कि आपके प्रॉक्सी और ट्रैफिक के साथ क्या चल रहा है।</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate">यदि आपके आवेदन के लिए लागू हो तो <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://github.com/sysown/proxysql/wiki/ProxySQL-Configuration&xid=17259,15700022,15700124,15700149,15700168,15700173,15700186,15700189,15700190,15700201,15700205&usg=ALkJrhj_MdE1UrpgPHBzWJBlZk5TQ39lTw#query-caching" style="color: #888888; text-decoration-line: none;" target="_blank">क्वेरी कैशिंग</a> का लाभ उठाएं।</span></li>
</ul>
<div>
<span style="color: #666666; font-family: Trebuchet MS, Trebuchet, Verdana, sans-serif;"><span style="font-size: 13.2px;">http://anothermysqldba.blogspot.com/2018/05/proxy-mysql-haproxy-proxysql-keepalived.html</span></span></div>
</div>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-32183901700470114302018-03-19T23:29:00.001-07:002018-03-19T23:29:43.192-07:00MySQL 8.0.4 आरसी<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">MySQL 8.0.4 आरसी को अभी " <span style="color: #ee0000; font-family: "open sans", arial, helvetica, sans-serif; font-size: 12.1176px; font-weight: 700; text-align: center;">पूर्व-सामान्य उपलब्धता ड्राफ्ट: 2018-03-19</span> " के रूप में जारी किया गया था।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><br />
<ul style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/mysql-nutshell.html&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhhKAKfeOZF92tkW888wXeCVhHIgkQ" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/refman/8.0/en/mysql-nutshell.html</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/relnotes/mysql/8.0/en/&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhhRM1IG0Em3t9z8xINSG6hVIB0IaQ" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/relnotes/mysql/8.0/en/</a></span></li>
</ul>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">मैंने एक त्वरित तिरछी नज़र लेने का फैसला किया और यहां मेरे इंप्रेशन को नोट किया।</span> <span class="notranslate">इनमें से कुछ बहुत पुरानी खबर हैं क्योंकि इस रिलीज के बारे में थोड़ी देर के बारे में बात की गई है लेकिन मैंने अपने विचारों को वैसे भी जोड़ा।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">पहली बात मैंने देखा कि अद्यतन किया गया mysql क्लाइंट का उपयोग करने का एक सरल मुद्दा था</span> <span class="notranslate">मेरे पुराने संस्करण अभी भी मेरे रास्ते में था जिसके परिणामस्वरूप</span></div>
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"></code><br /><div>
<code style="font-size: 0.9em;">ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded</code></div>
<code style="font-size: 0.9em;"></code></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhgecWxpZ6Dp0QXdX9oVKm7hRJfQxQ" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html</a></span></li>
</ul>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">इतना आसान तय है और सुनिश्चित करें कि आप वैध अपडेट किए गए mysql क्लाइंट का उपयोग कर रहे हैं।</span> <span class="notranslate">बेशक अन्य विकल्प mysql_native_password पर प्रमाणीकरण प्लग-इन को बदलना पसंद करते हैं, लेकिन परेशान क्यों हैं, सुरक्षित विधि का उपयोग करें</span> <span class="notranslate">यह सुरक्षा के लिए बहुत अच्छी वृद्धि है, इसलिए इस संबंध में हैरान मत हो, अगर आपके पास इस अधिक सुरक्षित विधि का उपयोग करते हुए अपने कनेक्शन मिलते समय कुछ कनेक्शन समस्याएं हैं</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"></code><br /><div>
<div>
<code style="font-size: 0.9em;">Welcome to the MySQL monitor. Commands end with ; or \g.</code></div>
<div>
<code style="font-size: 0.9em;">Your MySQL connection id is 36</code></div>
<div>
<code style="font-size: 0.9em;">Server version: 8.0.4-rc-log</code></div>
<div>
<code style="font-size: 0.9em;"><br /></code></div>
<div>
<code style="font-size: 0.9em;">Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.</code></div>
</div>
<code style="font-size: 0.9em;"></code></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">तो पहले बहुत ही शांत वृद्धि ...</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"></code><br /><div>
<code style="font-size: 0.9em;">mysql> show create table user\G</code></div>
<code style="font-size: 0.9em;"></code><div>
<code style="font-size: 0.9em;">*************************** 1. row ***************************</code></div>
<div>
<span class="notranslate">तालिका: उपयोगकर्ता</span></div>
<div>
<span class="notranslate">तालिका बनाएँ: टैब बनाएँ `उपयोगकर्ता '(</span></div>
<div>
<span class="notranslate">`होस्ट` कक्ष (60) कॉललेट यूटीएफ 8_बीन नल डिफॉल्ट '',</span></div>
<div>
<span class="notranslate">`उपयोगकर्ता` चार (32) COLLATE utf8_bin नल डिफॉल्ट '',</span></div>
<div>
<span class="notranslate">`चयन करें_प्रार्थी` ('एन', 'वाई') वर्ण सेट करें utf8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Insert_priv` enum ('N', 'Y') वर्ण सेट UTF8 नहीं है, NULL DEFAULT 'N',</span></div>
<div>
<span class="notranslate">`Update_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Delete_priv` enum ('N', 'Y') वर्ण सेट करें utf8 नहीं है नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Create_priv` enum ('N', 'Y') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`ड्रॉप_परिव एन्म '(' एन ',' वाई ') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट' एन ',</span></div>
<div>
<span class="notranslate">`पुनः लोड_प्रार्थी 'एन्यूम (' एन ',' वाई ') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट एन',</span></div>
<div>
<span class="notranslate">'शटडाउन_प्रिट' एन्यूम ('एन', 'वाई') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट एन ',</span></div>
<div>
<span class="notranslate">`Process_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`File_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Grant_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`संदर्भ_प्रावित` एन्यूम ('एन', 'वाई') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`इंडेक्स_परिव एन्म '(' एन ',' वाई ') टाइपकर्ता सेट यूटीएफ 8 नल डिफॉल्ट' एन '</span></div>
<div>
<span class="notranslate">`Alter_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Show_db_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`सुपर_परिव 'एन्यूम (' एन ',' वाई ') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट एन',</span></div>
<div>
<span class="notranslate">`Create_tmp_table_priv` enum ('N', 'Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',</span></div>
<div>
<span class="notranslate">`Lock_tables_priv` enum ('N', 'Y') टाइपकर्ता सेट अप utf8 नहीं है नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Execute_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Repl_slave_priv` enum ('N', 'Y') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Repl_client_priv` enum ('N', 'Y') वर्ण सेट करें utf8 नहीं है, नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Create_view_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Show_view_priv` enum ('N', 'Y') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Create_routine_priv` enum ('N', 'Y') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Alter_routine_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Create_user_priv` enum ('N', 'Y') वर्ण सेट करें utf8 नहीं है नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`Event_priv` enum ('N', 'Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',</span></div>
<div>
<span class="notranslate">`ट्रिगर_प्रावित` एन्यूम ('एन', 'वाई') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट एन ',</span></div>
<div>
<span class="notranslate">`Create_tablespace_priv` enum ('N', 'Y') वर्ण सेट UTF8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`ssl_type` enum ('', 'ANY', 'X509', 'निर्दिष्ट') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट '',</span></div>
<div>
<span class="notranslate">`ssl_cipher` ब्लॉब नहीं नल,</span></div>
<div>
<span class="notranslate">`x509_आईसीयूआरयूआर 'धधकते नल,</span></div>
<div>
<span class="notranslate">`x509_ विषयक 'बूँद नहीं शून्य,</span></div>
<div>
<span class="notranslate">`max_questions` int (11) अहस्ताक्षरित नहीं शून्य डिफ़ॉल्ट '0',</span></div>
<div>
<span class="notranslate">`max_updates` int (11) अहस्ताक्षरित नहीं नल डिफ़ॉल्ट '0',</span></div>
<div>
<span class="notranslate">`max_connections` int (11) अहस्ताक्षरित नहीं नल डिफ़ॉल्ट '0',</span></div>
<div>
<span class="notranslate">`max_user_connections` int (11) अहस्ताक्षरित नहीं नल डिफ़ॉल्ट '0',</span></div>
<div>
<span class="notranslate">`प्लगइन` चार (64) COLLATE utf8_bin नल डिफॉल्ट 'caching_sha2_password' नहीं,</span></div>
<div>
<span class="notranslate">`प्रमाणीकरण_स्ट्रिंग` पाठ COLLATE utf8_bin,</span></div>
<div>
<span class="notranslate">`पासवर्ड_अपेक्षित` एन्यूम ('एन', 'वाई') टाइपकर्ता सेट यूटीएफ 8 नल डिफॉल्ट 'एन',</span></div>
<div>
<span class="notranslate">`पासवर्ड_last_changed` टाइमस्टैम्प नाल डिफॉल्ट नल,</span></div>
<div>
<span class="notranslate">`पासवर्ड_लिफ़टाइम 'छोटा (5) अहस्ताक्षरित डिफॉल्ट नल,</span></div>
<div>
<span class="notranslate">`account_locked` enum ('एन', 'वाई') वर्ण सेट यूटीएफ 8 नल डिफॉल्ट एन ',</span></div>
<div>
<span class="notranslate">`Create_role_priv` enum ('N', 'Y') वर्ण सेट UTF8 नहीं है, NULL DEFAULT 'N',</span></div>
<div>
<span class="notranslate">`Drop_role_priv` enum ('N', 'Y') वर्ण सेट UTF8 नहीं है, NULL DEFAULT 'N',</span></div>
<div>
<span class="notranslate">`पासवर्ड_reuse_history` छोटा (5) अहस्ताक्षरित डिफॉल्ट नल,</span></div>
<div>
<span class="notranslate">`पासवर्ड_रेउज़_टाइम` छोटा (5) अहस्ताक्षरित डिफॉल्ट नल,</span></div>
<div>
<span class="notranslate">प्राथमिक कुंजी (`होस्ट ',` उपयोगकर्ता`)</span></div>
<div>
<span class="notranslate">) / *! 50100 टैबिलस्पेस `mysql` * / इंजन = InnoDB DEFAULT चार्सेट = utf8 COLLATE = utf8_bin STATS_PERSISTENT = 0 COMMENT = 'उपयोगकर्ता और वैश्विक विशेषाधिकार'</span></div>
<div>
<span class="notranslate">सेट में 1 पंक्ति (0.00 सेकंड)</span></div>
</div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">हाँ यूजर टेबल InnoDB है और खुद की टेबलस्पेस है</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">नए डाटा डिक्शनरी के अतिरिक्त के साथ आप अब Information_schema परिवर्तनों को नोटिस करेंगे।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/data-dictionary-information-schema.html&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhhH4tdCRFfzWgmONqfR13TuJnNcJg" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/refman/8.0/en/data-dictionary-information-schema.html</a></span></li>
</ul>
<div>
<span class="notranslate">इसलिए एक सरल उदाहरण के रूप में स्तंभ तालिका ऐतिहासिक रूप से एक दृश्य नहीं रही है लेकिन अब कई अन्य लोगों के साथ बदल दिया गया है, जैसा कि आप प्रदान किए गए यूआरएल के माध्यम से देख सकते हैं।</span></div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"></code><br /><div>
<code style="font-size: 0.9em;">mysql> show create table COLUMNS \G</code></div>
<code style="font-size: 0.9em;"></code><div>
<code style="font-size: 0.9em;">*************************** 1. row ***************************</code></div>
<div>
<span class="notranslate">देखें: COLUMNS</span></div>
<div>
<span class="notranslate">दृश्य बनाएं: एल्गोरिथ्म बनाएं = अनुपयुक्त DEFINER = 'mysql.infoschema` @ `लोकलहोस्ट`</span></div>
</div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">यह information_schema के साथ प्रदर्शन में मदद करने के लिए किया जाता है लेकिन जानकारी के लिए प्रति क्वेरी अस्थायी तालिका क्रिएशन को निकालता है।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">प्रलेखन के अध्याय 14 इस पर गहराई से चला जाता है, नीचे दी गई यूआरएल आपको अधिक जानकारी प्राप्त करने में मदद करेगी और भावी ब्लॉग पोस्ट इस पर अधिक छू सकती हैं।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/data-dictionary.html&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhiZFCKzJIU9J4Z_Hxdy6Xk2aqnYsQ" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/refman/8.0/en/data-dictionary.html</a></span></li>
</ul>
<div>
<span class="notranslate">पहले वर्णित डेटा शब्दकोश तब भी परमाणु डेटा परिभाषा भाषा (डीडीएल) बयान या परमाणु डीडीएल की क्षमता की ओर जाता है</span></div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/atomic-ddl.html&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhiTyfp2z5AlExVlaL4F8iXphJeAjA" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/refman/8.0/en/atomic-ddl.html</a></span></li>
</ul>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">यदि आप एक नए MySQL 8.0 उदाहरण के लिए प्रतिकृति सेट करने से पहले अपने प्रश्नों की समीक्षा नहीं करते हैं, तो यह कुछ लेन-देन की संभावना है।</span> <span class="notranslate">मैं कहता हूं कि टेबल रखरखाव का प्रबंधन कैसे प्रभावित हो सकता है।</span> <span class="notranslate">यदि आप "यदि मौजूद हैं" के साथ साफ प्रश्न लिखते हैं तो यह एक बड़ी समस्या नहीं होगी।</span> <span class="notranslate">कुल मिलाकर यह अधिक लेनदेन आधारित सुविधा है जो आपके डेटा और रोलबैक विकल्पों की रक्षा करती है।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">संसाधन प्रबंधन बहुत ही दिलचस्प दिखता है और मुझे इस पर ध्यान देने के लिए अधिक समय लेना होगा क्योंकि यह MySQL 8.0 के साथ एक नई सुविधा है।</span> <span class="notranslate">कुल मिलाकर आप समूह निर्दिष्ट कर सकते हैं और अब क्वेरी की प्राथमिकता निर्धारित नहीं करनी चाहिए लेकिन अपने समूह को यह परिभाषित करना चाहिए कि क्वेरी को किस प्रकार व्यवहार करना चाहिए और उसके लिए आवंटित संसाधन होना चाहिए।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/resource-groups.html&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhjv_SICVieEVmOFLCwHcsDIrukUrA" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/refman/8.0/en/resource-groups.html</a></span></li>
</ul>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"></code><br /><div>
<code style="font-size: 0.9em;">mysql> select @@version;</code></div>
<code style="font-size: 0.9em;"></code><div>
<code style="font-size: 0.9em;">+------------+</code></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">@@ संस्करण |</span></div>
<div>
<span class="notranslate">+ ------------ +</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">5.7.16-लॉग |</span></div>
<div>
<span class="notranslate">+ ------------ +</span></div>
<div>
<span class="notranslate">सेट में 1 पंक्ति (0.00 सेकंड)</span></div>
<div>
<br /></div>
<div>
<span class="notranslate">mysql> desc INFORMATION_SCHEMA.RESOURCE_GROUPS;</span></div>
<div>
<span class="notranslate">त्रुटि 110 9 (42 एस 02): सूचना_एसकेमा में अज्ञात तालिका 'RESOURCE_GROUPS'</span></div>
<div>
<br /></div>
<div>
<span class="notranslate">mysql> @@ संस्करण का चयन करें;</span></div>
<div>
<span class="notranslate">+ -------------- +</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">@@ संस्करण |</span></div>
<div>
<span class="notranslate">+ -------------- +</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">8.0.4-आरसी-लॉग |</span></div>
<div>
<span class="notranslate">+ -------------- +</span></div>
<div>
<span class="notranslate">सेट में 1 पंक्ति (0.00 सेकंड)</span></div>
<div>
<br /></div>
<div>
<span class="notranslate">mysql> desc INFORMATION_SCHEMA.RESOURCE_GROUPS;</span></div>
<div>
<span class="notranslate">+ ------------------------ + ----------------------- + ------ + ----- + --------- + ------- +</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">फील्ड |</span> <span class="notranslate">प्रकार |</span> <span class="notranslate">नल |</span> <span class="notranslate">कुंजी |</span> <span class="notranslate">डिफ़ॉल्ट |</span> <span class="notranslate">अतिरिक्त |</span></div>
<div>
<span class="notranslate">+ ------------------------ + ----------------------- + ------ + ----- + --------- + ------- +</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">RESOURCE_GROUP_NAME |</span> <span class="notranslate">varchar (64) |</span> <span class="notranslate">नहीं |</span> <span class="notranslate">|</span> <span class="notranslate">नल |</span> <span class="notranslate">|</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">RESOURCE_GROUP_TYPE |</span> <span class="notranslate">enum ('प्रणाली', 'उपयोगकर्ता') |</span> <span class="notranslate">नहीं |</span> <span class="notranslate">|</span> <span class="notranslate">नल |</span> <span class="notranslate">|</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">RESOURCE_GROUP_ENABLED |</span> <span class="notranslate">टिनिंट (1) |</span> <span class="notranslate">नहीं |</span> <span class="notranslate">|</span> <span class="notranslate">नल |</span> <span class="notranslate">|</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">VCPU_IDS |</span> <span class="notranslate">ब्लॉब |</span> <span class="notranslate">हां |</span> <span class="notranslate">|</span> <span class="notranslate">नल |</span> <span class="notranslate">|</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">THREAD_PRIORITY |</span> <span class="notranslate">इंट (11) |</span> <span class="notranslate">नहीं |</span> <span class="notranslate">|</span> <span class="notranslate">नल |</span> <span class="notranslate">|</span></div>
<div>
<span class="notranslate">+ ------------------------ + ----------------------- + ------ + ----- + --------- + ------- +</span></div>
<div>
<span class="notranslate">सेट में 5 पंक्तियां (0.00 सेकंड)</span></div>
<div>
<br /></div>
</div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">अपने इनोडाबी बफर पूल कैश में अधिक जानकारी उस इंडेक्स के संबंध में है जो अब उपलब्ध है।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/innodb-cached-indexes-table.html&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhh25Ur9RSLjUG0T6kOwjhJWCUAezw" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/refman/8.0/en/innodb-cached-indexes-table.html</a></span></li>
</ul>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"></code><br /><div>
<code style="font-size: 0.9em;">mysql> desc INFORMATION_SCHEMA.INNODB_CACHED_INDEXES ;</code></div>
<code style="font-size: 0.9em;"></code><div>
<code style="font-size: 0.9em;">+----------------+---------------------+------+-----+---------+-------+</code></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">फील्ड |</span> <span class="notranslate">प्रकार |</span> <span class="notranslate">नल |</span> <span class="notranslate">कुंजी |</span> <span class="notranslate">डिफ़ॉल्ट |</span> <span class="notranslate">अतिरिक्त |</span></div>
<div>
<span class="notranslate">+ ---------------- + --------------------- + ------ + --- - + --------- + ------- +</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">SPACE_ID |</span> <span class="notranslate">int (11) अहस्ताक्षरित |</span> <span class="notranslate">नहीं |</span> <span class="notranslate">|</span> <span class="notranslate">|</span> <span class="notranslate">|</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">INDEX_ID |</span> <span class="notranslate">बड़ी बात (21) अहस्ताक्षरित |</span> <span class="notranslate">नहीं |</span> <span class="notranslate">|</span> <span class="notranslate">|</span> <span class="notranslate">|</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">N_CACHED_PAGES |</span> <span class="notranslate">बड़ी बात (21) अहस्ताक्षरित |</span> <span class="notranslate">नहीं |</span> <span class="notranslate">|</span> <span class="notranslate">|</span> <span class="notranslate">|</span></div>
<div>
<span class="notranslate">+ ---------------- + --------------------- + ------ + --- - + --------- + ------- +</span></div>
<div>
<span class="notranslate">सेट में 3 पंक्तियां (0.01 सेकंड)</span></div>
</div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">यदि आप अनिश्चित हैं कि इनोडीबी बफर पूल को सेट करने के लिए, लॉग-सीज़ या फ्लश मेसेज, तो MySQL इन उपलब्ध स्मृति के आधार पर आपके लिए सेट करेगा।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<div>
<span class="notranslate">innodb_dedicated_server</span></div>
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"></code><br /><div>
<code style="font-size: 0.9em;">[mysqld]</code></div>
<code style="font-size: 0.9em;"></code><div>
<code style="font-size: 0.9em;">innodb-dedicated-server=1</code></div>
<div>
<br /></div>
<div>
<span class="notranslate">mysql> चुनें @@ innodb_dedicated_server;</span></div>
<div>
<span class="notranslate">+ --------------------------- +</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">@@ innodb_dedicated_server |</span></div>
<div>
<span class="notranslate">+ --------------------------- +</span></div>
<div>
<span class="notranslate">|</span> <span class="notranslate">1 |</span></div>
<div>
<span class="notranslate">+ --------------------------- +</span></div>
</div>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">इस सरल परीक्षण ने मेरे innodb_buffer_pool_size को 6 जीबी तक सेट किया है, उदाहरण के लिए जब डिफ़ॉल्ट 128MB है</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/innodb-dedicated-server.html&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhh6Reyo8XJ_Zygg7IHJT15fJ_-0tw" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/refman/8.0/en/innodb-dedicated-server.html</a></span></li>
</ul>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">कई JSON परिवर्धन और साथ ही नियमित अभिव्यक्ति परिवर्तन भी किए गए हैं।</span> <span class="notranslate">दोनों जो आशाजनक दिखते हैं</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">इस रिलीज के मुकाबले एकमात्र प्रतिकृति संवर्धन ही है जो अब कॉम्पैक्ट बाइनरी प्रारूप का उपयोग करते हुए जेएसओएन दस्तावेज़ों के आंशिक अद्यतनों के द्विआधारी लॉगिंग का समर्थन करता है।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">हालांकि कुल मिलाकर कई विशेषताएं उपलब्ध हैं (आप <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=http://mysqlhighavailability.com/replication-features-in-mysql-8-0-1/&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhioL8WI7FKytKicIErmfw6dmXb6Gg" style="color: #888888; text-decoration-line: none;" target="_blank">यहां</a> उनके बारे में सब कुछ पढ़ सकते हैं), जिनमें से एक (मैं चाहता था कि मेरा ग्राहक कल था) चैनल प्रति प्रतिकृति फाइलर्स है।</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/refman/8.0/en/change-replication-filter.html&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhiUWrdI08612VuzKDZVajhjXYLceA" style="color: #888888; text-decoration-line: none;">https://dev.mysql.com/doc/refman/8.0/en/change-replication-filter.html</a></span></li>
</ul>
</div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">मेरे परीक्षण के उदाहरण में पहले से ही द्विआधारी लॉग सक्षम थे, लेकिन वे अब टेबल आधारित बनाम फ़ाइल आधारित मास्टर और गुलाम जानकारी के साथ डिफ़ॉल्ट रूप से चालू हैं (डिफ़ॉल्ट के आधार पर उस लेनदेन के बड़े प्रशंसक)</span></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">
<span class="notranslate">कुल मिलाकर यह ध्यान रखें कि यह इस रिलीज पर पहली नज़र है और उस पर बहुत उच्च स्तर के विचार, कई अन्य परिवर्तन मौजूद हैं।</span> <span class="notranslate">इस रिलीज के बारे में अन्य <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://planet.mysql.com/&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhh8oKF9XEH57Av6saSx9kC3gAFapQ" style="color: #888888; text-decoration-line: none;" target="_blank">ब्लॉग पोस्ट्स के</a> साथ-साथ <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/relnotes/mysql/8.0/en/&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhhRM1IG0Em3t9z8xINSG6hVIB0IaQ" style="color: #888888; text-decoration-line: none;" target="_blank">मैनुअल</a> और <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=hi&u=https://dev.mysql.com/doc/relnotes/mysql/8.0/en/&xid=17259,15700022,15700105,15700124,15700149,15700168,15700173,15700186,15700201&usg=ALkJrhhRM1IG0Em3t9z8xINSG6hVIB0IaQ" style="color: #888888; text-decoration-line: none;" target="_blank">रिलीज नोट्स</a> भी देखेंगे।</span> <span class="notranslate">निश्चित रूप से डाउनलोड और समीक्षा करें क्योंकि प्रशासन, सुरक्षा और नकल देखने के बिंदु के लिए यह बहुत आशाजनक है।</span></div>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-41722501001232179482018-03-13T16:41:00.001-07:002018-03-13T16:41:54.151-07:00MySQL धोखा पत्र<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">तो पहले मैंने कुछ समय के रूप में महसूस किया है कि मुझे होना चाहिए।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">मैं अभी भी MySQL और सभी संबंधित फोर्कियों के साथ काम करने में बहुत व्यस्त हूं और ब्लॉग को बाहर करने में विफल रहा क्योंकि मुझे लगा कि मुझे चाहिए।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">इसलिए मैं उस पर काम करूंगा।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">अब कहा जा रहा है कि मैंने दूसरे दिन एक वेबसाइट को याद किया जिसे मैं प्यार करता था क्योंकि यह एक आम छठी पत्रक सूची थी।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">वाक्यविन्यास जो आप जानते हैं, आपको पता है कि आपको इसकी आवश्यकता है, लेकिन इसे 3 गुना जब तक यह सही नहीं है।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">जब यह सही में प्रवेश करता है, तो आप इसे चुस्त करते हुए देखते हैं, मैंने सोचा कि मैंने पहले ही लिखा है।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">इसलिए मुझे लगा कि सामान्य माइस्काइव की एक साधारण सूची क्यों नहीं है कि हम सब एक महीने में 50 बार टाइप करते हैं या हमें अपने हाथ की पीठ की तरह पता होना चाहिए, लेकिन भूल जाएं कि ग्राहक हमारे कंधे की तरफ देख रहा है।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">शुरुआत के लिए..</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">हम एक नया MySQL 5.7.6+ सर्वर सेट अप और लॉग इन करें ..</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">हमें कुछ भी करने से पहले पासवर्ड बदलने की आवश्यकता है</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">लेकिन यह बदल गया है उपयोगकर्ता सेट पास नहीं है</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">हम यह जानना चाहते हैं कि पासवर्ड अभी भी कैसे पढ़ सकता है क्योंकि यह स्पष्ट पाठ में है।</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">ALTER USER</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass'; </code></div>
<span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">सेट पासवर्ड है</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">SET PASSWORD FOR 'bob''@'localhost' = PASSWORD('cleartext password'); </code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">बाइनरी लॉग को साफ करें</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">PURGE BINARY LOGS TO 'mysql-bin.010';<br />PURGE BINARY LOGS BEFORE '2008-04-02 00:00:00<br />PURGE BINARY LOGS BEFORE NOW() - interval 3 DAY;<br /></code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">MySQL डंप</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"># COMPACT WILL REMOVE DROP STATEMENTS<br />mysqldump --events --master-data=2 --routines --triggers --compact --all-databases > db.sql<br />mysqldump --events --master-data=2 --routines --triggers --all-databases > NAME.sql<br />mysqldump --opt --routines --triggers dbname > dbname.sql<br />mysqldump --opt --routines --triggers --no-create-info joomla jforms > dataonly.sql </code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">एक पल के लिए विदेशी कुंजी बंद करें</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">SET GLOBAL foreign_key_checks=0; </code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">अनुदान छोड़ें</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">/usr/bin/mysqld_safe --defaults-file=/etc/mysql/my.cnf --skip-grant-tables<br />vi /etc/mysql/my.cnf<br />[mysqld]<br />skip-grant-tables<br /></code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">बिनलॉग समीक्षाएं</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">--base64-output = DECODE-ROWS और --verbose</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">mysqlbinlog --defaults-file=/home/anothermysqldba/.my.cnf --base64-output=DECODE-ROWS --verbose binlog.005862 > 005862.sql<br /></code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">MYSQL सुरक्षित क्लाइंट</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">mysql_config_editor print --all<br />mysql_config_editor set --user=mysql --password --login-path=localhost --host=localhost<br />mysql --login-path=localhost -e 'SELECT NOW()';<br /></code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">विनिमय</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">sudo swapoff -a<br />To set the new value to 10: echo 10 | sudo tee /proc/sys/vm/swappiness<br />sudo swapon -a </code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">यदि सूचना स्कीमा धीमा है</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">set global innodb_stats_on_metadata=0; </code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">एडब्ल्यूएस वैरिएबल</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">CALL mysql.rds_show_configuration;<br />> call mysql.rds_set_configuration('binlog retention hours', 24);<br />> call mysql.rds_set_configuration('slow_launch_time', 2);<br /></code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">पता लगाएं कि कोई स्तंभ नाम किस तालिका में है</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">SELECT TABLE_SCHEMA , TABLE_NAME , COLUMN_NAME FROM information_schema.COLUMNS WHERE COLUMN_NAME = 'fieldname' ; </code></div>
<span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">क्लाइंट का कहना है कि यह टेबलए में है लेकिन उनके पास 50 डाटाबेस हैं..इस स्कीमा में टेबल ए</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">SELECT TABLE_SCHEMA , TABLE_NAME FROM information_schema.TABLES WHERE TABLE_NAME = 'TableA' ; </code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">दास कर्मियों को समायोजित करें</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">Select @@slave_parallel_workers;<br />Stop Slave; Set GLOBAL slave_parallel_workers=5; Start Slave;<br /></code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">MySQL मल्टी</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">5.6><br />To start both : mysqld_multi start 1,2<br />To check on status of both: mysqld_multi report 1,2<br />To check on status or other options you can use just one<br /><br />5.7<<br />[mysqld1] BECOMES [mysqld@mysqld1]<br />systemctl start mysqld@mysqld1<br />systemctl start mysqld@mysqld2<br />systemctl start mysqld@mysqld3<br />systemctl start mysqld@mysqld4 </code></div>
<span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">MySQL केवल सिस्टम तालिकाओं का नवीनीकरण</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">mysql_upgrade --defaults-file=/home/ <span style="background-color: white;">anothermysqldba</span> /.my.cnf --upgrade-system-tables </code></div>
<br style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><span class="notranslate" style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">स्किप नोटिफिकेशन त्रुटि</span><span style="background-color: white; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"> </span><br />
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">STOP SLAVE; SET GLOBAL sql_slave_skip_counter =1; START SLAVE; SELECT SLEEP(1); SHOW SLAVE STATUS\G </code></div>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-60748785605738232062016-04-22T08:10:00.002-07:002016-04-22T08:10:20.768-07:00MySQL के साथ गणित<div dir="ltr" style="text-align: left;" trbidi="on">
The Original post: <a href="http://anothermysqldba.blogspot.com/2016/04/math-with-mysql.html">http://anothermysqldba.blogspot.com/2016/04/math-with-mysql.html</a><br />
<br />
<span class="notranslate">मैंने सोचा कि मैं बहुत पहले इस पोस्ट ... ओह अच्छी तरह से ....</span> <br /><br /> <span class="notranslate"> हम सभी जानते हैं कि गणित और सभी के जीवन की मूलभूत पहलू आम यदि परे नहीं दुनिया भर में इस्तेमाल भाषा है।</span> <span class="notranslate"> MySQL, सभी डेटाबेस की तरह, गणित के कई पहलुओं के साथ मदद कर सकते हैं।</span> <br /><br /> <span class="notranslate"> यहाँ कार्यों की एक सूची है: <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=https://dev.mysql.com/doc/refman/5.6/en/mathematical-functions.html&usg=ALkJrhi3-K0AYM7bfVSc7u8y1recOPjcbA">https://dev.mysql.com/doc/refman/5.6/en/mathematical-functions.html</a></span> <br /><br /> <span class="notranslate"> यहाँ कुछ सरल उदाहरण आप शुरू कर रहे हैं।</span> <br />
<ul style="text-align: left;">
<li> <span class="notranslate"> द्विघात फॉर्मूला कुल्हाड़ी ^ 2 + bx + c = 0</span> </li>
</ul>
<div class="codebox">
<code><br /> # 2x^2 – 4x – 3 = 0. <br /> SET @a= 1; <br /> SET @b= 3; <br /> SET @c= -4; <br /> SET @XX = ( -(@b) - SQRT( POW(@b,2) -4 * @a * @c) / POW(@a,2) ) ; <br /> SET @YY = ( -(@b) + SQRT( POW(@b,2) -4 * @a * @c) / POW(@a,2) ) ; <br /> SET @XXX = MOD(@YY, @XX); <br /> <br /> SELECT @XX / @XXX as X; <br /> +------+ <br /> | X | <br /> +------+ <br /> | -4 | <br /> +------+ <br /> SELECT @YY / @XXX as X ; <br /> +------+ <br /> | X | <br /> +------+ <br /> | 1 | <br /> +------+ <br /> </code> </div>
<br /><ul style="text-align: left;">
<li> <span class="notranslate"> पाइथागोरस प्रमेय (ज्यामिति 101 याद): एक ^ 2 + b ^ 2 = सी ^ 2</span> </li>
</ul>
<div class="codebox">
<code><br /> SET @A = 14; <br /> SET @B = 48; <br /> SELECT @C := SQRT(POW(@A,2) + POW(@B,2) ); <br /> +-------------------------------------+ <br /> | @C := SQRT(POW(@A,2) + POW(@B,2) ) | <br /> +-------------------------------------+ <br /> | 50 | <br /> +-------------------------------------+ </code> </div>
<br /><br /> <span class="notranslate"> तो यह है कि सी को हल करती है और निश्चित रूप से आप इस का उपयोग एक के लिए हल करने के लिए के रूप में अच्छी तरह से।</span> <br /><div class="codebox">
<code><br /> SELECT @A := SQRT(POW(@C,2) - POW(@B,2)) ; <br /> +-----------------------------------+ <br /> | @A := SQRT(POW(@C,2) - POW(@B,2)) | <br /> +-----------------------------------+ <br /> | 14 | <br /> +-----------------------------------+ </code> </div>
<br /><br /><ul style="text-align: left;">
<li> <span class="notranslate"> लघुगणक और अपनी पहचान को लॉग इन करें XY = लॉग इन करने के लिए लॉग इन x + y</span> </li>
</ul>
<a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://www.businessinsider.com/the-17-equations-that-changed-the-world-2012-7&usg=ALkJrhhBduv3f5xTenQBqk7wIZMzQb24yg#the-logarithm-and-its-identities-2">http://www.businessinsider.com/the-17-equations-that-changed-the-world-2012-7#the-logarithm-and-its-identities-2</a> <br /><br /><div class="codebox">
<code><br /> SET @X = 2; <br /> SET @Y = 3; <br /> SELECT concat(log(@X * @Y) ,' = ', log(@X) + log(@Y) ) as "logarithm and its identities" ; <br /> +---------------------------------------+ <br /> | logarithm and its identities | <br /> +---------------------------------------+ <br /> | 1.791759469228055 = 1.791759469228055 | <br /> +---------------------------------------+ </code> </div>
<br /><ul style="text-align: left;">
<li> <span class="notranslate"> polyhedra के लिए यूलर सूत्र: एफ - ई + V = 2</span> </li>
</ul>
<a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://www.businessinsider.com/the-17-equations-that-changed-the-world-2012-7&usg=ALkJrhhBduv3f5xTenQBqk7wIZMzQb24yg#eulers-formula-for-polyhedra-6">http://www.businessinsider.com/the-17-equations-that-changed-the-world-2012-7#eulers-formula-for-polyhedra-6</a> <br /><div class="codebox">
<code><br /> SET @V = 4; # Vertices <br /> SET @E = 6; # Edges <br /> SET @F = 4; # Faces <br /> SELECT @V - @E + @F as Tetrahedron; <br /> <br /> SET @V = 8; # Vertices <br /> SET @E = 12; # Edges <br /> SET @F = 6; # Faces <br /> SELECT @V - @E + @F as Hexahedron; <br /> <br /> SET @V = 12; # Vertices <br /> SET @E = 30; # Edges <br /> SET @F = 20; # Faces <br /> SELECT @V - @E + @F as Icosahedron; <br /> <br /> SET @V = 12; # Vertices <br /> SET @E = 30; # Edges <br /> SET @F = 20; # Faces <br /> SELECT @V - @E + @F as Icosahedron; </code> </div>
<br /><ul style="text-align: left;">
<li> <span class="notranslate"> सापेक्षता ई के आइंस्टीन के सिद्धांत = एम सी ^ 2</span> </li>
</ul>
<div class="codebox">
<code><br /> SET @lbs = 190; # lbs <br /> SET @lb2gram = 453.6; # 1 lbs = 453.6g <br /> SET @lbstograms := @lbs * @lb2gram / 1; <br /> SET @m := @lbstograms * 1 / 1000; <br /> SET @c := POW(3.00 * POW(10,8), 2 ); <br /> SELECT @E := @m * @c ; <br /> +----------------+ <br /> | @E := @m * @c | <br /> +----------------+ <br /> | 7.75656e18 | <br /> +----------------+ </code> </div>
<br /><ul style="text-align: left;">
<li> <span class="notranslate"> 1 = 0.9999 .....</span> </li>
</ul>
<div class="codebox">
<code><br /> SELECT SUM(.9/(9/10)); <br /> +----------------+ <br /> | SUM(.9/(9/10)) | <br /> +----------------+ <br /> | 1.00000 | <br /> +----------------+ </code> </div>
<br /></div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-47953440546436225032015-07-25T09:21:00.004-07:002015-07-25T09:21:36.097-07:00MySQL के साथ त्वरित पासवर्ड पीढ़ी<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate">Original post <a href="http://anothermysqldba.blogspot.com/2015/07/quick-password-generation-with-mysql.html">http://anothermysqldba.blogspot.com/2015/07/quick-password-generation-with-mysql.html</a></span><br />
<br />
<div class="post-body entry-content" id="post-body-8989280270748377654" itemprop="description articleBody" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.4; orphans: auto; position: relative; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 766px; word-spacing: 0px;">
<div dir="ltr" style="text-align: left;">
<span class="notranslate">यहाँ MySQL का उपयोग कर एक पासवर्ड आपके आवेदन को उत्पन्न करने के लिए एक त्वरित और आसान तरीका है।</span><span class="Apple-converted-space"> </span><br /><span class="notranslate">यह प्रश्न एक ऊपरी और निचले मामले की लंबाई और मूल्यों में बेतरतीब ढंग से उत्पन्न पासवर्ड बनाएगा।</span><span class="Apple-converted-space"> </span><br /><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />SELECT CONCAT(UCASE(SUBSTRING( SUBSTRING(MD5(RAND()), FLOOR( 1 + (RAND() * 5)) , FLOOR( 8 + (RAND() * 15 )) ) , FLOOR( 1 + (RAND() * 4 )) , FLOOR( 4 + (RAND() * 12 )) )),<span class="Apple-converted-space"> </span><br />SUBSTRING('!@#$%^&*', FLOOR( 1 + (RAND() * 4)) , FLOOR( 1 + (RAND() * 8)) ),<span class="Apple-converted-space"> </span><br />SUBSTRING( SUBSTRING(MD5(RAND()), FLOOR( 1 + (RAND() * 5)) , FLOOR( 8 + (RAND() * 15 )) ) , 5)) as password \G<span class="Apple-converted-space"> </span></code></div>
<br /><br /><span class="notranslate">तो दूसरी छमाही में यह एमडी 5 कि स्वचालित रूप से करता है क्योंकि शेष निचले मामले में है तो कुछ प्रतीकों कहते हैं जब लागू इस क्वेरी गतिशील पासवर्ड के 1 हिस्सा है और ऊपरी मामले में इसके लिए एक यादृच्छिक मान ले जाएगा।</span><span class="Apple-converted-space"> </span><span class="notranslate">आप निश्चित रूप से आप पसंद करेंगे जो कुछ प्रतीकों को समायोजित कर सकते हैं।</span><span class="Apple-converted-space"> </span><br /><br /><span class="notranslate">परिणामों का उदाहरण:</span><span class="Apple-converted-space"> </span><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />CREATE TABLE `generated` (<span class="Apple-converted-space"> </span><br />`password` varchar(255) NOT NULL<span class="Apple-converted-space"> </span><br />) ENGINE=InnoDB ;<span class="Apple-converted-space"> </span><br /><br />MariaDB [(none)]> INSERT INTO test.generated SELECT CONCAT(UCASE(SUBSTRING( SUBSTRING(MD5(RAND()), FLOOR( 1 + (RAND() * 5)) , FLOOR( 8 + (RAND() * 15 )) ) , FLOOR( 1 + (RAND() * 4 )) , FLOOR( 4 + (RAND() * 12 )) )), SUBSTRING('!@#$%^&*', FLOOR( 1 + (RAND() * 4)) , FLOOR( 1 + (RAND() * 8)) ),SUBSTRING( SUBSTRING(MD5(RAND()), FLOOR( 1 + (RAND() * 5)) , FLOOR( 8 + (RAND() * 15 )) ) , 5)) as password;<span class="Apple-converted-space"> </span><br /><br />MariaDB [(none)]> select * from test.generated;<span class="Apple-converted-space"> </span><br />+-----------------------------------+<span class="Apple-converted-space"> </span><br />| password |<span class="Apple-converted-space"> </span><br />+-----------------------------------+<span class="Apple-converted-space"> </span><br />| 7232E1D9$%^&*f7de22c1b14f15c8a6 |<span class="Apple-converted-space"> </span><br />| DEE22B7F7#$%541adcdd1b8e2 |<span class="Apple-converted-space"> </span><br />| 2C4BB81001@#$%^&d0d9a2126 |<span class="Apple-converted-space"> </span><br />| 941D3B92D@#$%^a4b7be92 |<span class="Apple-converted-space"> </span><br />| 1CF2563254FC@#a79bb5 |<span class="Apple-converted-space"> </span><br />| 2AE86E7D6!@#$%^&*4ca03f2e8 |<span class="Apple-converted-space"> </span><br />| 074DD8D3#$e70a1 |<span class="Apple-converted-space"> </span><br />| B2DDC!@#$%^47a252f79 |<span class="Apple-converted-space"> </span><br />| 3A6D0A#$%^&*01ce9278a2a |<span class="Apple-converted-space"> </span><br />| E9FB4CD16E19!739db9faa1616505c |<span class="Apple-converted-space"> </span><br />| 1ED7A2E1379B4!@#$%ebe60b |<span class="Apple-converted-space"> </span><br />| E9B57D71DB1@#$%^e9a4f8c2e94bf3d35 |<span class="Apple-converted-space"> </span><br />| C97982!@#$8b5c534653c06 |<span class="Apple-converted-space"> </span><br />| DE8998057C8!@#$%^8977a807 |<span class="Apple-converted-space"> </span><br />| 7C7172EB1AE5$%^&*79d2b27 |<span class="Apple-converted-space"> </span><br />| B52CE71@#$%^&*4508 |<span class="Apple-converted-space"> </span><br />| AB17714F!@#$%^&203ba4ff80f8a6 |<span class="Apple-converted-space"> </span><br />| 558D@#$04087871e29ff54 |<span class="Apple-converted-space"> </span><br />| 27A78E8EF#$%^b8cee8628d81593 |<span class="Apple-converted-space"> </span><br />| 315F2EC4#ad9913ec0595c |<span class="Apple-converted-space"> </span><br />+-----------------------------------+</code><span class="Apple-converted-space"> </span><br /><code style="font-size: 0.9em;"><br /></code></div>
</div>
</div>
<div class="post-footer" style="-webkit-text-stroke-width: 0px; background-color: #eeeeee; border-bottom-color: rgb(238, 238, 238); border-bottom-style: solid; border-bottom-width: 1px; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 10.8000001907349px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.6; margin: 20px -2px 0px; orphans: auto; padding: 5px 10px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br class="Apple-interchange-newline" /></div>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-79795119875630590702015-06-28T11:30:00.001-07:002015-06-28T11:30:12.983-07:00फाइबोनैचि अनुक्रम प्रक्रिया<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">Original post: <a href="http://anothermysqldba.blogspot.com/2015/06/fibonacci-sequence-procedure.html">http://anothermysqldba.blogspot.com/2015/06/fibonacci-sequence-procedure.html</a></span><br />
<br />
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"> </span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">मैं इस बारे में खेद तैनात बाद से अच्छी तरह से यह थोड़ी देर के लिए किया गया है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">आज मैं टीवी शो फ्रिंज के reruns देख रहा था और वाल्टर फाइबोनैचि अनुक्रम संदर्भित जब मैं पक्ष इस बात के लिए MySQL के विकल्पों के साथ नज़र रखी हो गया।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">अब इस पद पहले से ही अस्तित्व में है:</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br />
<ul style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; margin: 0.5em 0px; orphans: auto; padding: 0px 2.5em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://slava-technical.blogspot.com/2010/10/fibonacci-numbers-built-with-sql.html&usg=ALkJrhhJqjDWr9VsRStZ8z2VbaC8hOo7kg" style="color: #888888; text-decoration: none;">http://slava-technical.blogspot.com/2010/10/fibonacci-numbers-built-with-sql.html</a></span></li>
</ul>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">इसलिए मुझे लगता है कि पद संभाल लिया है और एक छोटे से इस पर विस्तार किया है, परिणाम है कि आप कॉल करते हैं और आप के बाद कर रहे हैं कि फाइबोनैचि अनुक्रम भीतर रेंज वापसी कर सकते हैं कि एक प्रक्रिया है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">प्रक्रिया में नीचे है:</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />delimiter //<span class="Apple-converted-space"> </span><br />CREATE PROCEDURE `Fibonacci`(IN POS INT, IN RANG INT, IN LIMTED INT)<span class="Apple-converted-space"> </span><br />BEGIN<span class="Apple-converted-space"> </span><br />select FORMAT(Fibonacci,0) AS Fibonacci from (<span class="Apple-converted-space"> </span><br />select @f0 Fibonacci, @fn:=@f1+@f0, @f0:=@f1, @f1:=@fn<span class="Apple-converted-space"> </span><br />from (select @f0:=0, @f1:=1, @fn:=1) x,<span class="Apple-converted-space"> </span><br />information_schema.STATISTICS p limit LIMTED) y LIMIT POS, RANG;<span class="Apple-converted-space"> </span><br />END//<span class="Apple-converted-space"> </span><br />delimiter ;<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">आप इस कॉल और जो कुछ मूल्यों के पास है और आप के बाद कर रहे पर्वतमाला कर सकते हैं।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">आप 5 वीं मूल्य चाहते हैं, तो अनुक्रम और अगले मूल्य में<span class="Apple-converted-space"> </span><i>(0 से शुरू)</i></span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />> CALL Fibonacci(5,2,100);<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span><br />| Fibonacci |<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span><br />| 5 |<span class="Apple-converted-space"> </span><br />| 8 |<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">आप 30 वीं मूल्य चाहते हैं, तो अनुक्रम और अगले मूल्य में<span class="Apple-converted-space"> </span><i>(0 से शुरू)</i></span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />> CALL Fibonacci(30,2,100);<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span><br />| Fibonacci |<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span><br />| 832,040 |<span class="Apple-converted-space"> </span><br />| 1,346,269 |<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">आप 150 वीं मूल्य चाहते हैं, तो अनुक्रम और अगले मूल्य में<span class="Apple-converted-space"> </span><i>(0 से शुरू)</i></span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />> CALL Fibonacci(150,2,1000);<span class="Apple-converted-space"> </span><br />+--------------------------------------------+<span class="Apple-converted-space"> </span><br />| Fibonacci |<span class="Apple-converted-space"> </span><br />+--------------------------------------------+<span class="Apple-converted-space"> </span><br />| 9,969,216,677,189,305,000,000,000,000,000 |<span class="Apple-converted-space"> </span><br />| 16,130,531,424,904,583,000,000,000,000,000 |<span class="Apple-converted-space"> </span><br />+--------------------------------------------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">तो तुम यह विचार मिलता है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">आप 2 बस प्रक्रिया कॉल में 2 मूल्य बदलने से भी अधिक चाहते हैं, तो अब आप भी परिणामों की रेंज का विस्तार कर सकते हैं।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />> CALL Fibonacci(0,10,100);<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span><br />| Fibonacci |<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span><br />| 0 |<span class="Apple-converted-space"> </span><br />| 1 |<span class="Apple-converted-space"> </span><br />| 1 |<span class="Apple-converted-space"> </span><br />| 2 |<span class="Apple-converted-space"> </span><br />| 3 |<span class="Apple-converted-space"> </span><br />| 5 |<span class="Apple-converted-space"> </span><br />| 8 |<span class="Apple-converted-space"> </span><br />| 13 |<span class="Apple-converted-space"> </span><br />| 21 |<span class="Apple-converted-space"> </span><br />| 34 |<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span><br /><br />> CALL Fibonacci(30,5,100);<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span><br />| Fibonacci |<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span><br />| 832,040 |<span class="Apple-converted-space"> </span><br />| 1,346,269 |<span class="Apple-converted-space"> </span><br />| 2,178,309 |<span class="Apple-converted-space"> </span><br />| 3,524,578 |<span class="Apple-converted-space"> </span><br />| 5,702,887 |<span class="Apple-converted-space"> </span><br />+-----------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.1999998092651px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">वैसे भी, किसी के मूल पोस्ट करने के लिए जाना है क्वेरी के आधार के लिए यह उपयोगी और क्रेडिट पाता है उम्मीद है।</span></div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-25764969099854306212014-12-26T10:20:00.001-08:002014-12-26T10:20:21.260-08:00/ लगाएं एक स्ट्रिंग के भीतर से एक स्ट्रिंग पार्स<div dir="ltr" style="text-align: left;" trbidi="on">
Original post: <a href="http://anothermysqldba.blogspot.com/2014/12/findparse-string-from-within-string.html">http://anothermysqldba.blogspot.com/2014/12/findparse-string-from-within-string.html</a><br />
<br />
<div class="post-body entry-content" id="post-body-4025437918173113462" itemprop="description articleBody" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.4; orphans: auto; position: relative; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 766px; word-spacing: 0px;">
<div dir="ltr" style="text-align: left;">
<span class="notranslate">तो मैंने हाल ही में एक और स्ट्रिंग के बाहर एक स्ट्रिंग पार्स करने के बारे में कुछ अलग सवाल और पदों देखा।</span><span class="Apple-converted-space"> </span><span class="notranslate">कुछ समाधान आदि नए कार्य और बनाने शामिल है, जबकि यह भी है कि कुछ मामलों में एक ही प्रश्न के भीतर किया जा सकता है।</span><span class="Apple-converted-space"> </span><br /><br /><span class="notranslate">उदाहरण के लिए, हमें हम एक यूआरएल से डोमेन बाहर खींचने के लिए देख रहे हैं कि हम कहते हैं।</span><span class="Apple-converted-space"> </span><span class="notranslate">मैं करने के लिए क्यों और कैसे यह काम करता है के रूप में विस्तार में जाने की कोशिश करेंगे।</span><span class="Apple-converted-space"> </span><br /><span class="notranslate">हम निम्न तालिका है।</span><span class="Apple-converted-space"> </span><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />CREATE TABLE `parse_example` (<span class="Apple-converted-space"> </span><br />`id` int(11) NOT NULL AUTO_INCREMENT,<span class="Apple-converted-space"> </span><br />`urldemo` varchar(150) NOT NULL,<span class="Apple-converted-space"> </span><br />PRIMARY KEY (`id`)<span class="Apple-converted-space"> </span><br />) ENGINE=InnoDB;<span class="Apple-converted-space"> </span><br />+----+----------------------------+<span class="Apple-converted-space"> </span><br />| id | urldemo |<span class="Apple-converted-space"> </span><br />+----+----------------------------+<span class="Apple-converted-space"> </span><br />| 1 | http://www.mysql.com/ |<span class="Apple-converted-space"> </span><br />| 2 | http://www.percona.com/ |<span class="Apple-converted-space"> </span><br />| 3 | https://tools.percona.com/ |<span class="Apple-converted-space"> </span><br />| 4 | https://mariadb.com/ |<span class="Apple-converted-space"> </span><br />| 5 | http://planet.mysql.com/ |<span class="Apple-converted-space"> </span><br />| 6 | http://dev.mysql.com/doc/ |<span class="Apple-converted-space"> </span><br />+----+----------------------------+<span class="Apple-converted-space"> </span></code></div>
<br /><br /><span class="notranslate">कॉम के बाद // और कुछ भी: // या https: इस उदाहरण के लिए लक्ष्य HTTP उपेक्षा करने के लिए है।</span><span class="Apple-converted-space"> </span><span class="notranslate">इसलिए हम स्थानों को खोजने के लिए खोजें उपयोग करें।</span><span class="Apple-converted-space"> </span><br /><br /><span class="notranslate">कॉम संदर्भ हम उस के साथ शुरू कर सकते हैं इतना है कि स्थिर है के बाद से आसान है।</span><span class="Apple-converted-space"> </span><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />SELECT LOCATE('.com', urldemo), urldemo FROM parse_example;<span class="Apple-converted-space"> </span><br />+-------------------------+----------------------------+<span class="Apple-converted-space"> </span><br />| LOCATE('.com', urldemo) | urldemo |<span class="Apple-converted-space"> </span><br />+-------------------------+----------------------------+<span class="Apple-converted-space"> </span><br />| 17 | http://www.mysql.com/ |<span class="Apple-converted-space"> </span><br />| 19 | http://www.percona.com/ |<span class="Apple-converted-space"> </span><br />| 22 | https://tools.percona.com/ |<span class="Apple-converted-space"> </span><br />| 16 | https://mariadb.com/ |<span class="Apple-converted-space"> </span><br />| 20 | http://planet.mysql.com/ |<span class="Apple-converted-space"> </span><br />| 17 | http://dev.mysql.com/doc/ |<span class="Apple-converted-space"> </span><br />+-------------------------+----------------------------+<span class="Apple-converted-space"> </span></code></div>
<br /><br /><span class="notranslate">ठीक है तो हम / निकालना चाहते हैं, कि क्या स्थान है?</span><span class="Apple-converted-space"> </span><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />SELECT LOCATE('.com', urldemo) as start, LOCATE('.com', urldemo) +4 as end, SUBSTRING(urldemo FROM LOCATE('.com', urldemo) + 4 ) AS resulting , urldemo FROM parse_example;<span class="Apple-converted-space"> </span><br />+-------+-----+-----------+----------------------------+<span class="Apple-converted-space"> </span><br />| start | end | resulting | urldemo |<span class="Apple-converted-space"> </span><br />+-------+-----+-----------+----------------------------+<span class="Apple-converted-space"> </span><br />| 17 | 21 | / | http://www.mysql.com/ |<span class="Apple-converted-space"> </span><br />| 19 | 23 | / | http://www.percona.com/ |<span class="Apple-converted-space"> </span><br />| 22 | 26 | / | https://tools.percona.com/ |<span class="Apple-converted-space"> </span><br />| 16 | 20 | / | https://mariadb.com/ |<span class="Apple-converted-space"> </span><br />| 20 | 24 | / | http://planet.mysql.com/ |<span class="Apple-converted-space"> </span><br />| 17 | 21 | /doc/ | http://dev.mysql.com/doc/ |<span class="Apple-converted-space"> </span><br />+-------+-----+-----------+----------------------------+</code></div>
<br /><span class="notranslate">यह मैं ही पालन करने के लिए परिणामों को आसान बनाने के लिए क्षेत्र उपनाम रखा है, हमें हमारे अंत की स्थिति देता है।</span><span class="Apple-converted-space"> </span><br /><br /><span class="notranslate">उन्हें बाद //, तो हम सिर्फ स्ट्रिंग में / दूसरे के स्थान की जरूरत: अब HTTP और HTTPS के बाद बाहर छँटाई बहुत आसान के रूप में अच्छी तरह से वे दोनों के रूप में वास्तव में है।</span><span class="Apple-converted-space"> </span><br /><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />SELECT LOCATE('/', urldemo) as first, LOCATE('/', urldemo) +1 as second, urldemo<span class="Apple-converted-space"> </span><br />FROM parse_example;<span class="Apple-converted-space"> </span><br />+-------+--------+----------------------------+<span class="Apple-converted-space"> </span><br />| first | second | urldemo |<span class="Apple-converted-space"> </span><br />+-------+--------+----------------------------+<span class="Apple-converted-space"> </span><br />| 6 | 7 | http://www.mysql.com/ |<span class="Apple-converted-space"> </span><br />| 6 | 7 | http://www.percona.com/ |<span class="Apple-converted-space"> </span><br />| 7 | 8 | https://tools.percona.com/ |<span class="Apple-converted-space"> </span><br />| 7 | 8 | https://mariadb.com/ |<span class="Apple-converted-space"> </span><br />| 6 | 7 | http://planet.mysql.com/ |<span class="Apple-converted-space"> </span><br />| 6 | 7 | http://dev.mysql.com/doc/ |<span class="Apple-converted-space"> </span><br />+-------+--------+----------------------------+<span class="Apple-converted-space"> </span></code></div>
<br /><br /><span class="notranslate">इन प्रश्नों सिर्फ अंतिम क्वेरी के विभिन्न पहलुओं कर रही हो जाएगा क्या दिखा रहे हैं।</span><span class="Apple-converted-space"> </span><span class="notranslate">इसलिए हमें यह सब एक साथ डाल दिया।</span><span class="Apple-converted-space"> </span><br /><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />SELECT<span class="Apple-converted-space"> </span><br />TRIM(TRAILING SUBSTRING(urldemo FROM LOCATE('.com', urldemo) + 4 )<span class="Apple-converted-space"> </span><br />FROM SUBSTRING(urldemo FROM LOCATE('/', urldemo) + 2 ) ) AS parsed_domain ,<span class="Apple-converted-space"> </span><br />urldemo as original_url<span class="Apple-converted-space"> </span><br />FROM parse_example;<span class="Apple-converted-space"> </span><br />+-------------------+----------------------------+<span class="Apple-converted-space"> </span><br />| parsed_domain | original_url |<span class="Apple-converted-space"> </span><br />+-------------------+----------------------------+<span class="Apple-converted-space"> </span><br />| www.mysql.com | http://www.mysql.com/ |<span class="Apple-converted-space"> </span><br />| www.percona.com | http://www.percona.com/ |<span class="Apple-converted-space"> </span><br />| tools.percona.com | https://tools.percona.com/ |<span class="Apple-converted-space"> </span><br />| mariadb.com | https://mariadb.com/ |<span class="Apple-converted-space"> </span><br />| planet.mysql.com | http://planet.mysql.com/ |<span class="Apple-converted-space"> </span><br />| dev.mysql.com | http://dev.mysql.com/doc/ |<span class="Apple-converted-space"> </span><br />+-------------------+----------------------------+<span class="Apple-converted-space"> </span></code></div>
<br /><br /><span class="notranslate">अब उम्मीद है कि आप की जरूरत है जो कुछ भी बाहर पार्स करने में सक्षम हो मदद करता है।</span><span class="Apple-converted-space"> </span><span class="notranslate">यह उदाहरण एक यूआरएल तक सीमित है।</span><span class="Apple-converted-space"> </span><span class="notranslate">लेकिन कार्य के कुछ उदाहरण के बाद से पहले से ही यहाँ आप की जरूरत है जो कुछ पार्स करने के लिए उपयोग कर सकते हैं कि एक समारोह के मेरे उदाहरण है।</span><span class="Apple-converted-space"> </span><br /><br /><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />CREATE FUNCTION PARSE_STRING(delimiterA VARCHAR(50), delimiterB VARCHAR(50), passed_string VARCHAR(255) )<span class="Apple-converted-space"> </span><br />RETURNS VARCHAR(255) DETERMINISTIC<span class="Apple-converted-space"> </span><br />RETURN<span class="Apple-converted-space"> </span><br />TRIM(TRAILING SUBSTRING(passed_string FROM LOCATE(delimiterB, passed_string) )<span class="Apple-converted-space"> </span><br />FROM SUBSTRING(passed_string FROM LOCATE(delimiterA, passed_string) + CHAR_LENGTH(delimiterA) ) ) ;<span class="Apple-converted-space"> </span><br /><br />SELECT PARSE_STRING('//','.com', urldemo) FROM parse_example;<span class="Apple-converted-space"> </span><br />+------------------------------------+<span class="Apple-converted-space"> </span><br />| PARSE_STRING('//','.com', urldemo) |<span class="Apple-converted-space"> </span><br />+------------------------------------+<span class="Apple-converted-space"> </span><br />| www.mysql |<span class="Apple-converted-space"> </span><br />| www.percona |<span class="Apple-converted-space"> </span><br />| tools.percona |<span class="Apple-converted-space"> </span><br />| mariadb |<span class="Apple-converted-space"> </span><br />| planet.mysql |<span class="Apple-converted-space"> </span><br />| dev.mysql |<span class="Apple-converted-space"> </span><br />+------------------------------------+<span class="Apple-converted-space"> </span></code></div>
<br /><br /><span class="notranslate">एक पूरा नाम क्षेत्र से एक अंतिम नाम खींचो:</span><span class="Apple-converted-space"> </span><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />SELECT PARSE_STRING('John ','', 'John Smith') ;<span class="Apple-converted-space"> </span><br />+----------------------------------------+<span class="Apple-converted-space"> </span><br />| PARSE_STRING('John ','', 'John Smith') |<span class="Apple-converted-space"> </span><br />+----------------------------------------+<span class="Apple-converted-space"> </span><br />| Smith |<span class="Apple-converted-space"> </span><br />+----------------------------------------+<span class="Apple-converted-space"> </span></code></div>
<br /><br /><span class="notranslate">पहला नाम खींचो</span><span class="Apple-converted-space"> </span><br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"><br />SELECT PARSE_STRING('',' Smith', 'John Smith') ;<span class="Apple-converted-space"> </span><br />+-----------------------------------------+<span class="Apple-converted-space"> </span><br />| PARSE_STRING('',' Smith', 'John Smith') |<span class="Apple-converted-space"> </span><br />+-----------------------------------------+<span class="Apple-converted-space"> </span><br />| John |<span class="Apple-converted-space"> </span><br />+-----------------------------------------+<span class="Apple-converted-space"> </span></code></div>
<br /><br /><span class="notranslate">नाम उदाहरणों के साथ दी जाती है कि आप सीमांकक मूल्यों को पता करने की आवश्यकता होगी।</span><span class="Apple-converted-space"> </span><span class="notranslate">लेकिन यह आप पर निर्माण कर सकते हैं सिर्फ एक उदाहरण है।</span></div>
</div>
<div class="post-footer" style="-webkit-text-stroke-width: 0px; background-color: #eeeeee; border-bottom-color: rgb(238, 238, 238); border-bottom-style: solid; border-bottom-width: 1px; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.6; margin: 20px -2px 0px; orphans: auto; padding: 5px 10px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<br class="Apple-interchange-newline" /></div>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-72547693509016585482014-12-18T17:43:00.000-08:002014-12-18T17:43:12.286-08:00एक MySQL विभाजन और SUBPARTITION उदाहरण<div dir="ltr" style="text-align: left;" trbidi="on">
Original post: <a href="http://anothermysqldba.blogspot.com/2014/12/a-mysql-partition-and-subpartition.html">http://anothermysqldba.blogspot.com/2014/12/a-mysql-partition-and-subpartition.html</a><br />
<br />
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो यह एक विभाजन और MySQL में एक SUBPARTITION कैसे स्थापित करने के लिए सिर्फ एक सरल उदाहरण है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">यहाँ अवधारणा आप एक datetime क्षेत्र में कई मूल्यों के साथ एक तालिका में डेटा है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">आप (यदि आप करते हैं सबसे अधिक संभावना) कई साल भर में फैला हुआ है कि डेटा हो सकता है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इसलिए इस डेटा विभाजन करने के लिए एक ही रास्ता वर्ष से इसे तरह है, लेकिन फिर भी लगता है कि वार्षिक विभाजन के भीतर माह से यह सॉर्ट करने के लिए है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">नीचे आप विचार के लिए उपयोग कर सकते हैं कि एक उदाहरण है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">परीक्षण मेज पर विचार करें।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">के साथ अपनी मेज पाठ्यक्रम के कई क्षेत्रों है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br />
<div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />CREATE TABLE `t1` (<span class="Apple-converted-space"> </span><br />`id` int(11) NOT NULL AUTO_INCREMENT,<span class="Apple-converted-space"> </span><br />`date_time` datetime DEFAULT NOW(),<span class="Apple-converted-space"> </span><br />PRIMARY KEY (`id`)<span class="Apple-converted-space"> </span><br />) ENGINE=InnoDB;<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">पहले मैं DATE_TIME क्षेत्र के लिए यादृच्छिक मूल्यों के साथ परीक्षण तालिका आबाद होगा।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />delimiter //<span class="Apple-converted-space"> </span><br />CREATE PROCEDURE populate_t1( IN rowsofdata INT )<span class="Apple-converted-space"> </span><br />BEGIN<span class="Apple-converted-space"> </span><br /><br />SET @A = 1;<span class="Apple-converted-space"> </span><br />SET @B = 25 - @A;<span class="Apple-converted-space"> </span><br /><br />WHILE rowsofdata > 0 DO<span class="Apple-converted-space"> </span><br />SELECT FLOOR( @A + (RAND() * @B )) INTO @randvalue;<span class="Apple-converted-space"> </span><br />INSERT INTO t1<span class="Apple-converted-space"> </span><br />SELECT NULL, NOW() - INTERVAL @randvalue MONTH;<span class="Apple-converted-space"> </span><br />SET rowsofdata = rowsofdata - 1;<span class="Apple-converted-space"> </span><br />END WHILE;<span class="Apple-converted-space"> </span><br />END//<span class="Apple-converted-space"> </span><br />delimiter ;<span class="Apple-converted-space"> </span><br />call populate_t1(1000);<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं के साथ समाप्त हुआ मूल्यों का किस तरह देखने के लिए जाँच करें:</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />> SELECT COUNT(*) FROM t1 WHERE date_time BETWEEN '2012-01-01 00:00:00' AND '2013-01-01 00:00:00'\G<span class="Apple-converted-space"> </span><br />*************************** 1. row ***************************<span class="Apple-converted-space"> </span><br />COUNT(*): 43<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />> SELECT COUNT(*) FROM t1 WHERE date_time BETWEEN '2013-01-01 00:00:00' AND '2014-01-01 00:00:00'\G<span class="Apple-converted-space"> </span><br />*************************** 1. row ***************************<span class="Apple-converted-space"> </span><br />COUNT(*): 529<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />> SELECT COUNT(*) FROM t1 WHERE date_time BETWEEN '2014-01-01 00:00:00' AND NOW() \G<br />*************************** 1. row ***************************<span class="Apple-converted-space"> </span><br />COUNT(*): 428<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं विभाजन के माध्यम से मूल्यों मायने रखता है मेरी विभाजन जोड़ने और फिर परीक्षण कर सकते हैं तो अब मैं टेबल बदल सकते हैं।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />ALTER TABLE t1 DROP PRIMARY KEY, ADD PRIMARY KEY (`id`,`date_time`), LOCK=SHARED;<span class="Apple-converted-space"> </span><br />ALTER TABLE t1<span class="Apple-converted-space"> </span><br />PARTITION BY RANGE( YEAR(date_time) )<span class="Apple-converted-space"> </span><br />SUBPARTITION BY HASH(MONTH(date_time) ) (<span class="Apple-converted-space"> </span><br /><br />PARTITION p2012 VALUES LESS THAN (2013) (<span class="Apple-converted-space"> </span><br />SUBPARTITION dec_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_2012,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_2012<span class="Apple-converted-space"> </span><br />),<span class="Apple-converted-space"> </span><br /><br />PARTITION p2013 VALUES LESS THAN (2014) (<span class="Apple-converted-space"> </span><br />SUBPARTITION dec_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_2013,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_2013<span class="Apple-converted-space"> </span><br /><br />),<span class="Apple-converted-space"> </span><br />PARTITION p2014 VALUES LESS THAN (2015) (<span class="Apple-converted-space"> </span><br />SUBPARTITION dec_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_2014,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_2014<span class="Apple-converted-space"> </span><br />),<span class="Apple-converted-space"> </span><br /><br />PARTITION pmax VALUES LESS THAN MAXVALUE (<span class="Apple-converted-space"> </span><br />SUBPARTITION dec_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_max<span class="Apple-converted-space"> </span><br />)<span class="Apple-converted-space"> </span><br />);<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तालिका बनाने के अपने शो अब बहुत अलग है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />> show create table t1;<span class="Apple-converted-space"> </span><br />CREATE TABLE `t1` (<span class="Apple-converted-space"> </span><br />`id` int(11) NOT NULL AUTO_INCREMENT,<span class="Apple-converted-space"> </span><br />`date_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,<span class="Apple-converted-space"> </span><br />PRIMARY KEY (`id`,`date_time`)<span class="Apple-converted-space"> </span><br />) ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=latin1<span class="Apple-converted-space"> </span><br />/*!50100 PARTITION BY RANGE ( YEAR(date_time))<span class="Apple-converted-space"> </span><br />SUBPARTITION BY HASH (MONTH(date_time))<span class="Apple-converted-space"> </span><br />(PARTITION p2012 VALUES LESS THAN (2013)<span class="Apple-converted-space"> </span><br />(SUBPARTITION dec_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_2012 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_2012 ENGINE = InnoDB),<span class="Apple-converted-space"> </span><br />PARTITION p2013 VALUES LESS THAN (2014)<span class="Apple-converted-space"> </span><br />(SUBPARTITION dec_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_2013 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_2013 ENGINE = InnoDB),<span class="Apple-converted-space"> </span><br />PARTITION p2014 VALUES LESS THAN (2015)<span class="Apple-converted-space"> </span><br />(SUBPARTITION dec_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_2014 ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_2014 ENGINE = InnoDB),<span class="Apple-converted-space"> </span><br />PARTITION pmax VALUES LESS THAN MAXVALUE<span class="Apple-converted-space"> </span><br />(SUBPARTITION dec_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_max ENGINE = InnoDB,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_max ENGINE = InnoDB))<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">उम्मीद के रूप में तो हम अभी भी हमारे मूल्य भरोसा कर सकते हैं?</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />> SELECT count(*) FROM t1 PARTITION (p2012) \G<span class="Apple-converted-space"> </span><br />*************************** 1. row ***************************<span class="Apple-converted-space"> </span><br />count(*): 43<span class="Apple-converted-space"> </span><br />> SELECT count(*) FROM t1 PARTITION (p2013) \G<span class="Apple-converted-space"> </span><br />*************************** 1. row ***************************<span class="Apple-converted-space"> </span><br />count(*): 529<span class="Apple-converted-space"> </span><br />> SELECT count(*) FROM t1 PARTITION (p2014) \G<span class="Apple-converted-space"> </span><br />*************************** 1. row ***************************<span class="Apple-converted-space"> </span><br />count(*): 428<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">अब तक तो अच्छा, सभी मानों हम पहले था गणना करने के लिए मिलान।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इसलिए हम भी गिनती या subpartition प्रति चुन सकते हैं।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />> SELECT * FROM t1 PARTITION (dec_2012) limit 5;<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| id | date_time |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| 59 | 2012-12-19 00:59:57 |<span class="Apple-converted-space"> </span><br />| 68 | 2012-12-19 00:59:58 |<span class="Apple-converted-space"> </span><br />| 93 | 2012-12-19 00:59:59 |<span class="Apple-converted-space"> </span><br />| 105 | 2012-12-19 00:59:59 |<span class="Apple-converted-space"> </span><br />| 111 | 2012-12-19 00:59:59 |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br /><br />> SELECT * FROM t1 PARTITION (jan_2013) limit 5;<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| id | date_time |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| 6 | 2013-01-19 00:59:55 |<span class="Apple-converted-space"> </span><br />| 29 | 2013-01-19 00:59:56 |<span class="Apple-converted-space"> </span><br />| 55 | 2013-01-19 00:59:57 |<span class="Apple-converted-space"> </span><br />| 79 | 2013-01-19 00:59:58 |<span class="Apple-converted-space"> </span><br />| 100 | 2013-01-19 00:59:59 |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br /><br />> SELECT * FROM t1 PARTITION (jan_2014) limit 5;<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| id | date_time |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| 16 | 2014-01-19 00:59:55 |<span class="Apple-converted-space"> </span><br />| 190 | 2014-01-19 01:00:04 |<span class="Apple-converted-space"> </span><br />| 191 | 2014-01-19 01:00:04 |<span class="Apple-converted-space"> </span><br />| 229 | 2014-01-19 01:00:05 |<span class="Apple-converted-space"> </span><br />| 234 | 2014-01-19 01:00:06 |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br /><br />> SELECT * FROM t1 PARTITION (jun_2014) limit 5;<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| id | date_time |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| 13 | 2014-06-19 00:59:55 |<span class="Apple-converted-space"> </span><br />| 189 | 2014-06-19 01:00:04 |<span class="Apple-converted-space"> </span><br />| 221 | 2014-06-19 01:00:05 |<span class="Apple-converted-space"> </span><br />| 222 | 2014-06-19 01:00:05 |<span class="Apple-converted-space"> </span><br />| 238 | 2014-06-19 01:00:06 |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br /><br />> SELECT * FROM t1 PARTITION (dec_2013) limit 5;<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| id | date_time |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span><br />| 50 | 2013-12-19 00:59:57 |<span class="Apple-converted-space"> </span><br />| 74 | 2013-12-19 00:59:58 |<span class="Apple-converted-space"> </span><br />| 98 | 2013-12-19 00:59:59 |<span class="Apple-converted-space"> </span><br />| 107 | 2013-12-19 00:59:59 |<span class="Apple-converted-space"> </span><br />| 167 | 2013-12-19 01:00:02 |<span class="Apple-converted-space"> </span><br />+-----+---------------------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इस महान और आसान है लेकिन वर्ष 2015 या 2016 के आसपास आता है तो क्या होगा?</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">उस डेटा के सभी pmax विभाजन में होगा।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो कैसे हम p2014 और pmax के बीच में एक नया विभाजन जोड़ सकता हूँ?</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">आप pmax में कोई डाटा नहीं था, तो आप इसे छोड़ देता है और अंत पर एक नया विभाजन जोड़ सकता है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">लेकिन यह विभाजन के पुनर्निर्माण के लिए बस के रूप में आसान है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इस pmax विभाजन लेने के लिए और हमारे नए विभाजन में बदल जाएगा।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />ALTER TABLE t1 REORGANIZE PARTITION pmax INTO (<span class="Apple-converted-space"> </span><br />PARTITION p2015 VALUES LESS THAN (2016) (<span class="Apple-converted-space"> </span><br />SUBPARTITION dec_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_2015,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_2015<span class="Apple-converted-space"> </span><br />),<span class="Apple-converted-space"> </span><br />PARTITION pmax VALUES LESS THAN MAXVALUE (<span class="Apple-converted-space"> </span><br />SUBPARTITION dec_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION jan_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION feb_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION mar_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION apr_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION may_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION jun_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION jul_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION aug_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION sep_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION oct_max,<span class="Apple-converted-space"> </span><br />SUBPARTITION nov_max<span class="Apple-converted-space"> </span><br />)<span class="Apple-converted-space"> </span><br />);<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">यह भाग्य का सबसे अच्छा मदद करता है उम्मीद।</span></div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-15189791533842603562014-11-27T12:22:00.002-08:002014-11-27T12:22:46.418-08:00Mysqlbinlog बिंदु में समय-वसूली उदाहरण के साथ खो दिया है MySQL डेटा की वसूली<div dir="ltr" style="text-align: left;" trbidi="on">
Original post: <a href="http://anothermysqldba.blogspot.com/2014/11/recover-lost-mysql-data-with.html">http://anothermysqldba.blogspot.com/2014/11/recover-lost-mysql-data-with.html</a><br />
<br />
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">बैकअप ... बैकअप ... बैकअप ... लेकिन निश्चित रूप से .. आप भी अक्सर अन्यथा वे बेकार हो सकता है उन लोगों के बैकअप की निगरानी और परीक्षण की जरूरत है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">अपने MySQL होने<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/binary-log.html&usg=ALkJrhhFxnhDC9Vjxe9ism2lx-uDXRo9TQ" style="color: #888888; text-decoration: none;">binlogs</a><span class="Apple-converted-space"> </span>निश्चित रूप से और साथ ही एक आपातकालीन स्थिति के बार में आप मदद कर सकते हैं सक्षम होना चाहिए।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">MySQL के binlogs अक्सर MySQL के प्रतिकृति के संबंध में संदर्भित कर रहे हैं, एक अच्छे कारण के लिए, वे डेटा (बदल कि प्रश्नों या घटनाओं के सभी स्टोर<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/binary-log-formats.html&usg=ALkJrhjGvQAdABXG8Dxg-_ChDlyeAfCr1w" style="color: #888888; text-decoration: none;">पंक्ति आधारित</a>एक छोटे से अलग है, लेकिन यह एक उदाहरण है)।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">वे उपलब्ध कराने वसूली विकल्पों पर विचार जब binlogs सर्वर के प्रदर्शन पर बहुत कम प्रभाव पड़ता है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br />
<div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />[anothermysqldba]> show variables like 'log_bin%';<span class="Apple-converted-space"> </span><br />+---------------------------------+--------------------------------------------+<span class="Apple-converted-space"> </span><br />| Variable_name | Value |<span class="Apple-converted-space"> </span><br />+---------------------------------+--------------------------------------------+<span class="Apple-converted-space"> </span><br />| log_bin | ON |<span class="Apple-converted-space"> </span><br />| log_bin_basename | /var/lib/mysql/binlogs/mysql-binlogs |<span class="Apple-converted-space"> </span><br />| log_bin_index | /var/lib/mysql/binlogs/mysql-binlogs.index |<span class="Apple-converted-space"> </span><br /><br />show variables like 'binlog_format%';<span class="Apple-converted-space"> </span><br />+---------------+-------+<span class="Apple-converted-space"> </span><br />| Variable_name | Value |<span class="Apple-converted-space"> </span><br />+---------------+-------+<span class="Apple-converted-space"> </span><br />| binlog_format | MIXED |<span class="Apple-converted-space"> </span><br />+---------------+-------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो यह एक binlog से डाटा को ठीक हैं और वापस डेटाबेस के लिए इसे लागू करने के लिए mysqlbinlog का उपयोग करते हुए सिर्फ एक सरल उदाहरण है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">पहले हम ढीला करने के लिए कुछ की जरूरत है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">कुछ हमारे डेटाबेस को कुछ नहीं करना था, तो हम डाटा को ठीक करने में सक्षम होने की जरूरत है या हो सकता है कि यह सिर्फ किसी गलती से उबरने के लिए एक तरीका है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />CREATE TABLE `table_w_rdata` (<span class="Apple-converted-space"> </span><br />`id` int(11) NOT NULL AUTO_INCREMENT,<span class="Apple-converted-space"> </span><br />`somedata` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,<span class="Apple-converted-space"> </span><br />`moredata` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,<span class="Apple-converted-space"> </span><br />PRIMARY KEY (`id`)<span class="Apple-converted-space"> </span><br />) ENGINE=InnoDB;<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">हम यहाँ नाटक और हम डेवलपर्स / बहुत अच्छी तरह से संवाद स्थापित करने और / या उनके कोड की प्रतियां बचत नहीं कर रहे हैं कि DBAs है कि ग्रहण कर सकते हैं।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />delimiter //<span class="Apple-converted-space"> </span><br />CREATE PROCEDURE populate_dummydata( IN rowsofdata INT )<span class="Apple-converted-space"> </span><br />BEGIN<span class="Apple-converted-space"> </span><br /><br />SET @A = 3;<span class="Apple-converted-space"> </span><br />SET @B = 15 - @A;<span class="Apple-converted-space"> </span><br />SET @C = 16;<span class="Apple-converted-space"> </span><br />SET @D = 25 - @C;<span class="Apple-converted-space"> </span><br /><br />WHILE rowsofdata > 0 DO<span class="Apple-converted-space"> </span><br />INSERT INTO table_w_rdata<span class="Apple-converted-space"> </span><br />SELECT NULL, SUBSTR(md5(''),FLOOR( @A + (RAND() * @B ))) as somedata, SUBSTR(md5(''),FLOOR( @C + (RAND() * @D ))) AS moredata ;<span class="Apple-converted-space"> </span><br />SET rowsofdata = rowsofdata - 1;<span class="Apple-converted-space"> </span><br />END WHILE;<span class="Apple-converted-space"> </span><br />END//<span class="Apple-converted-space"> </span><br />delimiter ;<span class="Apple-converted-space"> </span><br />call populate_dummydata(50);<span class="Apple-converted-space"> </span><br /><br />> SELECT NOW() \G<span class="Apple-converted-space"> </span><br />*************************** 1. row ***************************<span class="Apple-converted-space"> </span><br />NOW(): 2014-11-27 17:32:25<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />> SELECT * from table_w_rdata WHERE id > 45;<span class="Apple-converted-space"> </span><br />+----+----------------------------+------------------+<span class="Apple-converted-space"> </span><br />| id | somedata | moredata |<span class="Apple-converted-space"> </span><br />+----+----------------------------+------------------+<span class="Apple-converted-space"> </span><br />| 46 | b204e9800998ecf8427e | 0998ecf8427e |<span class="Apple-converted-space"> </span><br />| 47 | d98f00b204e9800998ecf8427e | 8ecf8427e |<span class="Apple-converted-space"> </span><br />| 48 | b204e9800998ecf8427e | 800998ecf8427e |<span class="Apple-converted-space"> </span><br />| 49 | 98f00b204e9800998ecf8427e | e9800998ecf8427e |<span class="Apple-converted-space"> </span><br />| 50 | 98f00b204e9800998ecf8427e | 998ecf8427e |<span class="Apple-converted-space"> </span><br />+----+----------------------------+------------------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">एक प्रक्रिया बनाई गई है, जबकि इसे बाद में किसी और को गलत तरीके से किसी के द्वारा लिखा जाता है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />DROP PROCEDURE IF EXISTS populate_dummydata ;<span class="Apple-converted-space"> </span><br />delimiter //<span class="Apple-converted-space"> </span><br />CREATE PROCEDURE populate_dummydata( IN rowsofdata INT )<span class="Apple-converted-space"> </span><br />BEGIN<span class="Apple-converted-space"> </span><br /><br />SET @A = 3;<span class="Apple-converted-space"> </span><br />SET @B = 15 - @A;<span class="Apple-converted-space"> </span><br />SET @C = 16;<span class="Apple-converted-space"> </span><br />SET @D = 25 - @C;<span class="Apple-converted-space"> </span><br /><br />WHILE rowsofdata > 0 DO<span class="Apple-converted-space"> </span><br />INSERT INTO table_w_rdata<span class="Apple-converted-space"> </span><br />SELECT NULL, SUBSTR(md5(''),FLOOR( @C + (RAND() * @A ))) as somedata, SUBSTR(md5(''),FLOOR( @B + (RAND() * @D ))) AS moredata ;<span class="Apple-converted-space"> </span><br />SET rowsofdata = rowsofdata - 1;<span class="Apple-converted-space"> </span><br />END WHILE;<span class="Apple-converted-space"> </span><br />END//<span class="Apple-converted-space"> </span><br />delimiter ;<span class="Apple-converted-space"> </span><br /><br />call populate_dummydata(50);<span class="Apple-converted-space"> </span><br />> SELECT NOW(); SELECT * from table_w_rdata WHERE id > 95;<span class="Apple-converted-space"> </span><br />+---------------------+<span class="Apple-converted-space"> </span><br />| NOW() |<span class="Apple-converted-space"> </span><br />+---------------------+<span class="Apple-converted-space"> </span><br />| 2014-11-27 17:36:28 |<span class="Apple-converted-space"> </span><br />+---------------------+<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />+-----+-------------------+---------------------+<span class="Apple-converted-space"> </span><br />| id | somedata | moredata |<span class="Apple-converted-space"> </span><br />+-----+-------------------+---------------------+<span class="Apple-converted-space"> </span><br />| 96 | 4e9800998ecf8427e | 00998ecf8427e |<span class="Apple-converted-space"> </span><br />| 97 | 9800998ecf8427e | 800998ecf8427e |<span class="Apple-converted-space"> </span><br />| 98 | e9800998ecf8427e | 204e9800998ecf8427e |<span class="Apple-converted-space"> </span><br />| 99 | e9800998ecf8427e | 4e9800998ecf8427e |<span class="Apple-converted-space"> </span><br />| 100 | 9800998ecf8427e | 04e9800998ecf8427e |<span class="Apple-converted-space"> </span><br />+-----+-------------------+---------------------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">टीम चाहता था जैसे प्रक्रिया की प्रतिस्थापित संस्करण यादृच्छिक मूल्यों नहीं पैदा कर रहा है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">प्रक्रिया के मूल निर्माता सिर्फ निराशा से बाहर निकलें।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो क्या करें?</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">यह के रूप में अच्छी तरह से बनाया गया था के बाद से थोड़ा सा समय अतीत है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">हम गलत प्रक्रिया बिन लॉग्स के आसपास अभी भी कर रहे हैं बनाया है और हमारे लिए भाग्यशाली था जब डेटाबेस का नाम, दिनचर्या नाम और सामान्य समय सीमा पता है, इसलिए हम इसे पाने के लिए जा सकते हैं।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">हम सिर्फ एक चाहते आसपास के बाद से एक सामान्य देख ले जाना है<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/point-in-time-recovery.html&usg=ALkJrhjAO0sNCyu6fJSn8tvGtfxpUOE7pQ" style="color: #888888; text-decoration: none;">बिंदु में समय-वसूली</a><span class="Apple-converted-space"> </span>इस procedure.We की प्रक्रिया और पहले और बाद binlog में स्थिति को खोजने के लिए होता है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />NOW(): 2014-11-27 19:46:17<span class="Apple-converted-space"> </span><br /># mysqlbinlog --start-datetime=20141127173200 --stop-datetime=20141127173628 --database=anothermysqldba mysql-binlogs.000001 | more<span class="Apple-converted-space"> </span><br /><br />at 253053<span class="Apple-converted-space"> </span><br />at 253564<span class="Apple-converted-space"> </span><br /><br /># mysql anothermysqldba<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://anothermysqldba.blogspot.com/2013/05/mysql-users-grants-mysqlconfigeditor.html&usg=ALkJrhjNvJwwGBXQTP8L612OGPZ9NldHiA" style="color: #888888; text-decoration: none;">--login-path</a><span class="Apple-converted-space"> </span>=local -e "DROP PROCEDURE populate_dummydata";<span class="Apple-converted-space"> </span><br /># mysqlbinlog --start-position=253053 --stop-position=253564 --database=anothermysqldba mysql-binlogs.000001 | mysql<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://anothermysqldba.blogspot.com/2013/05/mysql-users-grants-mysqlconfigeditor.html&usg=ALkJrhjNvJwwGBXQTP8L612OGPZ9NldHiA" style="color: #888888; text-decoration: none;">--login-path</a><span class="Apple-converted-space"> </span>=local anothermysqldba<span class="Apple-converted-space"> </span><br /><br /><br />> SHOW CREATE PROCEDURE populate_dummydata\G<span class="Apple-converted-space"> </span><br />*************************** 1. row ***************************<span class="Apple-converted-space"> </span><br />Procedure: populate_dummydata<span class="Apple-converted-space"> </span><br />sql_mode: NO_AUTO_VALUE_ON_ZERO,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION<span class="Apple-converted-space"> </span><br />Create Procedure: CREATE DEFINER=`root`@`localhost` PROCEDURE `populate_dummydata`( IN rowsofdata INT )<span class="Apple-converted-space"> </span><br />BEGIN<span class="Apple-converted-space"> </span><br /><br />SET @A = 3;<span class="Apple-converted-space"> </span><br />SET @B = 15 - @A;<span class="Apple-converted-space"> </span><br />SET @C = 16;<span class="Apple-converted-space"> </span><br />SET @D = 25 - @C;<span class="Apple-converted-space"> </span><br /><br />WHILE rowsofdata > 0 DO<span class="Apple-converted-space"> </span><br />INSERT INTO table_w_rdata<span class="Apple-converted-space"> </span><br />SELECT NULL, SUBSTR(md5(''),FLOOR( @A + (RAND() * @B ))) as somedata, SUBSTR(md5(''),FLOOR( @C + (RAND() * @D ))) AS moredata ;<span class="Apple-converted-space"> </span><br />SET rowsofdata = rowsofdata - 1;<span class="Apple-converted-space"> </span><br />END WHILE;<span class="Apple-converted-space"> </span><br />END<span class="Apple-converted-space"> </span><br />character_set_client: utf8<span class="Apple-converted-space"> </span><br />collation_connection: utf8_general_ci<span class="Apple-converted-space"> </span><br />Database Collation: latin1_swedish_ci<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />NOW(): 2014-11-27 19:51:03<span class="Apple-converted-space"> </span><br />> call populate_dummydata(50);<span class="Apple-converted-space"> </span><br />> SELECT * from table_w_rdata WHERE id > 145;<span class="Apple-converted-space"> </span><br />+-----+-----------------------------+------------------+<span class="Apple-converted-space"> </span><br />| id | somedata | moredata |<span class="Apple-converted-space"> </span><br />+-----+-----------------------------+------------------+<span class="Apple-converted-space"> </span><br />| 146 | 98f00b204e9800998ecf8427e | 800998ecf8427e |<span class="Apple-converted-space"> </span><br />| 147 | cd98f00b204e9800998ecf8427e | 800998ecf8427e |<span class="Apple-converted-space"> </span><br />| 148 | 204e9800998ecf8427e | 98ecf8427e |<span class="Apple-converted-space"> </span><br />| 149 | d98f00b204e9800998ecf8427e | e9800998ecf8427e |<span class="Apple-converted-space"> </span><br />| 150 | 204e9800998ecf8427e | 9800998ecf8427e |<span class="Apple-converted-space"> </span><br />+-----+-----------------------------+------------------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">हम के माध्यम से बाइनरी प्रवेश से हमारे प्रक्रिया बरामद<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/point-in-time-recovery.html&usg=ALkJrhjAO0sNCyu6fJSn8tvGtfxpUOE7pQ" style="color: #888888; text-decoration: none;">बिंदु में समय-वसूली</a><span class="Apple-converted-space"> </span>।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">यह एक सरल उदाहरण है, लेकिन इसे आप आगे बढ़ने का उपयोग कर सकते हैं उपकरणों का एक उदाहरण है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">Binlogs इतना मूल्यवान हैं यही कारण है।</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">सहायक यूआरएल:</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><ul style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; margin: 0.5em 0px; orphans: auto; padding: 0px 2.5em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/binary-log.html&usg=ALkJrhhFxnhDC9Vjxe9ism2lx-uDXRo9TQ" style="color: #888888; text-decoration: none;">http://dev.mysql.com/doc/refman/5.6/en/binary-log.html</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/point-in-time-recovery.html&usg=ALkJrhjAO0sNCyu6fJSn8tvGtfxpUOE7pQ" style="color: #888888; text-decoration: none;">http://dev.mysql.com/doc/refman/5.6/en/point-in-time-recovery.html</a></span></li>
</ul>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-35633743444646640602014-11-11T14:31:00.001-08:002014-11-11T14:31:20.376-08:00systemctl और MySQL<div dir="ltr" style="text-align: left;" trbidi="on">
Original post: <a href="http://anothermysqldba.blogspot.com/2014/11/systemctl-and-mysql.html">http://anothermysqldba.blogspot.com/2014/11/systemctl-and-mysql.html</a><br />
<br />
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="notranslate">तो कुछ उपयोगकर्ताओं को एक yum MySQL के स्थापित और सर्वर शुरू करने के लिए निम्न आदेश का उपयोग करने में सक्षम होने की उम्मीद को पूरा :: "ऐसा कोई फ़ाइल या निर्देशिका" पाने के लिए ही शुरू /etc/init.d/mysql</span></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="notranslate">तो इस systemctl आदेश का उपयोग करने में मदद करने के लिए एक त्वरित पोस्ट है.</span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="notranslate">आप यह देखने की संभावना है:</span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;"># systemctl list-unit-files | grep mysql<span class="Apple-converted-space"> </span><br />mysqld.service disabled</code></div>
</div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="notranslate">सबसे पहले मैं करने के लिए जाने की सिफारिश करेंगे<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://tools.percona.com/&usg=ALkJrhgAruw2w5J9yl68ZX4h8BrZ9xnMVQ" style="color: #888888; text-decoration: none;">tools.percona.com</a><span class="Apple-converted-space"> </span>और एक मान्य my.cnf फ़ाइल बनाएँ.</span></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="notranslate">तो समाधान आसान है, हम तो बस इतना डेटाबेस शुरू सर्वर पर शुरू कर सकते हैं इसे सक्रिय करने की जरूरत है.</span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<br /><div class="codebox" style="background-color: #eeeeff; border: 1px solid black; overflow: auto; padding: 10px; width: 600px;">
<code style="font-size: 0.9em;">#systemctl enable mysqld.service<span class="Apple-converted-space"> </span><br />ln -s '/usr/lib/systemd/system/mysqld.service' '/etc/systemd/system/mysql.service'<span class="Apple-converted-space"> </span><br />ln -s '/usr/lib/systemd/system/mysqld.service' '/etc/systemd/system/multi-user.target.wants/mysqld.service'<span class="Apple-converted-space"> </span><br />#systemctl start mysqld<span class="Apple-converted-space"> </span><br />#systemctl list-unit-files | grep mysql<span class="Apple-converted-space"> </span><br />mysql.service enabled<span class="Apple-converted-space"> </span><br />mysqld.service enabled</code></div>
</div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span class="notranslate">अब तुम जाने के लिए अच्छा होना चाहिए ...</span></div>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-10159189704951537862014-10-11T10:33:00.000-07:002014-10-11T10:33:05.611-07:00MySQL धीरे लॉग घूर्णन<div dir="ltr" style="text-align: left;" trbidi="on">
Original post: <a href="http://anothermysqldba.blogspot.com/2014/10/rotating-mysql-slow-logs.html">http://anothermysqldba.blogspot.com/2014/10/rotating-mysql-slow-logs.html</a><br />
<br />
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">विभिन्न ग्राहकों के साथ काम करते हुए मैं समय समय पर बहुत बड़ी धीमी गति से लॉग इन फ़ाइलों भर में चलाने के लिए होता है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">वे घुमाया जाना चाहिए पर कई राय मौजूद हैं.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इन विचारों से कई हालांकि मैं मेरे द्विआधारी लॉग फ्लश करने के लिए नहीं पसंद करते हैं, लॉग घुमाएँ और फ्लश लॉग आदेश का उपयोग करें.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं रोनाल्ड ब्रैडफोर्ड के साथ सहमत हैं यही कारण है कि<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://ronaldbradford.com/blog/the-correct-approach-to-rolling-mysql-logs-2010-02-22/&usg=ALkJrhhegH7VqGoe2YG90PqFNyxVSeQ_qw" style="color: #888888; text-decoration: none;">ब्लॉग पोस्ट</a><span class="Apple-converted-space"> </span>यह कैसे करना है पर साल पहले से.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br />
<ul style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; margin: 0.5em 0px; orphans: auto; padding: 0px 2.5em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://ronaldbradford.com/blog/the-correct-approach-to-rolling-mysql-logs-2010-02-22/&usg=ALkJrhhegH7VqGoe2YG90PqFNyxVSeQ_qw" style="color: #888888; text-decoration: none;">http://ronaldbradford.com/blog/the सही दृष्टिकोण करने वाली रोलिंग MySQL-लॉग-2010-02-22/</a></span></li>
</ul>
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं एक छोटे से आगे ले लिया और कदम की पटकथा लिखी है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">पार्टी की योजना बनाई स्क्रिप्ट MySQL 5.6 के साथ बनाया गया है और मन में mysql_config_editor यह रूप में अच्छी तरह से MySQL के पुराने संस्करणों पर इस्तेमाल किया जा सकता है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">स्क्रिप्ट निम्न करना होगा:</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><ul style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; margin: 0.5em 0px; orphans: auto; padding: 0px 2.5em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate">मौजूदा लॉग फ़ाइल नाम इकट्ठा</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate">वर्तमान लंबे क्वेरी समय मूल्य इकट्ठा</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate">एक उच्च मूल्य के लिए लंबे क्वेरी समय रीसेट करता है</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate">प्रतियां के रूप में अच्छी तरह से यह छोटा है, जबकि लॉग (रोनाल्ड की पोस्ट देखें)</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate">मूल समय के लिए वापस लंबे क्वेरी समय रीसेट करता है</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate">यदि आप चाहें तो एक साधारण धीमी क्वेरी ताकि आप नए धीमी लॉग जाँच कर सकते हैं कार्यान्वित</span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate">आप वापस अंतरिक्ष हासिल कर सकते हैं तो पुराने धीमी लॉग निकालता है.</span></li>
<ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate">आप के बजाय लॉग की समीक्षा करना चाहते हैं तो आप इस आदेश को बाहर टिप्पणी कर सकते हैं.</span></li>
</ul>
</ul>
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो यह सब काम करता है?</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">वैसे हम इस उदाहरण का उपयोग करते हैं.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं तदनुसार स्क्रिप्ट अद्यतन इसलिए मैं वर्तमान में एक .my.cnf फ़ाइल पर mysql_config_editor उपयोग कर रहा हूँ.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"># mysql_config_editor print --all<span class="Apple-converted-space"> </span><br />[local]<span class="Apple-converted-space"> </span><br />user = root<span class="Apple-converted-space"> </span><br />password = *****<span class="Apple-converted-space"> </span><br />host = localhost<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं इस धीमी क्वेरी लॉग अब 1G है कि देख सकते हैं.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"># ls -alh mysql-slow.log<span class="Apple-converted-space"> </span><br />-rw-rw---- 1 mysql mysql 1.1G Oct 11 16:08 mysql-slow.log<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इसलिए मैं स्क्रिप्ट निष्पादित</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"># /root/rotate_slow_logs.sh<span class="Apple-converted-space"> </span><br /># ls -alh mysql-slow.log<span class="Apple-converted-space"> </span><br />-rw-rw---- 1 mysql mysql 5.8K Oct 11 16:11 mysql-slow.log<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">अच्छा ठीक है, यह काम किया है और मैं अपने बिन लॉग निस्तब्धता या MySQL शुरु बिना अब एक छोटे लॉग फ़ाइल है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">आप जितनी बार आप चाहते हैं के रूप में बारी बारी से कर सकते हैं तो यह स्क्रिप्ट एक crontab में जोड़ा जा सकता है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">यहाँ स्क्रिप्ट है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;">#!/bin/bash<span class="Apple-converted-space"> </span><br /><br /># THIS IS BUILT WITH MYSQL 5.6 SECURITY IN MIND.<span class="Apple-converted-space"> </span><br /># SET THE LOGINPATHVALUE if you are using the mysql_config_editor<span class="Apple-converted-space"> </span><br /># IF YOU ARE NOT USING THE mysql_config_editor THEN IT IS ASSUMED YOU HAVE<span class="Apple-converted-space"> </span><br /># SET A .my.cnf FILE IN THE USER HOME DIR OR THIS USER HAS NO PASSWORD SET<span class="Apple-converted-space"> </span><br /><br /><br /># PLEASE SET THIS ACCORDINGLY TO YOUR SYSTEM.<span class="Apple-converted-space"> </span><br />LOGINPATHVALUE="local";<span class="Apple-converted-space"> </span><br /><br />if [ -z "${LOGINPATHVALUE}" ]; then<span class="Apple-converted-space"> </span><br />LOGINPATH="";<span class="Apple-converted-space"> </span><br />fi<span class="Apple-converted-space"> </span><br /><br />if [ -n "${LOGINPATHVALUE-unset}" ]; then<span class="Apple-converted-space"> </span><br />LOGINPATH="--login-path=$LOGINPATHVALUE "<span class="Apple-converted-space"> </span><br /><br />fi<span class="Apple-converted-space"> </span><br /><br /># GATHERS THE LOG FILE NAME<span class="Apple-converted-space"> </span><br />SLOWLOG=$(mysqladmin $LOGINPATH variables | grep slow | grep file | awk '/[a-zA-Z]/ {print $4}' )<span class="Apple-converted-space"> </span><br /><br /># GATHER CURRENT VALUE<span class="Apple-converted-space"> </span><br />LQT=$( mysqladmin $LOGINPATH variables | grep long_query_time | awk '/[0-9]./ {print $4}' )<span class="Apple-converted-space"> </span><br />LQTB=$(mysql $LOGINPATH -e " SELECT @@global.long_query_time *200 AS LQTB;" | awk '/[0-9]./ {print $1}' )<span class="Apple-converted-space"> </span><br />LQTC=$(mysql $LOGINPATH -e " SELECT @@global.long_query_time *2 AS LQTC;" | awk '/[0-9]./ {print $1}' )<span class="Apple-converted-space"> </span><br /><br /># GATHER MARKER<span class="Apple-converted-space"> </span><br />DATE=`date +"%m%d%Y"`<span class="Apple-converted-space"> </span><br /><br /># RESET SLOW QUERY TIME<span class="Apple-converted-space"> </span><br /># SET GLOBAL long_query_time=10;<span class="Apple-converted-space"> </span><br />mysql $LOGINPATH -e "SET GLOBAL long_query_time= $LQTB"<span class="Apple-converted-space"> </span><br /><br />LQTD=$( mysqladmin $LOGINPATH variables | grep long_query_time | awk '/[0-9]./ {print $4}' )<span class="Apple-converted-space"> </span><br /><br />#MOVE THE LOG OUT<span class="Apple-converted-space"> </span><br />cp $SLOWLOG $SLOWLOG.$DATE; > $SLOWLOG<span class="Apple-converted-space"> </span><br /><br />#SET THE TIMEBACK<span class="Apple-converted-space"> </span><br />mysql $LOGINPATH -e "SET GLOBAL long_query_time= $LQT"<span class="Apple-converted-space"> </span><br /><br />LQTD=$( mysqladmin $LOGINPATH variables | grep long_query_time | awk '/[0-9]./ {print $4}' )<span class="Apple-converted-space"> </span><br /><br />#PLACE A Slow query for log<span class="Apple-converted-space"> </span><br />SLOWQUERY=$(mysql $LOGINPATH -e "SELECT sleep($LQTC) " )<span class="Apple-converted-space"> </span><br /><br /># REMOVE OLD LOG<span class="Apple-converted-space"> </span><br />/bin/rm -f $SLOWLOG.$DATE;</code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.4799995422363px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /></div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-61027740259428423682014-09-23T19:55:00.002-07:002014-09-23T19:55:14.459-07:00MySQL उपयोगकर्ता कनेक्शन<div dir="ltr" style="text-align: left;" trbidi="on">
Original post: <a href="http://anothermysqldba.blogspot.com/2014/09/mysql-user-connections.html">http://anothermysqldba.blogspot.com/2014/09/mysql-user-connections.html</a><br />
<br />
<div>
<span class="notranslate">तो मैं MySQL उपयोगकर्ताओं और कैसे वे प्रमाणित के साथ मतभेदों को समझा खुद को पाया.</span> <span class="notranslate"> यह सब जानकारी के प्रथम नया नहीं है लेकिन यहां पाया जा सकता है:</span> </div>
<div>
</div>
<ul>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/connection-access.html&usg=ALkJrhix5AqhneRJ2zCnLnnHIQSHG6Si9Q">http://dev.mysql.com/doc/refman/5.6/en/connection-access.html</a></span> </li>
</ul>
<div>
<span class="notranslate"> मैं सिर्फ यह समझाने के लिए कुछ वास्तविक दुनिया उदाहरण दिखा देंगे.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> यह एक उपयोगकर्ता की अनुमतियों का मूल्यांकन करता है जब MySQL उपयोगकर्ता नाम के रूप में अच्छी तरह से लॉगिन का उपयोग करता है.</span> <span class="notranslate"> एक सबसे अच्छा अभ्यास अनाम उपयोगकर्ताओं को हटाना है, यही कारण है.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> इस उदाहरण के लिए मैं निम्नलिखित उपयोगकर्ताओं के साथ शुरू होगा</span> </div>
<div>
<br /></div>
<br />
<div class="codebox">
<code>
</code><br /><div>
<div>
<code>MariaDB [(none)]> select user , host from mysql.user;</code> </div>
<div>
<code>+---------+-----------+</code> </div>
<div>
<code>| user | host |</code> </div>
<div>
<code>+---------+-----------+</code> </div>
<div>
<code>| root | 127.0.0.1 |</code> </div>
<div>
<code>| root | ::1 |</code> </div>
<div>
<code>| | centos64 |</code> </div>
<div>
<code>| root | centos64 |</code> </div>
<div>
<code>| | localhost |</code> </div>
<div>
<code>| root | localhost |</code> </div>
<div>
<code>+---------+-----------+</code> </div>
</div>
<code>
</code></div>
<div>
<br /></div>
<div>
<span class="notranslate"> मैं भी मैं एक उपयोगकर्ता नाम नहीं है सोचा सर्वर में प्रवेश कर सकते हैं नीचे बेनामी @ लोकलहोस्ट करने के लिए यह चूक है.</span> </div>
<div>
<br /></div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<code># mysql -u nobody</code> </div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> का चयन current_user ();</span> </div>
<div>
<span class="notranslate"> + ---------------- +</span> </div>
<div>
<span class="notranslate"> | Current_user () |</span> </div>
<div>
<span class="notranslate"> + ---------------- +</span> </div>
<div>
<span class="notranslate"> |localhost |</span> </div>
<div>
<span class="notranslate"> + ---------------- +</span> </div>
</div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> शो अनुदान;</span> </div>
<div>
<span class="notranslate"> + -------------------------------------- +</span> </div>
<div>
<span class="notranslate"> |localhost के लिए अनुदान |</span> </div>
<div>
<span class="notranslate"> + -------------------------------------- +</span> </div>
<div>
<span class="notranslate"> | अनुदान के उपयोग पर * '@' के लिए 'लोकलहोस्ट. |</span> </div>
<div>
<span class="notranslate"> + -------------------------------------- +</span> </div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> मैं कुछ नहीं कर सकता जबकि मैं अभी भी डेटाबेस में मिला है.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> अब मैं एक ज्ञात उपयोगकर्ता पारित जब:</span> </div>
<div>
<br /></div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<code># mysql -u root -p</code> </div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> का चयन current_user;</span> </div>
<div>
<span class="notranslate"> + ---------------- +</span> </div>
<div>
<span class="notranslate"> | Current_user |</span> </div>
<div>
<span class="notranslate"> + ---------------- +</span> </div>
<div>
<span class="notranslate"> | जड़ @ लोकलहोस्ट |</span> </div>
<div>
<span class="notranslate"> + ---------------- +</span> </div>
</div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> शो अनुदान;</span> </div>
<div>
+----------------------------------------------------------------------------------------------------------------------------------------+
</div>
<div>
<span class="notranslate"> | जड़ @ लोकलहोस्ट के लिए अनुदान |</span> </div>
<div>
+----------------------------------------------------------------------------------------------------------------------------------------+
</div>
<div>
<span class="notranslate">
| पर सभी विशेषाधिकार प्रदान * 'जड़' @ करने के लिए पासवर्ड से पहचान
'लोकलहोस्ट' '* 8CD56861FDADF7A264741F27D502D1A8DAE0A8F7' अनुदान विकल्प
के साथ. |</span> </div>
<div>
<span class="notranslate"> | | अनुदान प्रॉक्सी पर '@' '' जड़ 'के लिए @ अनुदान विकल्प के साथ' लोकलहोस्ट '</span> </div>
<div>
+----------------------------------------------------------------------------------------------------------------------------------------+
</div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span class="notranslate"> वर्तमान में जड़ उपयोगकर्ता 4 अलग खाते हैं.</span> </div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<div>
<code>MariaDB [(none)]> select user , host from mysql.user where user = 'root';</code> </div>
<div>
<code>+------+-----------+</code> </div>
<div>
<code>| user | host |</code> </div>
<div>
<code>+------+-----------+</code> </div>
<div>
<code>| root | 127.0.0.1 |</code> </div>
<div>
<code>| root | ::1 |</code> </div>
<div>
<code>| root | centos64 |</code> </div>
<div>
<code>| root | localhost |</code> </div>
<div>
<code>+------+-----------+</code> </div>
</div>
<code>
</code></div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> ये सभी अलग अलग खातों हैं.</span> <span class="notranslate"> मैं केवल हालांकि उनमें से एक की जरूरत है.</span> <span class="notranslate"> मैं केवल स्थानीय मेजबान कनेक्शन के माध्यम से रूट खाते का उपयोग करें.</span> </div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<div>
<code>MariaDB [(none)]> DROP USER 'root'@'127.0.0.1';</code> </div>
<div>
<code>Query OK, 0 rows affected (0.33 sec)</code> </div>
<div>
<code><br /></code> </div>
<div>
<code>MariaDB [(none)]> DROP USER 'root'@'centos64';</code> </div>
<div>
<code>Query OK, 0 rows affected (0.02 sec)</code> </div>
<div>
<code><br /></code> </div>
<div>
<code>MariaDB [(none)]> DROP USER 'root'@'::1';</code> </div>
<div>
<code>Query OK, 0 rows affected (0.00 sec)</code> </div>
<div>
<code><br /></code> </div>
<div>
<code>MariaDB [(none)]> select user , host from mysql.user where user = 'root';</code> </div>
<div>
<code>+------+-----------+</code> </div>
<div>
<code>| user | host |</code> </div>
<div>
<code>+------+-----------+</code> </div>
<div>
<code>| root | localhost |</code> </div>
<div>
<code>+------+-----------+</code> </div>
</div>
<code>
</code></div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> इसलिए मैं 4 अलग अलग खातों से क्या मतलब था?</span> <span class="notranslate"> वे सब जड़ उपयोगकर्ता खाते.</span> <span class="notranslate"> नहीं .. वे जड़ और जो कुछ भी होस्ट कर रहे हैं.</span> <span class="notranslate"> इसलिए प्रत्येक खाता (उपयोगकर्ता + मेजबान) विभिन्न अनुमतियों हो सकता था.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> अंतर दिखाने के लिए अगले इसलिए हम एक उदाहरण बनाना होगा.</span> </div>
<div>
<span class="notranslate"> इसलिए इस उदाहरण में सर्वर दो नेटवर्क इंटरफेस है.</span> <span class="notranslate"> इसलिए मैं विभिन्न अनुमतियों के साथ प्रत्येक मतभेद दिखाने के लिए सभी का उपयोग अंक प्रति एक उपयोगकर्ता पैदा करेगा.</span> <span class="notranslate"> मैं एक ही पासवर्ड सेट हो जाएगा, लेकिन उन लोगों के रूप में अच्छी तरह से अलग हो सकता है.</span> </div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<div>
<code>MariaDB [(none)]> GRANT SELECT ON *.* TO 'anothermysqldba'@'10.0.2.15' IDENTIFIED BY '<cleartext password>';</code> </div>
<div>
<code>Query OK, 0 rows affected (0.01 sec)</code> </div>
<div>
<code><br /></code> </div>
<div>
<code>MariaDB
[(none)]> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE , DROP,
RELOAD, SHUTDOWN, PROCESS, FILE, INDEX, ALTER ON *.* TO
'anothermysqldba'@'192.168.0.%' IDENTIFIED BY '<cleartext
password>';</code> </div>
<div>
<code>Query OK, 0 rows affected (0.00 sec)</code> </div>
<div>
<code><br /></code> </div>
<div>
<code>MariaDB
[(none)]> GRANT ALL PRIVILEGES ON *.* TO
'anothermysqldba'@'localhost' IDENTIFIED BY '<cleartext
password>' WITH GRANT OPTION;</code> </div>
<div>
<code>Query OK, 0 rows affected (0.00 sec)</code> </div>
</div>
<div>
<br /></div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> का चयन करें उपयोगकर्ता, जहां उपयोगकर्ता = 'anothermysqldba' mysql.user से मेजबान;</span> </div>
<div>
<span class="notranslate"> + ----------------- + ------------- +</span> </div>
<div>
<span class="notranslate"> | उपयोगकर्ता | मेजबान |</span> </div>
<div>
<span class="notranslate"> + ----------------- + ------------- +</span> </div>
<div>
<span class="notranslate"> | Anothermysqldba | 10.0.2.15 |</span> </div>
<div>
<span class="notranslate"> | Anothermysqldba |. 192.168.0% |</span> </div>
<div>
<span class="notranslate"> | Anothermysqldba | स्थानीय होस्ट |</span> </div>
<div>
<span class="notranslate"> + ----------------- + ------------- +</span> </div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> तो इसका मतलब क्या है?</span> <span class="notranslate">
MySQL एक उपयोगकर्ता विभिन्न अनुमतियों के रूप में हर उपयोगकर्ता पहुँच
बिंदु को मान्य करने के रूप में अच्छी तरह से मेजबान का उपयोग करता है,
क्योंकि उपयोगकर्ता नाम एक ही हैं हालांकि.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate">
आप अपने डेवलपर्स के कुछ भरोसा हो सकता है, इस बार वे दूर से या उनकी
स्क्रिप्ट के माध्यम से काम कर रहे हैं अगर उनके उपयोग के कुछ सीमित करने
के लिए एक अच्छा विचार है.</span> <span class="notranslate"> वे आप को शामिल नहीं करता है कि कुछ करने की जरूरत है और वे सर्वर से ही SSH और अन्य कार्य करने के लिए लॉग इन करने के लिए है.</span> <span class="notranslate"> इस कोर्स के लिए अपने व्यापार और / या अनुप्रयोगों के रिश्ते और काम के प्रवाह पर निर्भर है.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> 10.0.2.15 मेजबान उपयोगकर्ता का उपयोग केवल चुनिंदा उपयोग किया है.</span> </div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<code># mysql -h 10.0.2.15 -u anothermysqldba -p</code> </div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> का चयन current_user ();</span> </div>
<div>
<span class="notranslate"> + --------------------------- +</span> </div>
<div>
<span class="notranslate"> | Current_user () |</span> </div>
<div>
<span class="notranslate"> + --------------------------- +</span> </div>
<div>
<span class="notranslate"> | Anothermysqldba@10.0.2.15 |</span> </div>
<div>
<span class="notranslate"> + --------------------------- +</span> </div>
</div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> शो अनुदान;</span> </div>
<div>
<div>
+-------------------------------------------------------------------------------------------------------------------------+ </div>
<div>
<span class="notranslate"> | Anothermysqldba@10.0.2.15 के लिए अनुदान |</span> </div>
<div>
+-------------------------------------------------------------------------------------------------------------------------+ </div>
<div>
<span class="notranslate"> | अनुदान * पर चयन * करने के लिए 'anothermysqldba'@'10.0.2.15' पासवर्ड से पहचान '* 31360D7EE84BE965C0E759179FC61B6943BCA64F'. |</span> </div>
<div>
+-------------------------------------------------------------------------------------------------------------------------+ </div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> 192.168.0.26 मेजबान का उपयोग कर उपयोगकर्ता अधिक पहुँच गया है.</span> <span class="notranslate"> यह खाता भी 192.168.0 / 255 (%) सबनेट के तहत कुछ भी भर में उपयोग करने के लिए निर्धारित है.</span> </div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<code># mysql -h 192.168.0.26 -u anothermysqldba -p</code> </div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> का चयन current_user ();</span> </div>
<div>
<span class="notranslate"> + ----------------------------- +</span> </div>
<div>
<span class="notranslate"> | Current_user () |</span> </div>
<div>
<span class="notranslate"> + ----------------------------- +</span> </div>
<div>
<span class="notranslate"> | Anothermysqldba@192.168.0.% |</span> </div>
<div>
<span class="notranslate"> + ----------------------------- +</span> </div>
</div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> शो अनुदान;</span> </div>
<div>
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
</div>
<div>
<span class="notranslate"> | Anothermysqldba@192.168.0.% के लिए अनुदान |</span> </div>
<div>
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
</div>
<div>
<span class="notranslate">
| अनुदान का चयन करें, सम्मिलित करें, अद्यतन, बनाने, हटाने छोड़, पुनः
लोड, बंद, प्रक्रिया, फ़ाइल, सूचकांक, * पर बदल * करने के लिए
'anothermysqldba'@'192.168.0.%' पासवर्ड से पहचान '*
31360D7EE84BE965C0E759179FC61B6943BCA64F'. |</span> </div>
<div>
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
</div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> आप मान लेंगे तो जैसा कि स्थानीय होस्ट उपयोगकर्ता पूर्ण पहुँच खाता है.</span> </div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<code># mysql -u anothermysqldba -p</code> </div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> का चयन current_user ();</span> </div>
<div>
<span class="notranslate"> + --------------------------- +</span> </div>
<div>
<span class="notranslate"> | Current_user () |</span> </div>
<div>
<span class="notranslate"> + --------------------------- +</span> </div>
<div>
<span class="notranslate"> | Anothermysqldba @ लोकलहोस्ट |</span> </div>
<div>
<span class="notranslate"> + --------------------------- +</span> </div>
<div>
<span class="notranslate"> सेट में 1 पंक्ति (0.00 सेकंड)</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> शो अनुदान;</span> </div>
<div>
+---------------------------------------------------------------------------------------------------------------------------------------------------+
</div>
<div>
<span class="notranslate"> | Anothermysqldba @ लोकलहोस्ट के लिए अनुदान |</span> </div>
<div>
+---------------------------------------------------------------------------------------------------------------------------------------------------+
</div>
<div>
<span class="notranslate">
| पर सभी विशेषाधिकार प्रदान * 'anothermysqldba' @ करने के लिए पासवर्ड
से पहचान 'लोकलहोस्ट' '* 31360D7EE84BE965C0E759179FC61B6943BCA64F' अनुदान
विकल्प के साथ. |</span> </div>
<div>
+---------------------------------------------------------------------------------------------------------------------------------------------------+
</div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> यह अनाम उपयोगकर्ताओं को दूर करने के लिए सबसे अच्छा अभ्यास है अब इससे पहले कि जैसा कि मैंने कहा.</span> <span class="notranslate"> का प्रयोग <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/mysql-secure-installation.html&usg=ALkJrhjdyRZyIsCbkAGJ__uehd83ThSQjA">mysql_secure_installation</a> स्थापना के लिए भी उसके साथ में मदद मिलेगी.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> क्यों फर्क पड़ता है?</span> </div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<code># mysql -u anothremysqldba -p</code> </div>
<div>
<div>
<span class="notranslate"> MariaDB [(कोई भी)]> का चयन current_user ();</span> </div>
<div>
<span class="notranslate"> + ---------------- +</span> </div>
<div>
<span class="notranslate"> | Current_user () |</span> </div>
<div>
<span class="notranslate"> + ---------------- +</span> </div>
<div>
<span class="notranslate"> |localhost |</span> </div>
<div>
<span class="notranslate"> + ---------------- +</span> </div>
<div>
<span class="notranslate"> सेट में 1 पंक्ति (0.00</span> </div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate"> <b>सरल</b> उदाहरण ... ऊपर है और सिर्फ साधारण गलतियों से बचें.</span> <span class="notranslate"> एक टाइपो डेटाबेस तक पहुँच, यह इस अनुमति नहीं होना चाहिए की अनुमति दी.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> तो फिर हटाने और फिर से परीक्षण करें.</span> </div>
<div>
<div class="codebox">
<code>
</code><br /><div>
<div>
<code>MariaDB [(none)]> DROP USER ''@'localhost';</code> </div>
<div>
<code>Query OK, 0 rows affected (0.01 sec)</code> </div>
<div>
<code><br /></code> </div>
<div>
<code>MariaDB [(none)]> DROP USER ''@'centos64';</code> </div>
<div>
<code>Query OK, 0 rows affected (0.00 sec)</code> </div>
</div>
<div>
<br /></div>
<div>
<div>
<span class="notranslate"> # MySQL -u anothremysqldba -p</span> </div>
<div>
<span class="notranslate"> पासवर्ड दर्ज करें:</span> </div>
<div>
<span class="notranslate"> त्रुटि 1045 (28000): प्रवेश @ उपयोगकर्ता anothremysqldba 'के लिए इनकार किया पासवर्ड का उपयोग (' लोकलहोस्ट ': हाँ</span> </div>
</div>
</div>
</div>
<div>
<br /></div>
<div>
<span class="notranslate">
अपने डेटाबेस ज्यादातर मेजबाननाम या सख्त आईपी पते और कोई वाइल्डकार्ड के
रूप में% के साथ साथ बनाया जाता है तो अगर इसका मतलब क्या है?</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> यह आपकी ओर से एक सुरक्षा और व्यापार में निर्णय लेने के लिए किया जाएगा.</span> <span class="notranslate"> व्यक्तिगत रूप से न तो मेरी राय में एक मान्य विकल्प है.</span> <span class="notranslate">
एक वाइल्डकार्ड (%) कुछ नहीं बल्कि एक मजबूत पहुँच बिंदु की अनुमति देता
है, लेकिन फ़ायरवॉल एक विफलता है अगर यह भी नेटवर्क उपयोगकर्ताओं के बाहर
दूरदराज के लिए उपयोग को खोलता है.</span> <span class="notranslate"> उपयोगकर्ता प्रति एक सख्त आईपी पता भी मेरी राय में नहीं बल्कि सख्त है, लेकिन यह उपयोगकर्ता पर निर्भर करता है.</span> <span class="notranslate">
. 192.168.0%: यहां तक कि मैं अभी भी एक% यानी साथ आईपी पते का उपयोग
करना पसंद करते हैं नकल के लिए बनाया गया है जो किसी खाते के साथ उदाहरण के
लिए.</span> <span class="notranslate"> आईपी पते <i>(दूरस्थ उपयोगकर्ताओं के लिए भी स्थिर परिवर्तन डीबीए अक्सर नहीं बताया गया है)</i> बदल सकता हूँ और यह अक्सर पहुँच विफलता पर शिकायतों के साथ डीबीए के लिए आने वाले लोगों में यह परिणाम है.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> मैं एक बार एक स्थिर IP पता करने के लिए बंद हर उपयोगकर्ता पहुँच सीमित है कि एक व्यक्ति के साथ काम किया.</span> <span class="notranslate"> इस व्यक्ति को लगातार अनुदान बयानों को बदलने के लिए किया था.</span> <span class="notranslate"> आप अपने अंत पर सुरक्षा सुनिश्चित कर सकते हैं, जबकि लोगों को आसानी से और प्रभावी ढंग से काम करने में सक्षम होना चाहिए.</span> </div>
<div>
<br /></div>
<div>
<span class="notranslate"> बेशक अब यह एक सरल उदाहरण है.</span> <span class="notranslate"> MySQL भी अधिक प्रमाणीकरण विकल्प की पेशकश करता है</span> <br /><br /><br /><ul>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/pluggable-authentication.html&usg=ALkJrhgc9HynFWZ-UHreUWkALSRtWbD9Kg">http://dev.mysql.com/doc/refman/5.6/en/pluggable-authentication.html</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://dev.mysql.com/doc/refman/5.6/en/pam-authentication-plugin.html&usg=ALkJrhgnGuxIMcaKsb4HtRXgdSAjOhHbjA">http://dev.mysql.com/doc/refman/5.6/en/pam-प्रमाणीकरण-plugin.html</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=https://mariadb.com/blog/new-feature-pam-plugin-mariadb&usg=ALkJrhgLIf1jCGx7gYLW6lUHmOXrCekJpw">https://mariadb.com/blog/new-सुविधा पाम प्लगइन-mariadb</a></span> </li>
<li> <span class="notranslate"> <a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=https://mariadb.com/kb/en/mariadb/documentation/mariadb-plugins/pam-authentication-plugin/&usg=ALkJrhjvEmK4t4hpsUIGORLg1T4LWzp6rw">https://mariadb.com/kb/en/mariadb/documentation/mariadb-plugins/pam-प्रमाणीकरण-plugin/</a></span> </li>
</ul>
</div>
<div>
<br /></div>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-75070648210199410252014-08-13T19:16:00.003-07:002014-08-13T19:16:40.181-07:00MySQL विदेशी कुंजी उदाहरण और त्रुटि 1452<div dir="ltr" style="text-align: left;" trbidi="on">
Original post - <a href="http://anothermysqldba.blogspot.com/2014/08/mysql-foreign-keys-example-error-1452.html">http://anothermysqldba.blogspot.com/2014/08/mysql-foreign-keys-example-error-1452.html</a><br />
<br />
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो मैं एक क्षेत्र को अद्यतन करने के लिए होने के साथ काम आज एक स्थिति भर में भाग गया लेकिन उपयोगकर्ता क्योंकि संबंधित विदेशी प्रमुख बाधाओं के ऐसा करने में असमर्थ था.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इस ब्लॉग पोस्ट एक विदेशी कुंजी दिखा और कैसे आप ऐसा करने के लिए है, तो उन्हें अद्यतन करने के लिए एक सरल उदाहरण हो के साथ.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">सबसे पहले हमें एक साधारण तालिका बनाने और यादृच्छिक डेटा के साथ यह आबाद.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br />
<div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />CREATE TABLE `table_w_code` (<span class="Apple-converted-space"> </span><br />`SOMECode` varchar(50) COLLATE utf8_unicode_ci NOT NULL,<span class="Apple-converted-space"> </span><br />`NameofCode` varchar(50) COLLATE utf8_unicode_ci NOT NULL,<span class="Apple-converted-space"> </span><br />PRIMARY KEY (`SOMECode`)<span class="Apple-converted-space"> </span><br />) ENGINE=InnoDB ;<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">अब हम हमारे पिछले मेज के लिए बंधे एक विदेशी कुंजी है कि एक और टेबल की आवश्यकता होगी.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />[anothermysqldba]> CREATE TABLE `table_with_fk` (<span class="Apple-converted-space"> </span><br />`SOMEID` varchar(50) COLLATE utf8_unicode_ci NOT NULL,<span class="Apple-converted-space"> </span><br />`SOMECode` varchar(50) COLLATE utf8_unicode_ci NOT NULL,<span class="Apple-converted-space"> </span><br />`Somemorefields` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,<span class="Apple-converted-space"> </span><br />PRIMARY KEY (`SOMEID`,`SOMECode`),<span class="Apple-converted-space"> </span><br />KEY `FK_Patient_Facility` (`SOMECode`),<span class="Apple-converted-space"> </span><br />CONSTRAINT `FK_CODE` FOREIGN KEY (`SOMECode`) REFERENCES `table_w_code` (`SOMECode`) ON DELETE NO ACTION ON UPDATE NO ACTION<span class="Apple-converted-space"> </span><br />) ENGINE=InnoDB;<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इसलिए हम कोशिश करते हैं और बाद में उन्हें अद्यतन कर सकते हैं तो हमें तालिकाओं में कुछ यादृच्छिक डेटा आबाद करते हैं.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">अगर जरूरत यादृच्छिक संख्या पर पिछले पोस्ट है<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://anothermysqldba.blogspot.com/2014/06/mysql-random-integers.html&usg=ALkJrhgn4WqprqxHmw_5chugHleUK-khzg" style="color: #888888; text-decoration: none;">यहां</a></span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />[anothermysqldba]> SET @A = 3;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> SET @B = 15 - @A;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> SET @C = 16;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> SET @D = 25 - @C;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> INSERT INTO table_w_code VALUES<span class="Apple-converted-space"> </span><br />-> ( SUBSTR(md5(''),FLOOR( @A + (RAND() * @B )) , FLOOR( @C + (RAND() * @D )) ) , 'ABC' ) ,<span class="Apple-converted-space"> </span><br />-> ( SUBSTR(md5(''),FLOOR( @A + (RAND() * @B )) , FLOOR( @C + (RAND() * @D )) ) , 'DEF' ) ,<span class="Apple-converted-space"> </span><br />-> ( SUBSTR(md5(''),FLOOR( @A + (RAND() * @B )) , FLOOR( @C + (RAND() * @D )) ) , 'GHI' ) ,<span class="Apple-converted-space"> </span><br />-> ( SUBSTR(md5(''),FLOOR( @A + (RAND() * @B )) , FLOOR( @C + (RAND() * @D )) ) , 'JKL' ) ,<span class="Apple-converted-space"> </span><br />-> ( SUBSTR(md5(''),FLOOR( @A + (RAND() * @B )) , FLOOR( @C + (RAND() * @D )) ) , 'MNO' ) ,<span class="Apple-converted-space"> </span><br />-> ( SUBSTR(md5(''),FLOOR( @A + (RAND() * @B )) , FLOOR( @C + (RAND() * @D )) ) , 'PQR' ) ,<span class="Apple-converted-space"> </span><br />-> ( SUBSTR(md5(''),FLOOR( @A + (RAND() * @B )) , FLOOR( @C + (RAND() * @D )) ) , 'STU' ) ,<span class="Apple-converted-space"> </span><br />-> ( SUBSTR(md5(''),FLOOR( @A + (RAND() * @B )) , FLOOR( @C + (RAND() * @D )) ) , 'VWX' ) ,<span class="Apple-converted-space"> </span><br />-> ( SUBSTR(md5(''),FLOOR( @A + (RAND() * @B )) , FLOOR( @C + (RAND() * @D )) ) , 'YZ' ) ;<span class="Apple-converted-space"> </span><br />Query OK, 9 rows affected (0.05 sec)<span class="Apple-converted-space"> </span><br />Records: 9 Duplicates: 0 Warnings: 0<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> SELECT * from table_w_code ORDER BY NameofCode;<span class="Apple-converted-space"> </span><br />+--------------------------+------------+<span class="Apple-converted-space"> </span><br />| SOMECode | NameofCode |<span class="Apple-converted-space"> </span><br />+--------------------------+------------+<span class="Apple-converted-space"> </span><br />| 204e9800998ecf8427e | ABC |<span class="Apple-converted-space"> </span><br />| f00b204e9800998e | DEF |<span class="Apple-converted-space"> </span><br />| 98f00b204e9800998ecf8427 | GHI |<span class="Apple-converted-space"> </span><br />| 98f00b204e9800998e | JKL |<span class="Apple-converted-space"> </span><br />| 1d8cd98f00b204e9800 | MNO |<span class="Apple-converted-space"> </span><br />| 1d8cd98f00b204e9800998ec | PQR |<span class="Apple-converted-space"> </span><br />| 0b204e9800998ecf8427e | STU |<span class="Apple-converted-space"> </span><br />| cd98f00b204e9800998ec | VWX |<span class="Apple-converted-space"> </span><br />| d98f00b204e9800998ecf842 | YZ |<span class="Apple-converted-space"> </span><br />+--------------------------+------------+<span class="Apple-converted-space"> </span><br />9 rows in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> SET @D = 2;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> SET @E = 25 - @D;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> INSERT INTO table_with_fk SELECT SUBSTR(md5(''),FLOOR( @D + (RAND() * @E ))), SOMECode , NameofCode FROM table_w_code;<span class="Apple-converted-space"> </span><br />Query OK, 9 rows affected (0.08 sec)<span class="Apple-converted-space"> </span><br />Records: 9 Duplicates: 0 Warnings: 0<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> select * from table_with_fk ORDER BY Somemorefields;<span class="Apple-converted-space"> </span><br />+---------------------------------+--------------------------+----------------+<span class="Apple-converted-space"> </span><br />| SOMEID | SOMECode | Somemorefields |<span class="Apple-converted-space"> </span><br />+---------------------------------+--------------------------+----------------+<span class="Apple-converted-space"> </span><br />| 41d8cd98f00b204e9800998ecf8427e | 204e9800998ecf8427e | ABC |<span class="Apple-converted-space"> </span><br />| e9800998ecf8427e | f00b204e9800998e | DEF |<span class="Apple-converted-space"> </span><br />| 98ecf8427e | 98f00b204e9800998ecf8427 | GHI |<span class="Apple-converted-space"> </span><br />| 00b204e9800998ecf8427e | 98f00b204e9800998e | JKL |<span class="Apple-converted-space"> </span><br />| 04e9800998ecf8427e | 1d8cd98f00b204e9800 | MNO |<span class="Apple-converted-space"> </span><br />| 04e9800998ecf8427e | 1d8cd98f00b204e9800998ec | PQR |<span class="Apple-converted-space"> </span><br />| b204e9800998ecf8427e | 0b204e9800998ecf8427e | STU |<span class="Apple-converted-space"> </span><br />| b204e9800998ecf8427e | cd98f00b204e9800998ec | VWX |<span class="Apple-converted-space"> </span><br />| 4e9800998ecf8427e | d98f00b204e9800998ecf842 | YZ |<span class="Apple-converted-space"> </span><br />+---------------------------------+--------------------------+----------------+<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">ठीक है कि इस उदाहरण के लिए कुछ यादृच्छिक डेटा उत्पन्न करने के तरीके के बारे में एक दौर है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो क्या हम table_with_fk में एबीसी मूल्य से संबंधित डेटा को अद्यतन करने के लिए यदि आवश्यक हो तो क्या होता है?</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />[anothermysqldba]> SELECT SOMEID , SOMECode , Somemorefields FROM table_with_fk WHERE Somemorefields = 'ABC';<span class="Apple-converted-space"> </span><br />+---------------------------------+---------------------+----------------+<span class="Apple-converted-space"> </span><br />| SOMEID | SOMECode | Somemorefields |<span class="Apple-converted-space"> </span><br />+---------------------------------+---------------------+----------------+<span class="Apple-converted-space"> </span><br />| 41d8cd98f00b204e9800998ecf8427e | 204e9800998ecf8427e | ABC |<span class="Apple-converted-space"> </span><br />+---------------------------------+---------------------+----------------+<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> SELECT SOMECode , NameofCode FROM table_w_code WHERE NameofCode = 'ABC';<span class="Apple-converted-space"> </span><br />+---------------------+------------+<span class="Apple-converted-space"> </span><br />| SOMECode | NameofCode |<span class="Apple-converted-space"> </span><br />+---------------------+------------+<span class="Apple-converted-space"> </span><br />| 204e9800998ecf8427e | ABC |<span class="Apple-converted-space"> </span><br />+---------------------+------------+<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]><span class="Apple-converted-space"> </span><br />UPDATE table_with_fk SET SOMEID = 'I UPDATED THIS' , SOMECode = 'I UPDATED THIS' WHERE SOMECode = '204e9800998ecf8427e';<span class="Apple-converted-space"> </span><br /><b>ERROR 1452</b><span class="Apple-converted-space"> </span>(23000): Cannot add or update a child row:<span class="Apple-converted-space"> </span><b>a foreign key constraint fails</b>(`anothermysqldba`.`table_with_fk`, CONSTRAINT `FK_CODE` FOREIGN KEY (`SOMECode`) REFERENCES `table_w_code` (`SOMECode`) ON DELETE NO ACTION ON UPDATE NO ACTION)<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">यह होना चाहिए था तो ऐसा अवरुद्ध किया गया था.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">हम सब के बाद तालिका परिभाषा में "पर अद्यतन पर कोई कार्रवाई नहीं की कोई कार्रवाई नहीं हटाएं" है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">हालांकि सभी नहीं खोया है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">"FOREIGN_KEY_CHECKS" चर का एक सरल संपादित करें कि अद्यतन कथन पर अमल करने की अनुमति देगा.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">हालांकि, यह एक सौदे के भीतर, मेरी राय में, इस पर अमल करने के लिए सुरक्षित है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />[anothermysqldba]> START TRANSACTION;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> SET FOREIGN_KEY_CHECKS=0;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> UPDATE table_with_fk SET SOMEID = 'I UPDATED THIS' , SOMECode = 'I UPDATED THIS' WHERE SOMECode = '204e9800998ecf8427e';<span class="Apple-converted-space"> </span><br />Query OK, 1 row affected (0.00 sec)<span class="Apple-converted-space"> </span><br />Rows matched: 1 Changed: 1 Warnings: 0<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> SET FOREIGN_KEY_CHECKS=1;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />[anothermysqldba]> COMMIT;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.07 sec)<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">आप यदि आप एक कारण के लिए जगह में स्थापित किया था कि अपने विदेशी कुंजी मूल्यों को तोड़ने के लिए क्यों चाहते अब समग्र सवाल है?</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">यही कारण है कि आप पर निर्भर करता है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">आज यह किसी भी तरह एक मूल्य के डेटाबेस में मूल्य में अतिरिक्त सफेद स्थान के साथ सम्मिलित किया गया था कि क्या हुआ.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो मैं अद्यतन और सफेद स्थान को हटाने के लिए एक समान लेनदेन किया.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">कुल मिलाकर ... यह है कि यह किया जा सकता है दिखाने के लिए बस है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /></div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-48745185597831987112014-07-18T11:59:00.003-07:002014-07-18T11:59:51.503-07:00MySQL secure_auth त्रुटि<div dir="ltr" style="text-align: left;" trbidi="on">
Original post: <a href="http://anothermysqldba.blogspot.com/2014/07/mysql-secureauth-error.html">http://anothermysqldba.blogspot.com/2014/07/mysql-secureauth-error.html</a><br />
<br />
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं पहले secure_auth त्रुटियों को संबोधित जब इस में यह ब्लॉक प्रतिकृति<span class="Apple-converted-space"> </span><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://anothermysqldba.blogspot.com/2013/09/mysql-access-and-replication-blocked-by.html&usg=ALkJrhi5tA_oTf2eicUOhfKHlh17ZoiqwQ" style="color: #888888; text-decoration: none;">ब्लॉग पोस्ट</a><span class="Apple-converted-space"> </span>.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">हालांकि, मैं MySQL ग्राहकों के माध्यम से जोड़ने जब मैं इस ब्लॉग में एक अधिक सामान्य तय पोस्ट बनाने लगा.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इस MySQL 5.6 से पहले सर्वर के लिए है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो MySQL निम्नलिखित कदम को कनेक्शन इस त्रुटि स्पष्ट करना चाहिए जब आप एक secure_auth त्रुटि मिलती है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br />
<div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;">+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />| User | Password |<span class="Apple-converted-space"> </span><br />+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />| authdtestuser | 34d22ac342c35af2</code><span class="Apple-converted-space"> </span><span class="notranslate"><code style="font-size: 0.9em;">+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />| User | Password |<span class="Apple-converted-space"> </span><br />+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />| authdtestuser | 34d22ac342c35af2 | |+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br /><br />SELECT @@session.old_passwords, @@global.old_passwords; +-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| @@session.old_passwords | @@global.old_passwords |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| 1 | 1 |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br /><br />mysql> SET @@session.old_passwords = 0; SET @@global.old_passwords=0;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />mysql> SELECT @@session.old_passwords, @@global.old_passwords;<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| @@session.old_passwords | @@global.old_passwords |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| 0 | 0 |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />mysql> SET PASSWORD FOR 'authdtestuser'@'localhost' = PASSWORD('sshthisisasecret');<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />mysql> select User , Password from mysql.user where User = 'authdtestuser';<span class="Apple-converted-space"> </span><br />+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />| User | Password |<span class="Apple-converted-space"> </span><br />+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />| authdtestuser | *E48BD8BF1B9F29459E5284AD158443B5B33B70E4 |<span class="Apple-converted-space"> </span><br />+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />mysql> SET @@session.old_passwords = 1; SET @@global.old_passwords=1;<span class="Apple-converted-space"> </span><br /><br />mysql> SELECT @@session.old_passwords, @@global.old_passwords;<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| @@session.old_passwords | @@global.old_passwords |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| 1 | 1 |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span></code></span><code style="font-size: 0.9em;">| |+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br /><br />SELECT @@session.old_passwords, @@global.old_passwords; +-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| @@session.old_passwords | @@global.old_passwords |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| 1 | 1 |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br /><br />mysql> SET @@session.old_passwords = 0; SET @@global.old_passwords=0;<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />mysql> SELECT @@session.old_passwords, @@global.old_passwords;<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| @@session.old_passwords | @@global.old_passwords |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| 0 | 0 |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />mysql> SET PASSWORD FOR 'authdtestuser'@'localhost' = PASSWORD('sshthisisasecret');<span class="Apple-converted-space"> </span><br />Query OK, 0 rows affected (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />mysql> select User , Password from mysql.user where User = 'authdtestuser';<span class="Apple-converted-space"> </span><br />+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />| User | Password |<span class="Apple-converted-space"> </span><br />+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />| authdtestuser | *E48BD8BF1B9F29459E5284AD158443B5B33B70E4 |<span class="Apple-converted-space"> </span><br />+---------------+-------------------------------------------+<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span><br /><br />mysql> SET @@session.old_passwords = 1; SET @@global.old_passwords=1;<span class="Apple-converted-space"> </span><br /><br />mysql> SELECT @@session.old_passwords, @@global.old_passwords;<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| @@session.old_passwords | @@global.old_passwords |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />| 1 | 1 |<span class="Apple-converted-space"> </span><br />+-------------------------+------------------------+<span class="Apple-converted-space"> </span><br />1 row in set (0.00 sec)<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /></div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0tag:blogger.com,1999:blog-73396883213728795.post-57773352844611382302014-07-15T18:19:00.003-07:002014-07-15T18:19:58.079-07:00MySQL, Ubuntu :: mysqld पहुँच अधिकार नहीं है<div dir="ltr" style="text-align: left;" trbidi="on">
Original post: <a href="http://anothermysqldba.blogspot.com/2014/07/mysql-ubuntu-mysqld-does-not-have.html">http://anothermysqldba.blogspot.com/2014/07/mysql-ubuntu-mysqld-does-not-have.html</a><br />
<br />
<span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो आज मैं मैं कुछ तालिकाओं ठीक हो सकता है तो बैकअप से एक डाटाबेस बहाल करने की जरूरत के लिए होता है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं पोर्ट 3306 के माध्यम से चल रहा है वह उत्पादन डेटाबेस छोड़ दिया है, जबकि मैं बंदरगाह 3307 के माध्यम से बैकअप की स्थापना की.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं एक mysql_restore निर्देशिका में 3307 पोर्ट के माध्यम से एक और संस्करण शुरू करने का प्रयास किया, लेकिन फिर भी, जब मैं कुछ त्रुटियों में भाग गया ....</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br />
<div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br />/usr/bin/mysqld_safe --defaults-file=/etc/my_3307.cnf<span class="Apple-converted-space"> </span><br /><br />[Warning] Can't create test file /var/lib/mysql_restore/localhost.lower-test<span class="Apple-converted-space"> </span><br />[Warning] Can't create test file /var/lib/mysql_restore/localhost.lower-test<span class="Apple-converted-space"> </span><br />Can't find file: './mysql/plugin.frm' (errno: 13)<span class="Apple-converted-space"> </span><br /><br />InnoDB: Completed initialization of buffer pool<span class="Apple-converted-space"> </span><br />InnoDB: Operating system error number 13 in a file operation.<span class="Apple-converted-space"> </span><br />InnoDB: The error means mysqld does not have the access rights to<span class="Apple-converted-space"> </span><br />InnoDB: the directory.<span class="Apple-converted-space"> </span><br />InnoDB: File name ./ibdata1<span class="Apple-converted-space"> </span><br />InnoDB: File operation call: 'open'.<span class="Apple-converted-space"> </span><br />InnoDB: Cannot continue operation.<span class="Apple-converted-space"> </span><br /><br /># perror 13<span class="Apple-converted-space"> </span><br />OS error code 13: Permission denied<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो मैं पहले, निर्देशिका पर जाँच की अनुमति यह 700 पर सेट किया और MySQL के स्वामित्व में था कि यह सुनिश्चित किया.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं भी डेटा निर्देशिका के अंदर निर्देशिकाओं 700 करने के लिए सेट और MySQL के स्वामित्व में था कि यह सुनिश्चित किया.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">फाइल के बाकी सभी 600 (आरडब्ल्यू आरडब्ल्यू ----) के लिए निर्धारित किया है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">बस मैं भी डिस्क पूर्ण नहीं था कि यह सुनिश्चित किया सुरक्षित करने के लिए.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो त्रुटि प्रवेश की अनुमति मुद्दों से पता चलता है लेकिन पहली नज़र में सभी अनुमतियाँ सही हैं.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">तो यह क्या है?</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं RHEL, या संबंधित शाखाओं पर था तो, मैं SELinux के बारे में सोचना होगा.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">यह किसी भी तरह यह अवरुद्ध हो गया था.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">Ubuntu निकल रहा है इस मामले में समीक्षा करने की जरूरत है.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br /># cat /etc/apparmor.d/usr.sbin.mysqld<span class="Apple-converted-space"> </span><br />...<span class="Apple-converted-space"> </span><br />/var/lib/mysql/ r,<span class="Apple-converted-space"> </span><br />/var/lib/mysql/** rwk,<span class="Apple-converted-space"> </span><br />...<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">डिफ़ॉल्ट "var / lib / MySQL" संबोधित किया जा रहा है कि नोटिस.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">मैं बनाया बहाल निर्देशिका हालांकि नहीं था.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">इसलिए कि और AppArmor का पुनरारंभ जोड़कर मैं तो सफलतापूर्वक MySQL शुरू करने में सक्षम था.</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><div class="codebox" style="-webkit-text-stroke-width: 0px; background-color: #eeeeff; border: 1px solid black; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; overflow: auto; padding: 10px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 600px; word-spacing: 0px;">
<code style="font-size: 0.9em;"><br /># vi /etc/apparmor.d/usr.sbin.mysqld<span class="Apple-converted-space"> </span><br />...<span class="Apple-converted-space"> </span><br />/var/lib/mysql/ r,<span class="Apple-converted-space"> </span><br />/var/lib/mysql/** rwk,<span class="Apple-converted-space"> </span><br />/var/lib/mysql_restore/ r,<span class="Apple-converted-space"> </span><br />/var/lib/mysql_restore/** rwk,<span class="Apple-converted-space"> </span><br />...<span class="Apple-converted-space"> </span><br />/etc/init.d/apparmor {start|stop|restart|reload|force-reload|status|recache}<span class="Apple-converted-space"> </span><br />/var/lib/mysql_restore# /etc/init.d/apparmor restart<span class="Apple-converted-space"> </span><br />...<span class="Apple-converted-space"> </span><br />/usr/bin/mysqld_safe --defaults-file=/etc/my_3307.cnf<span class="Apple-converted-space"> </span><br />...<span class="Apple-converted-space"> </span><br /># mysql -P 3307 --socket=/var/lib/mysql_restore/mysqld_3307.sock<span class="Apple-converted-space"> </span></code></div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><span class="notranslate" style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">समीक्षा के लिए अतिरिक्त यूआरएल अगर जरूरत:</span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" /><ul style="-webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.479999542236328px; margin: 0.5em 0px; orphans: auto; padding: 0px 2.5em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=https://help.ubuntu.com/community/AppArmor&usg=ALkJrhh8Nntrf_Mry2uHN1RLSZ6NdxBncw" style="color: #888888; text-decoration: none;">https://help.ubuntu.com/community/AppArmor</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://ubuntuforums.org/showthread.php%3Ft%3D782224&usg=ALkJrhhPKN1RXzqgCXxMI85DN-r0yjE8jg" style="color: #888888; text-decoration: none;">http://ubuntuforums.org/showthread.php?t=782224</a></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px; text-indent: 0px;"><span class="notranslate"><a href="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&tl=hi&u=http://www.cyberciti.biz/faq/suse-ubuntu-linux-start-stop-restart-apparmor-command/&usg=ALkJrhiKEURFxtxvjiIJw0dcmPY54P5-NA" style="color: #888888; text-decoration: none;">http://www.cyberciti.biz/faq/suse-ubuntu-linux-start-stop-restart-apparmor-command/</a></span></li>
</ul>
</div>
Keith Larson ( anothermysqldba )http://www.blogger.com/profile/10894464761448543094noreply@blogger.com0