{"id":265,"date":"2020-04-12T23:51:59","date_gmt":"2020-04-12T21:51:59","guid":{"rendered":"http:\/\/tietokanta.dy.fi\/linux\/?p=265"},"modified":"2020-04-12T23:51:59","modified_gmt":"2020-04-12T21:51:59","slug":"kayttajatunnuksen-liittaminen-tietokantaan","status":"publish","type":"post","link":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/2020\/04\/12\/kayttajatunnuksen-liittaminen-tietokantaan\/","title":{"rendered":"K\u00e4ytt\u00e4j\u00e4tunnuksen liitt\u00e4minen tietokantaan"},"content":{"rendered":"\n<p>Jotta tietokantaa voidaa k\u00e4ytt\u00e4\u00e4 k\u00e4ytt\u00e4j\u00e4tunnuksella ja salasanalla, ne tulee liitt\u00e4\u00e4 oikeuksilla tietokantaan. Se tehd\u00e4\u00e4n seuraavasti -><br>GRANT ALL PRIVILEGES ON tietokannan-nimi*to &#8216;k\u00e4ytt\u00e4j\u00e4tunnus&#8217;identified by &#8216;salasana&#8217;;<br>Esimerkiksi tehd\u00e4\u00e4n wpdata tietokantaan liitt\u00e4minen dbmekaanikolle. -><br>GRANT ALL PRIVILEGES ON wpdata.*to &#8216;dbmekaanikko&#8217;identified by &#8216;passwordi&#8217;;<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"http:\/\/tietokanta.dy.fi\/linux\/wp-content\/uploads\/2020\/04\/granttall_privileges.jpg\"><img loading=\"lazy\" width=\"763\" height=\"39\" src=\"http:\/\/tietokanta.dy.fi\/linux\/wp-content\/uploads\/2020\/04\/granttall_privileges.jpg\" alt=\"\" data-id=\"268\" data-link=\"http:\/\/tietokanta.dy.fi\/linux\/?attachment_id=268\" class=\"wp-image-268\"\/><\/a><\/figure><\/li><\/ul><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Jotta tietokantaa voidaa k\u00e4ytt\u00e4\u00e4 k\u00e4ytt\u00e4j\u00e4tunnuksella ja salasanalla, ne tulee liitt\u00e4\u00e4 oikeuksilla tietokantaan. Se tehd\u00e4\u00e4n seuraavasti ->GRANT ALL PRIVILEGES ON tietokannan-nimi*to &#8216;k\u00e4ytt\u00e4j\u00e4tunnus&#8217;identified by &#8216;salasana&#8217;;Esimerkiksi tehd\u00e4\u00e4n wpdata tietokantaan liitt\u00e4minen dbmekaanikolle. ->GRANT ALL PRIVILEGES ON wpdata.*to &#8216;dbmekaanikko&#8217;identified by &#8216;passwordi&#8217;;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/265"}],"collection":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":1,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":269,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/265\/revisions\/269"}],"wp:attachment":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/media?parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/categories?post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/tags?post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}