{"id":2160,"date":"2017-04-11T23:20:16","date_gmt":"2017-04-11T23:20:16","guid":{"rendered":"http:\/\/www.kodcafe.com\/?p=2160"},"modified":"2020-10-25T23:26:38","modified_gmt":"2020-10-25T20:26:38","slug":"mysql-de-veri-tabani-olusturma-komutu","status":"publish","type":"post","link":"http:\/\/www.kodcafe.com\/?p=2160","title":{"rendered":"Mysql de veri taban\u0131 olu\u015fturma komutu"},"content":{"rendered":"<p style=\"text-align: center;\"><strong><span style=\"color: #ff0000;\">CREATE DATABASE &#8211; YEN\u0130 B\u0130R VER\u0130 TABANI OLU\u015eTURMAK<\/span><\/strong><\/p>\n<p><strong>&nbsp;mysql de veri taban\u0131 olu\u015fturmak i\u00e7in create database komutunu kullan\u0131r\u0131z.&nbsp;<\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">CREATE DATABASE Bilgi;<\/span> \u201c<\/strong><strong> Bilgi veri taban\u0131 olu\u015fturma komutu<\/strong><strong>\u201d<\/strong><\/p>\n<p><strong>&nbsp;E\u011fer b\u00f6yle bir veri taban\u0131 olup olmad\u0131\u011f\u0131n\u0131 veya hangi veritabanlar\u0131 var diye merak ediyorsak&nbsp;<\/strong><\/p>\n<p><span style=\"color: #008000;\">SHOW DATABASES; <span style=\"color: #000000;\">&#8220;MYSQL de t\u00fcm veri tabanlar\u0131n\u0131 listeler&#8221;<\/span><\/span><\/p>\n<p>E\u011fer veri taban\u0131m\u0131z daha \u00f6nce olu\u015fturulmu\u015f o veri taban\u0131 \u00fczerinde i\u015flem yapacak isek<\/p>\n<p><strong><span style=\"color: #000080;\">USE [veri taban\u0131 ismi] ;<\/span> <\/strong>&nbsp;veya <strong><span style=\"color: #000080;\">USE&nbsp;bilgi; <span style=\"color: #000000;\">bilgi veri taban\u0131n\u0131 se\u00e7er<\/span><\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #0000ff;\">CREATE DATABASE &nbsp;if not exists Bilgi;<\/span>&nbsp; \u201c<\/strong><strong> E\u011fer b\u00f6yle bir veri taban\u0131 yoksa olu\u015fturma komutu<\/strong><strong>\u201d<\/strong><\/p>\n<p><strong>&nbsp;<\/strong><\/p>\n<p><span style=\"color: #0000ff;\"><strong>CREATE DATABASE &nbsp;if not exists Bilgi<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\"><strong>char set&nbsp; utf8&nbsp; <\/strong><\/span><\/p>\n<p><strong><span style=\"color: #0000ff;\">collate utf8_turkish_ci;&nbsp;<\/span>&nbsp;&nbsp; \u201c <\/strong><strong>burada veri taban\u0131m\u0131z\u0131n turkce karakter sorunu &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ya\u015famamas\u0131 i\u00e7in karakter kodlamas\u0131n\u0131 T\u00fcrk\u00e7e karakteri destekleyen utf 8 ayarlam\u0131\u015f olduk. \u201d<\/strong><\/p>\n<p><strong>&nbsp;<\/strong><\/p>\n<p><span style=\"color: #ffcc00;\"><strong>\u201cturk\u00e7e karakter destekleyen yeni <\/strong><strong>Latin 5 ( <\/strong><strong>ISO-8859-9 ) <\/strong><strong>se\u00e7ebiliriz.&#8221;<\/strong><\/span><\/p>\n<p><strong>&nbsp;<\/strong><\/p>\n<p><strong>E\u011fer hangi karakter setleri mysql de var kontrol etmek istiyorsak <\/strong><\/p>\n<p><strong>&nbsp;<\/strong><\/p>\n<p><span style=\"color: #0000ff;\"><strong>SHOW CHARACTER SET; <\/strong><\/span><strong>\u201cmysql sisteminde karakter setlerini listeler grup halindedir\u201d<\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">SET NAMES UTF8<\/span>;&nbsp; <\/strong><strong>sonradan karakter setimizi set names komutu ile ayarlayabiliriz.<\/strong><\/p>\n<p><span style=\"color: #0000ff;\"><strong>show collation<\/strong><\/span><strong><span style=\"color: #0000ff;\">;<\/span>&nbsp; \u201c desteklene collate yani collation karakter setlerini g\u00f6sterir\u201d<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CREATE DATABASE &#8211; YEN\u0130 B\u0130R VER\u0130 TABANI OLU\u015eTURMAK &nbsp;mysql de veri taban\u0131 olu\u015fturmak i\u00e7in create database komutunu kullan\u0131r\u0131z.&nbsp; CREATE DATABASE Bilgi; \u201c Bilgi veri taban\u0131 olu\u015fturma komutu\u201d &nbsp;E\u011fer b\u00f6yle bir veri taban\u0131 olup olmad\u0131\u011f\u0131n\u0131 veya hangi veritabanlar\u0131 var diye merak ediyorsak&nbsp; SHOW DATABASES; &#8220;MYSQL de t\u00fcm veri tabanlar\u0131n\u0131 listeler&#8221; E\u011fer veri taban\u0131m\u0131z daha \u00f6nce olu\u015fturulmu\u015f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2258,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[227,273,275,331,406,487],"class_list":["post-2160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","tag-konsol-komutlari","tag-mysql","tag-mysql-create","tag-php-mysql","tag-sql-komutlari","tag-workbench"],"_links":{"self":[{"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts\/2160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2160"}],"version-history":[{"count":1,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts\/2160\/revisions"}],"predecessor-version":[{"id":2286,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts\/2160\/revisions\/2286"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/media\/2258"}],"wp:attachment":[{"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2160"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}