{"id":638,"date":"2021-10-01T11:45:54","date_gmt":"2021-10-01T08:45:54","guid":{"rendered":"http:\/\/tietokanta.dy.fi\/linux\/?p=638"},"modified":"2021-10-01T11:45:54","modified_gmt":"2021-10-01T08:45:54","slug":"mysql-tietokannan-poistaminen","status":"publish","type":"post","link":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/2021\/10\/01\/mysql-tietokannan-poistaminen\/","title":{"rendered":"MySQL tietokannan poistaminen"},"content":{"rendered":"\n<p>Tietokanta voidaan poistaa jos on esimerkiksi tehnyt v\u00e4\u00e4r\u00e4n nimisen tietokannan. Tietokannan poistaminen tapahtuu Mysql:ss\u00e4 ja sinne kirjaudutaan ensiksi mysql -u root -p.<br>Kirjautumisen j\u00e4lkeen voi katsella mit\u00e4 tietokantoja on show databases; komennolla.<\/p>\n\n\n\n<p>Tietokannan poistaminen tapahtuu komennolla DROP DATABASE tietokannan nimi. Jos esimerkiksi on tietokanta blogi ja se halutaan poistaa se onnistuu komennolla DROP DATABASE blogi;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tietokanta voidaan poistaa jos on esimerkiksi tehnyt v\u00e4\u00e4r\u00e4n nimisen tietokannan. Tietokannan poistaminen tapahtuu Mysql:ss\u00e4 ja sinne kirjaudutaan ensiksi mysql -u root -p.Kirjautumisen j\u00e4lkeen voi katsella mit\u00e4 tietokantoja on show databases; komennolla. Tietokannan poistaminen tapahtuu komennolla DROP DATABASE tietokannan nimi. Jos esimerkiksi on tietokanta blogi ja se halutaan poistaa se onnistuu komennolla DROP DATABASE blogi;<\/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\/638"}],"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=638"}],"version-history":[{"count":1,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/638\/revisions"}],"predecessor-version":[{"id":639,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/638\/revisions\/639"}],"wp:attachment":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/media?parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/categories?post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/tags?post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}