{"id":25,"date":"2025-07-28T09:17:06","date_gmt":"2025-07-28T06:17:06","guid":{"rendered":"https:\/\/wiki.rollyk.ru\/?p=25"},"modified":"2025-07-28T09:17:06","modified_gmt":"2025-07-28T06:17:06","slug":"%d0%a3%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-mariadb","status":"publish","type":"post","link":"https:\/\/wiki.rollyk.ru\/?p=25","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 mariadb"},"content":{"rendered":"<p>sudo apt update<br \/>\nsudo apt upgrade -y<\/p>\n<p>sudo apt install mariadb-server -y<\/p>\n<p>sudo systemctl status mariadb<\/p>\n<p>sudo systemctl start mariadb<\/p>\n<p>sudo systemctl enable mariadb<\/p>\n<p>sudo mysql_secure_installation<\/p>\n<p>sudo mysql<\/p>\n<p>CREATE DATABASE mydb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;<br \/>\nCREATE USER &#8216;myuser&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;mypassword&#8217;;<br \/>\nGRANT ALL PRIVILEGES ON mydb.* TO &#8216;myuser&#8217;@&#8217;localhost&#8217;;<br \/>\nFLUSH PRIVILEGES;<\/p>\n<p>GRANT CREATE, CREATE USER ON *.* TO &#8216;myuser&#8217;@&#8217;localhost&#8217;;<br \/>\nFLUSH PRIVILEGES;<\/p>\n<p>GRANT ALL PRIVILEGES ON *.* TO &#8216;myuser&#8217;@&#8217;localhost&#8217; WITH GRANT OPTION;<br \/>\nFLUSH PRIVILEGES;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo apt update sudo apt upgrade -y sudo apt install mariadb-server -y sudo systemctl status mariadb sudo systemctl start mariadb sudo systemctl enable mariadb sudo mysql_secure_installation sudo mysql CREATE DATABASE mydb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER &#8216;myuser&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;mypassword&#8217;; GRANT ALL PRIVILEGES ON mydb.* TO &#8216;myuser&#8217;@&#8217;localhost&#8217;; FLUSH PRIVILEGES; GRANT CREATE, CREATE USER [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-15"],"_links":{"self":[{"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":1,"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.rollyk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}