{"id":286095,"date":"2017-05-10T13:00:04","date_gmt":"2017-05-10T09:00:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=286095"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2017-05-10T09:00:04","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=286095","title":{"rendered":"\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 MySQL: \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043e\u0442\u0432\u0435\u0442\u044b"},"content":{"rendered":"<p>\u0412 \u0444\u0435\u0432\u0440\u0430\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0433\u043e\u0434\u0430 <b><a href=\"http:\/\/pgday.ru\/ru\/2017\/speakers\/111?utm_source=habr&amp;utm_medium=post&amp;utm_campaign=smirnova2\">\u0421\u0432\u0435\u0442\u0430 \u0421\u043c\u0438\u0440\u043d\u043e\u0432\u0430<\/a><\/b> (\u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Percona) \u043f\u0440\u043e\u0432\u0435\u043b\u0430 \u0432\u0435\u0431\u0438\u043d\u0430\u0440, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0439 <a href=\"https:\/\/www.percona.com\/resources\/webinars\/troubleshooting-mysql-access-privileges-issues\"><b>\u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 MySQL<\/b><\/a>. \u0417\u0430\u043f\u0438\u0441\u044c \u0438 \u0441\u043b\u0430\u0439\u0434\u044b \u0441 \u0432\u0435\u0431\u0438\u043d\u0430\u0440\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b <a href=\"https:\/\/www.percona.com\/resources\/webinars\/troubleshooting-mysql-access-privileges-issues\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0431\u0437\u043e\u0440 \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443.<br \/>  <a name=\"habracut\"><\/a><br \/>  <b>\u041a\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0443\u0436\u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e root@localhost: ALL \u0438\u043b\u0438 Super? \u0412\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u043b\u0438 \u043f\u0440\u0430\u0432\u0430 All \u0438 Super \u043f\u0440\u0430\u0432\u0430 \u0442\u043e\u0436\u0435?<\/b><\/p>\n<p>  \u0423 \u0432\u0430\u0441 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u043f\u043e\u043b\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438. \u041b\u0443\u0447\u0448\u0435, \u0435\u0441\u043b\u0438 \u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 localhost. \u041f\u0440\u0430\u0432\u0430 ALL \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u043f\u0440\u0430\u0432\u0430 SUPER.<\/p>\n<p>  <b>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 IP \u0430\u0434\u0440\u0435\u0441\u0430, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0447\u0435\u0440\u0435\u0437 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u2014 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438. \u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 MySQL \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u043c\u0435\u043d\u0438 \u0445\u043e\u0441\u0442\u0430, \u0430 \u043d\u0435 IP \u0430\u0434\u0440\u0435\u0441\u0430? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, myname@mymachine.mydomain.com \u0432\u043c\u0435\u0441\u0442\u043e \u201cmyname@10.10.10.10\u201d? \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043b\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u044d\u0448 \u0445\u043e\u0441\u0442\u0430\/performance_schema?<\/b><\/p>\n<p>  <img decoding=\"async\" align=\"left\" width=\"400\" src=\"https:\/\/habrastorage.org\/web\/e8f\/2bd\/01f\/e8f2bd01fed642f881d5405a7d9c8eed.png\"\/>\u0414\u0430, \u043c\u043e\u0436\u043d\u043e. \u041d\u043e \u043f\u043e\u0445\u043e\u0436\u0435, \u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0437\u044a\u044f\u0441\u043d\u0438\u043b\u0430, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u044d\u0448 \u0445\u043e\u0441\u0442\u0430. \u042d\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0442\u0432\u0435\u0442\u044b \u043e\u0442 DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0412\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0438\u043b\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c. \u0414\u043e \u0432\u0435\u0440\u0441\u0438\u0438 5.6 \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043c\u043e\u0433\u043b\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0435\u0441\u043b\u0438 \u043a\u044d\u0448 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440. \u0412 \u0432\u0435\u0440\u0441\u0438\u0438 5.6 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 HOST_CACHE \u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 Performance Schema. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u044d\u0448\u0430 \u0445\u043e\u0441\u0442\u0430 \u0438, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u0443\u0440\u0435\u0437\u0430\u0442\u044c \u0435\u0433\u043e.<\/p>\n<p>  <b>\u0415\u0441\u043b\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0438 IP), \u043f\u043e \u043a\u0430\u043a\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c MySQL \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442, \u043a\u0430\u043a\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438? \u0411\u0443\u0434\u0435\u0442 \u043b\u0438 \u043e\u043d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f?<\/b><\/p>\n<p>  \u041d\u0435\u0442, mysqld \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u0432\u0430\u0448\u0438 \u043f\u0430\u0440\u043e\u043b\u0438. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043e\u043d \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0438 \u0445\u043e\u0441\u0442\u0443 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044f, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0441\u043b\u0430\u0439\u0434\u0435 \u211637 (\u0441\u0442\u0440. 110). \u0417\u0430\u0442\u0435\u043c \u043e\u043d \u0431\u0435\u0440\u0435\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443. \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 foo@somehost, foo@some% \u0438 foo@1.2.3.4, \u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435\u0441\u044c \u043a\u0430\u043a foo \u0438\u0437 somehost, mysqld \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 foo@somehost. \u0415\u0441\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0432\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435\u0441\u044c \u043a\u0430\u043a foo \u043e\u0442 someotherhost, mysqld \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 foo@some%. \u0425\u043e\u0441\u0442 \u043d\u0430 \u0431\u0430\u0437\u0435 IP \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043b\u0438\u0431\u043e \u0435\u0441\u043b\u0438 mysqld \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 skip-networking, \u043b\u0438\u0431\u043e \u0435\u0441\u043b\u0438 1.2.3.4 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0445\u043e\u0441\u0442, \u0447\u044c\u0435 \u0438\u043c\u044f \u043d\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u00absome\u00bb.<\/p>\n<p>  \u0421\u043c\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 IP \u0441 \u0445\u043e\u0441\u0442\u0430\u043c\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u043c\u0435\u043d \u043e\u043f\u0430\u0441\u043d\u043e \u0432 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0445\u043e\u0441\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u043d\u044f\u0442 \u0438 \u043a\u0430\u043a somehost, \u0438 \u043a\u0430\u043a 1.2.3.4. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0439\u0434\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a \u0441 \u043a\u044d\u0448\u0435\u043c \u0445\u043e\u0441\u0442\u0430 \u0438\u043b\u0438 DNS-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b\u043e \u0442\u0440\u0438 \u0445\u043e\u0441\u0442\u0430: uniquehost (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a 1.2.3.4), somehost (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a 4.3.2.1) \u0438 someothershost (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a 4.3.2.2). \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c uniquehost \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 IP 1.2.3.5 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c IP 1.2.3.4 \u0434\u043b\u044f \u0445\u043e\u0441\u0442\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c someyetanotherhost. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0441 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 IP 1.2.3.4 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a foo@some%, \u0430 \u044d\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u0432\u044b \u0445\u043e\u0442\u0435\u043b\u0438.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439, \u044f \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u0434\u0432\u0443\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0432\u044b\u0434\u0430\u043b\u0430 \u0438\u043c \u0434\u0432\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043d\u0430\u0431\u043e\u0440\u0430 \u043f\u0440\u0430\u0432:<\/p>\n<pre><code class=\"bash\">mysql&gt; create user sveta@Thinkie; Query OK, 0 rows affected (0,01 sec) mysql&gt; create user sveta@'192.168.0.4'; Query OK, 0 rows affected (0,00 sec) mysql&gt; grant all on *.* to 'sveta'@'Thinkie'; Query OK, 0 rows affected (0,00 sec) mysql&gt; grant all on db1.* to 'sveta'@'192.168.0.4'; Query OK, 0 rows affected (0,00 sec) <\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430 \u0444\u0430\u0439\u043b \/etc\/hosts \u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0430 \u0430\u0434\u0440\u0435\u0441 192.168.0.4 \u0434\u043b\u044f \u0438\u043c\u0435\u043d\u0438 Thinkie:<\/p>\n<pre><code class=\"bash\">127.0.0.1   localhost # 127.0.1.1   Thinkie 192.168.0.4 Thinkie <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u043b\u0438 \u044f \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u044e\u0441\u044c \u043a\u0430\u043a sveta, \u0438 Thinkie, \u0438 192.168.0.4 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0445\u043e\u0441\u0442:<\/p>\n<pre><code class=\"bash\">sveta@Thinkie:$ mysql -hThinkie -usveta ... mysql&gt; select user(), current_user(); +---------------+----------------+ | user()        | current_user() | +---------------+----------------+ | sveta@Thinkie | sveta@thinkie  | +---------------+----------------+ 1 row in set (0,00 sec) mysql&gt; show grants; +--------------------------------------------------+ | Grants for sveta@thinkie                         | +--------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'sveta'@'thinkie' | +--------------------------------------------------+ 1 row in set (0,00 sec) mysql&gt; q Bye sveta@Thinkie:$ mysql -h192.168.0.4 -usveta ... mysql&gt; show grants; +--------------------------------------------------+ | Grants for sveta@thinkie                         | +--------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'sveta'@'thinkie' | +--------------------------------------------------+ 1 row in set (0,00 sec) mysql&gt; select user(), current_user(); +---------------+----------------+ | user()        | current_user() | +---------------+----------------+ | sveta@Thinkie | sveta@thinkie  | +---------------+----------------+ 1 row in set (0,00 sec) mysql&gt; q Bye <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430 \u0444\u0430\u0439\u043b \/etc\/hosts \u0438 \u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043b\u0430 Thinkie \u043a 127.0.0.1 (localhost):<\/p>\n<pre><code class=\"bash\">127.0.0.1   localhost 127.0.1.1   Thinkie # 192.168.0.4 Thinkie <\/code><\/pre>\n<p>  \u041d\u043e \u0445\u043e\u0441\u0442 192.168.0.4 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 Thinkie:<\/p>\n<pre><code class=\"bash\">sveta@Thinkie:$ mysql -h192.168.0.4 -usveta ... mysql&gt; select user(), current_user(); +---------------+----------------+ | user()        | current_user() | +---------------+----------------+ | sveta@Thinkie | sveta@thinkie  | +---------------+----------------+ 1 row in set (0,00 sec) mysql&gt; show grants; +--------------------------------------------------+ | Grants for sveta@thinkie                         | +--------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'sveta'@'thinkie' | +--------------------------------------------------+ 1 row in set (0,00 sec) mysql&gt; q Bye <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0447\u0438\u043d\u043e\u0439 \u044d\u0442\u043e\u0433\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u043a\u0435\u0448 \u0445\u043e\u0441\u0442\u0430, \u0447\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0432\u0438\u0434\u043d\u043e \u0432 Performance Schema:<\/p>\n<pre><code class=\"bash\">sveta@Thinkie:$ mysql -uroot ... mysql&gt; select * from performance_schema.host_cacheG *************************** 1. row ***************************                                         IP: 192.168.0.4                                       HOST: Thinkie                             HOST_VALIDATED: YES                         SUM_CONNECT_ERRORS: 0                  COUNT_HOST_BLOCKED_ERRORS: 0            COUNT_NAMEINFO_TRANSIENT_ERRORS: 0            COUNT_NAMEINFO_PERMANENT_ERRORS: 0                        COUNT_FORMAT_ERRORS: 0            COUNT_ADDRINFO_TRANSIENT_ERRORS: 0            COUNT_ADDRINFO_PERMANENT_ERRORS: 0                        COUNT_FCRDNS_ERRORS: 0                      COUNT_HOST_ACL_ERRORS: 0                COUNT_NO_AUTH_PLUGIN_ERRORS: 0                   COUNT_AUTH_PLUGIN_ERRORS: 0                     COUNT_HANDSHAKE_ERRORS: 0                    COUNT_PROXY_USER_ERRORS: 0                COUNT_PROXY_USER_ACL_ERRORS: 0                COUNT_AUTHENTICATION_ERRORS: 0                           COUNT_SSL_ERRORS: 0          COUNT_MAX_USER_CONNECTIONS_ERRORS: 0 COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS: 0              COUNT_DEFAULT_DATABASE_ERRORS: 0                  COUNT_INIT_CONNECT_ERRORS: 0                         COUNT_LOCAL_ERRORS: 0                       COUNT_UNKNOWN_ERRORS: 0                                 FIRST_SEEN: 2017-03-02 23:19:32                                  LAST_SEEN: 2017-03-02 23:20:31                           FIRST_ERROR_SEEN: NULL                            LAST_ERROR_SEEN: NULL 1 row in set (0,00 sec) mysql&gt; truncate performance_schema.host_cache; Query OK, 0 rows affected (0,00 sec) mysql&gt; q Bye <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b host_cache \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0445\u043e\u0441\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a, \u043a\u0430\u043a \u044f \u043e\u0436\u0438\u0434\u0430\u044e:<\/p>\n<pre><code class=\"bash\">sveta@Thinkie:$ mysql -h192.168.0.4 -usveta ... mysql&gt; show grants; +----------------------------------------------------------+ | Grants for sveta@192.168.0.4                             | +----------------------------------------------------------+ | GRANT USAGE ON *.* TO 'sveta'@'192.168.0.4'              | | GRANT ALL PRIVILEGES ON `db1`.* TO 'sveta'@'192.168.0.4' | +----------------------------------------------------------+ 2 rows in set (0,00 sec) mysql&gt; select user(), current_user(); +-------------------+-------------------+ | user()            | current_user()    | +-------------------+-------------------+ | sveta@192.168.0.4 | sveta@192.168.0.4 | +-------------------+-------------------+ 1 row in set (0,00 sec) mysql&gt; q Bye <\/code><\/pre>\n<p>  <b>\u041a\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0430 \u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u043d\u0435 root \u0438 \u043d\u0435 super \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c mysqldump \u0434\u043b\u044f \u0441\u0431\u0440\u043e\u0441\u0430 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0435\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435?<\/b><\/p>\n<p>  \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u043f\u0440\u0430\u0432\u0430 SELECT \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u0432\u044b \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0443 \u0432\u0430\u0441 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0430\u0432\u0430 SHOW VIEW \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 SHOW CREATE TABLE. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b\/\u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0432\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0438\u043c. \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043e\u043f\u0446\u0438\u044e &#8212;lock-tables \u0438\u043b\u0438 &#8212;lock-all-tables, \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0430\u0432\u0430 LOCK.<\/p>\n<p>  <b>\u0415\u0441\u043b\u0438 \u0432 MySQL \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 max_connection, \u043c\u043e\u0436\u0435\u0442 \u043b\u0438 \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0438\u0442\u044c\u0441\u044f root@localhost \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 ALL \u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 Super?<\/b><\/p>\n<p>  ALL \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 SUPER, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 ALL \u0441\u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0438\u0442\u044c\u0441\u044f. \u041d\u043e \u0438\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0432\u044b\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0430 SUPER \u0438\u043b\u0438 ALL \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <b>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u044e \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435? \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b? \u0418\u043b\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c?<\/b><\/p>\n<p>  \u041d\u0435\u0442, MySQL \u043e\u0442\u043a\u043b\u043e\u043d\u0438\u0442 \u0442\u0430\u043a\u043e\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"bash\">mysql&gt; show grants for sveta@'192.168.0.4'; +----------------------------------------------------------+ | Grants for sveta@192.168.0.4                             | +----------------------------------------------------------+ | GRANT USAGE ON *.* TO 'sveta'@'192.168.0.4'              | | GRANT ALL PRIVILEGES ON `db1`.* TO 'sveta'@'192.168.0.4' | +----------------------------------------------------------+ 2 rows in set (0,00 sec) mysql&gt; revoke update on db1.t1 from sveta@'192.168.0.4'; ERROR 1147 (42000): There is no such grant defined for user 'sveta' on host '192.168.0.4' on table 't1' <\/code><\/pre>\n<p>  <b>\u041a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0440\u043e\u043b\u0438\u2026 \u0432 \u0432\u0438\u0434\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0433\u0440\u0430\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0440\u043e\u043b\u0438? <\/b><\/p>\n<p>  \u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432:  <\/p>\n<ol>\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c MariaDB 10.0.5 \u0438\u043b\u0438 \u043d\u043e\u0432\u0435\u0435. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u0440\u043e\u043b\u0435\u0439 \u0432 MariaDB <a href=\"https:\/\/mariadb.com\/kb\/en\/mariadb\/roles\/\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/li>\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c MySQL 8.0. \u041f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e \u0440\u043e\u043b\u044f\u0445 \u0432 MySQL 8.0 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/roles.html\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/li>\n<li>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e MySQL 5.7: \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u043e\u043b\u0438 \u0442\u0430\u043a, \u043a\u0430\u043a \u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u043d\u0430 \u0441\u043b\u0430\u0439\u0434\u0435 19 (\u0441\u0442\u0440. 53-60).<\/li>\n<li>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e MySQL 5.5 \u0438 5.6: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0442 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434, \u0447\u0442\u043e \u043d\u0430 \u0441\u043b\u0430\u0439\u0434\u0430\u0445, \u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u043a\u0441\u0438-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/li>\n<li>\u0412\u0441\u0435\u0433\u0434\u0430: \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438, \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<\/li>\n<\/ol>\n<p>  <b>\u041a\u0430\u043a \u0431\u044b \u0432\u044b \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u043e\u043b\u0435\u0439 \u0441 \u043f\u0440\u043e\u043a\u0441\u0438-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u043d\u0430 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u043e\u043b\u0438 \u0432 MySQL 8.x?<\/b><\/p>\n<p>  \u042f \u0431\u044b \u0441\u0431\u0440\u043e\u0441\u0438\u043b\u0430 \u043f\u0440\u043e\u043a\u0441\u0438-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u0440\u043e\u043b\u044c \u0441 \u0442\u0435\u043c\u0438 \u0436\u0435 \u043f\u0440\u0430\u0432\u0430\u043c\u0438, \u0430 \u0437\u0430\u0442\u0435\u043c \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043b\u0430 \u043f\u0440\u043e\u043a\u0441\u0438-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u044d\u0442\u0443 \u043d\u043e\u0432\u0443\u044e \u0440\u043e\u043b\u044c \u0432\u043c\u0435\u0441\u0442\u043e PROXY.<\/p>\n<p>  <b>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 Active Directory \u0438 MySQL, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u044b Active Directory?<\/b><\/p>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/windows-authentication-plugin.html\">Windows Authentication Plugin<\/a>, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0432 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 5.5 \u0438 \u043d\u043e\u0432\u0435\u0435. \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c <a href=\"https:\/\/www.percona.com\/doc\/percona-pam-for-mysql\/index.html\">Percona PAM authentication plugin<\/a> \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043a Active Directory \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f LDAP. \u0415\u0441\u0442\u044c <a href=\"https:\/\/runops.wordpress.com\/2015\/03\/19\/how-to-setup-active-directory-authentication-in-mysql-running-on-linux\/\">\u0441\u0442\u0430\u0442\u044c\u044f<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u043e \u044f \u0441\u0430\u043c\u0430 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0430 \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434.<\/p>\n<p>  <b>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0432 MySQL?<\/b><\/p>\n<p>  \u0414\u0430, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043b\u0430\u0433\u0438\u043d\u0430 PAM. \u0415\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u043b\u044f LDAP \u0438 Active Directory. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043e\u0432 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a Kerberos.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a61\/060\/56f\/a6106056fcce49a29cd997efd8bc97b9.png\"\/><br \/>  \u0414\u0440\u0443\u0437\u044c\u044f, \u0435\u0441\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 MySQL \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u0430\u0441 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0435\u0437\u0436\u0430\u0439\u0442\u0435 \u043a \u043d\u0430\u043c \u043d\u0430 <b><a href=\"http:\/\/pgday.ru\/ru\/2017\/request\/registration?utm_source=habr&amp;utm_medium=post&amp;utm_campaign=smirnova2\">PG Day&#8217;17 Russia<\/a><\/b>. <b>\u0421\u0432\u0435\u0442\u0430 \u0421\u043c\u0438\u0440\u043d\u043e\u0432\u0430<\/b>, <b>\u041f\u0435\u0442\u0440 \u0417\u0430\u0439\u0446\u0435\u0432<\/b> \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Percona \u0433\u043e\u0442\u043e\u0432\u044f\u0442 \u0434\u043b\u044f \u0432\u0430\u0441 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u043e\u043a\u043b\u0430\u0434\u044b \u0438 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441\u044b \u043e\u0431 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 MySQL \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 <a href=\"http:\/\/pgday.ru\/ru\/2017\/papers?utm_source=habr&amp;utm_medium=post&amp;utm_campaign=smirnova2#section3\"><b>\u0441\u0435\u043a\u0446\u0438\u0438<\/b><\/a>, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c.<br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/328290\/\"> https:\/\/habrahabr.ru\/post\/328290\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0444\u0435\u0432\u0440\u0430\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0433\u043e\u0434\u0430 <b><a href=\"http:\/\/pgday.ru\/ru\/2017\/speakers\/111?utm_source=habr&amp;utm_medium=post&amp;utm_campaign=smirnova2\">\u0421\u0432\u0435\u0442\u0430 \u0421\u043c\u0438\u0440\u043d\u043e\u0432\u0430<\/a><\/b> (\u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Percona) \u043f\u0440\u043e\u0432\u0435\u043b\u0430 \u0432\u0435\u0431\u0438\u043d\u0430\u0440, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0439 <a href=\"https:\/\/www.percona.com\/resources\/webinars\/troubleshooting-mysql-access-privileges-issues\"><b>\u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 MySQL<\/b><\/a>. \u0417\u0430\u043f\u0438\u0441\u044c \u0438 \u0441\u043b\u0430\u0439\u0434\u044b \u0441 \u0432\u0435\u0431\u0438\u043d\u0430\u0440\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b <a href=\"https:\/\/www.percona.com\/resources\/webinars\/troubleshooting-mysql-access-privileges-issues\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0431\u0437\u043e\u0440 \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-286095","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/286095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=286095"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/286095\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=286095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=286095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=286095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}