{"id":69093,"date":"2021-08-12T00:03:14","date_gmt":"2021-08-12T04:03:14","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/securing-mysql-database-5\/"},"modified":"2021-08-12T00:03:14","modified_gmt":"2021-08-12T04:03:14","slug":"securing-mysql-database-5","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=69093","title":{"rendered":"Securing MySQL Database #5"},"content":{"rendered":"<p>After installing mysql, we will need to remove test database and associated users and their permissions. We will need to use mysql database to remove associated users and permission.<\/p>\n<p>&#8211;DROP DATABASE test; <\/p>\n<p>&#8211;SELECT db.Host, db.Db, db.User, db.Select_priv     -&gt; FROM db WHERE (db.DB = &#8220;vworksDB&#8221;);<\/p>\n<p>&#8212;SELECT db.User, db.Host, db.Db     -&gt; FROM db     -&gt; WHERE (db.Db LIKE &#8216;test%&#8217;);<\/p>\n<p>&#8212;DELETE FROM db <\/p>\n<p>    -&gt; WHERE (db.Db LIKE &#8216;test%&#8217;);<\/p>\n<p>&#8212;<\/p>\n<p>mysql&gt; DELETE FROM db <\/p>\n<p>    -&gt; WHERE (db.Host = &#8220;%&#8221;);<\/p>\n<p>mysql&gt; DELETE FROM db <\/p>\n<p>    -&gt; WHERE (db.User = &#8220;&#8221;);<\/p>\n<p>&#8212;SELECT user.Host, user.User <\/p>\n<p>    -&gt; FROM user <\/p>\n<p>    -&gt; WHERE ((user.Host = &#8220;%&#8221;) OR (user.User = &#8220;&#8221;));<\/p>\n<p>&#8212;<\/p>\n<p>DELETE FROM user     -&gt; WHERE ((user.Host = &#8220;%&#8221;) OR (user.User = &#8220;&#8221;));&#8212;<\/p>\n<p>FLUSH PRIVILEGES;&#8212;<\/p>\n<p>details: http:\/\/www.keithjbrown.co.uk\/vworks\/mysql\/mysql_pA.php#secure From: http:\/\/sitestree.com\/?p=4721<br \/> Categories:5<br \/>Tags:<br \/> Post Data:2007-02-12 07:44:59<\/p>\n<pre><code>    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\"&gt;https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    (Big Data, Cloud, Security, Machine Learning): Courses: &lt;a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"&gt; http:\/\/Training.SitesTree.com&lt;\/a&gt; \n    In Bengali: &lt;a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\"&gt;http:\/\/Bangla.SaLearningSchool.com&lt;\/a&gt;\n    &lt;a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\"&gt;http:\/\/SitesTree.com&lt;\/a&gt;\n    8112223 Canada Inc.\/JustEtc: &lt;a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\"&gt;http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) &lt;\/a&gt;\n    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com'&gt; https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    Medium: &lt;a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"&gt; https:\/\/medium.com\/@SayedAhmedCanada &lt;\/a&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After installing mysql, we will need to remove test database and associated users and their permissions. We will need to use mysql database to remove associated users and permission. &#8211;DROP DATABASE test; &#8211;SELECT db.Host, db.Db, db.User, db.Select_priv -&gt; FROM db WHERE (db.DB = &#8220;vworksDB&#8221;); &#8212;SELECT db.User, db.Host, db.Db -&gt; FROM db -&gt; WHERE (db.Db LIKE &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=69093\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-69093","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":23198,"url":"http:\/\/bangla.sitestree.com\/?p=23198","url_meta":{"origin":69093,"position":0},"title":"Securing MySQL Database #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 26, 2021","format":false,"excerpt":"Mainly deals with TestDb After installing mysql, we will need to remove test database and associated users and their permissions. We will need to use mysql database to remove associated users and permission. -- DROP DATABASE test; -- SELECT db.Host, db.Db, db.User, db.Select_priv -> FROM db WHERE (db.DB = \"vworksDB\");\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7731,"url":"http:\/\/bangla.sitestree.com\/?p=7731","url_meta":{"origin":69093,"position":1},"title":"MySQL \u098f\u09b0 \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c \u0995\u09c7 \u09b8\u09c1\u09b0\u0995\u09cd\u09b7\u09bf\u09a4 \u0995\u09b0\u09be","author":"Author-Check- Article-or-Video","date":"March 28, 2015","format":false,"excerpt":"MySQL \u098f\u09b0 \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c \u0995\u09c7 \u09b8\u09c1\u09b0\u0995\u09cd\u09b7\u09bf\u09a4 \u0995\u09b0\u09be ------------------------------------------------- MySQL \u0987\u09a8\u09cd\u09b8\u099f\u09b2\u09c7\u09b6\u09a8\u09c7\u09b0 \u09aa\u09b0 \u0986\u09ae\u09be\u09a6\u09c7\u09b0 \u099f\u09c7\u09b8\u09cd\u099f \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c, \u09b8\u0982\u09b6\u09cd\u09b2\u09bf\u09b7\u09cd\u099f \u0987\u0989\u099c\u09be\u09b0 \u098f\u09ac\u0982 \u09a4\u09be\u09a6\u09c7\u09b0 \u09aa\u09be\u09b0\u09ae\u09bf\u09b6\u09a8 \u0985\u09aa\u09b8\u09be\u09b0\u09a8 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7 \u0964 \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf\u099f\u09bf \u09a8\u09bf\u099a\u09c7 \u09ac\u09cd\u09af\u0996\u09cd\u09af\u09be \u0995\u09b0\u09be \u09b9\u09b2\u0983 -- DROP DATABASE test; -- SELECT db.Host, db.Db, db.User, db.Select_priv -> FROM db WHERE (db.DB = \"vworksDB\"); --- SELECT db.User, db.Host, db.Db ->\u2026","rel":"","context":"In &quot;\u09ae\u09be\u0987 \u098f\u09b8 \u0995\u09bf\u0989 \u098f\u09b2 \/MYSQL&quot;","block_context":{"text":"\u09ae\u09be\u0987 \u098f\u09b8 \u0995\u09bf\u0989 \u098f\u09b2 \/MYSQL","link":"http:\/\/bangla.sitestree.com\/?cat=257"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":74027,"url":"http:\/\/bangla.sitestree.com\/?p=74027","url_meta":{"origin":69093,"position":2},"title":"create database from db model using mysql workbench","author":"Sayed","date":"April 9, 2022","format":false,"excerpt":"https:\/\/youtu.be\/NWFDzlBE068","rel":"","context":"In &quot;From Youtube Channel&quot;","block_context":{"text":"From Youtube Channel","link":"http:\/\/bangla.sitestree.com\/?cat=1952"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/NWFDzlBE068\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":22960,"url":"http:\/\/bangla.sitestree.com\/?p=22960","url_meta":{"origin":69093,"position":3},"title":"Create Database from DB model using MySQL Workbench #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 22, 2021","format":false,"excerpt":"Create database from db model using MySQL Workbench [youtube http:\/\/www.youtube.com\/watch?v=NWFDzlBE068?feature=player_detailpage&w=640&h=360] From: http:\/\/sitestree.com\/?p=1628 Categories:Root, By Sayed AhmedTags: Post Data:2014-10-30 20:03:26 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop Online: https:\/\/www.ShopForSoul.com\/ Medium: https:\/\/medium.com\/@SayedAhmedCanada","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5420,"url":"http:\/\/bangla.sitestree.com\/?p=5420","url_meta":{"origin":69093,"position":4},"title":"MySQL \u0993\u09df\u09be\u09b0\u0995\u09ac\u09c7\u09a8\u099a \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c \u09ac\u09be\u09a8\u09be\u09ac\u09c7\u09a8\u0964 Create database from db model using MySQL workbench","author":"Sayed","date":"October 30, 2014","format":false,"excerpt":"Create database from db model using MySQL workbench","rel":"","context":"In &quot;Root&quot;","block_context":{"text":"Root","link":"http:\/\/bangla.sitestree.com\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20401,"url":"http:\/\/bangla.sitestree.com\/?p=20401","url_meta":{"origin":69093,"position":5},"title":"Learn some Centos\/Redhat Linux: RHCE: MariaDB Administration on Redhat\/Fedora\/CentOS","author":"Author-Check- Article-or-Video","date":"February 20, 2021","format":false,"excerpt":"RHCE: MariaDB Administration on Redhat\/Fedora\/CentOS Check if mariaDB is installed or not 130 yum list installed | grep ^mariadb mariaDB originated from MySQL - after MySQL Got Bought by Oracle 133 yum list installed | grep ^mariadb I see - installed though not completely Output: mariadb-libs.x86_64 1:5.5.52-1.el7 @anaconda There are\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69093"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69093\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69093"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}