{"id":126,"date":"2023-07-22T11:34:11","date_gmt":"2023-07-22T11:34:11","guid":{"rendered":"http:\/\/local.tutorials\/?post_type=topic&p=126"},"modified":"2023-07-22T11:34:13","modified_gmt":"2023-07-22T11:34:13","slug":"mysql-create-database","status":"publish","type":"topic","link":"http:\/\/local.tutorials\/topic\/mysql-create-database\/","title":{"rendered":"MySQL\u00a0– CREATE DATABASE"},"content":{"rendered":"\n

The CREATE DATABASE<\/code> statement in MySQL is used to create a new database. Here’s an example of how to use the CREATE DATABASE<\/code> statement to create a new database named “example_database”:<\/p>\n\n\n\n

CREATE DATABASE example_database;<\/code><\/pre>\n\n\n\n

This simple statement will create a new database named “example_database” with default settings. By default, the new database will use the default character set and collation for the MySQL server.<\/p>\n\n\n\n

If you want to specify a different character set and collation for the new database, you can do so using the CHARACTER SET<\/code> and COLLATE<\/code> options. For example, to create the “example_database” with UTF-8 character set and utf8_general_ci collation, you can use the following statement:<\/p>\n\n\n\n

CREATE DATABASE example_database CHARACTER SET utf8 COLLATE utf8_general_ci;<\/code><\/pre>\n\n\n\n

Please note that you need appropriate privileges to execute the CREATE DATABASE<\/code> statement. Typically, the CREATE<\/code> privilege on the MySQL server is required to create databases.<\/p>\n","protected":false},"excerpt":{"rendered":"

The CREATE DATABASE statement in MySQL is used to create a new database. Here’s an example of how to use the CREATE DATABASE statement to create a new database named “example_database”: This simple statement will create a new database named “example_database” with default settings. By default, the new database will use the default character set […]<\/p>\n","protected":false},"featured_media":45,"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[3],"tags":[],"subject":[16,17],"yoast_head":"\nMySQL\u00a0CREATE DATABASE\u00a0Statement<\/title>\n<meta name=\"description\" content=\"The CREATE DATABASE statement in MySQL is used to create a new database. See post for example usage with character set and collation\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.tutorials\/topic\/mysql-create-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL\u00a0CREATE DATABASE\u00a0Statement\" \/>\n<meta property=\"og:description\" content=\"The CREATE DATABASE statement in MySQL is used to create a new database. See post for example usage with character set and collation\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.tutorials\/topic\/mysql-create-database\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com Tutorials and Courses\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-22T11:34:13+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.tutorials\/wp-content\/uploads\/2022\/03\/tutorial-mysql.png\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.tutorials\/topic\/mysql-create-database\/\",\"url\":\"http:\/\/local.tutorials\/topic\/mysql-create-database\/\",\"name\":\"MySQL\u00a0CREATE DATABASE\u00a0Statement\",\"isPartOf\":{\"@id\":\"http:\/\/local.tutorials\/#website\"},\"datePublished\":\"2023-07-22T11:34:11+00:00\",\"dateModified\":\"2023-07-22T11:34:13+00:00\",\"description\":\"The CREATE DATABASE statement in MySQL is used to create a new database. See post for example usage with character set and collation\",\"breadcrumb\":{\"@id\":\"http:\/\/local.tutorials\/topic\/mysql-create-database\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.tutorials\/topic\/mysql-create-database\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.tutorials\/topic\/mysql-create-database\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.tutorials\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"http:\/\/local.tutorials\/topic\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"MySQL\u00a0– CREATE DATABASE\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.tutorials\/#website\",\"url\":\"http:\/\/local.tutorials\/\",\"name\":\"Brightwhiz.com Tutorials and Courses\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/local.tutorials\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.tutorials\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.tutorials\/#organization\",\"name\":\"Brightwhiz.com\",\"url\":\"http:\/\/local.tutorials\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.tutorials\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/staging.brightwhiz.com\/wp-content\/uploads\/2022\/03\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"https:\/\/staging.brightwhiz.com\/wp-content\/uploads\/2022\/03\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz.com\"},\"image\":{\"@id\":\"http:\/\/local.tutorials\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\",\"https:\/\/twitter.com\/brightwhizmag\",\"https:\/\/www.instagram.com\/glamorglaze\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/c\/Sobbayi\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL\u00a0CREATE DATABASE\u00a0Statement","description":"The CREATE DATABASE statement in MySQL is used to create a new database. See post for example usage with character set and collation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.tutorials\/topic\/mysql-create-database\/","og_locale":"en_US","og_type":"article","og_title":"MySQL\u00a0CREATE DATABASE\u00a0Statement","og_description":"The CREATE DATABASE statement in MySQL is used to create a new database. See post for example usage with character set and collation","og_url":"http:\/\/local.tutorials\/topic\/mysql-create-database\/","og_site_name":"Brightwhiz.com Tutorials and Courses","article_publisher":"https:\/\/www.facebook.com\/brightwhiz","article_modified_time":"2023-07-22T11:34:13+00:00","og_image":[{"width":640,"height":360,"url":"http:\/\/local.tutorials\/wp-content\/uploads\/2022\/03\/tutorial-mysql.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@brightwhizmag","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/local.tutorials\/topic\/mysql-create-database\/","url":"http:\/\/local.tutorials\/topic\/mysql-create-database\/","name":"MySQL\u00a0CREATE DATABASE\u00a0Statement","isPartOf":{"@id":"http:\/\/local.tutorials\/#website"},"datePublished":"2023-07-22T11:34:11+00:00","dateModified":"2023-07-22T11:34:13+00:00","description":"The CREATE DATABASE statement in MySQL is used to create a new database. See post for example usage with character set and collation","breadcrumb":{"@id":"http:\/\/local.tutorials\/topic\/mysql-create-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.tutorials\/topic\/mysql-create-database\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/local.tutorials\/topic\/mysql-create-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.tutorials\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"http:\/\/local.tutorials\/topic\/"},{"@type":"ListItem","position":3,"name":"MySQL\u00a0– CREATE DATABASE"}]},{"@type":"WebSite","@id":"http:\/\/local.tutorials\/#website","url":"http:\/\/local.tutorials\/","name":"Brightwhiz.com Tutorials and Courses","description":"","publisher":{"@id":"http:\/\/local.tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.tutorials\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.tutorials\/#organization","name":"Brightwhiz.com","url":"http:\/\/local.tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/staging.brightwhiz.com\/wp-content\/uploads\/2022\/03\/brightwhiz-com-logo-orange.png","contentUrl":"https:\/\/staging.brightwhiz.com\/wp-content\/uploads\/2022\/03\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz.com"},"image":{"@id":"http:\/\/local.tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz","https:\/\/twitter.com\/brightwhizmag","https:\/\/www.instagram.com\/glamorglaze\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/c\/Sobbayi"]}]}},"_links":{"self":[{"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/topic\/126"}],"collection":[{"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/types\/topic"}],"replies":[{"embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/comments?post=126"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/media\/45"}],"wp:attachment":[{"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/tags?post=126"},{"taxonomy":"subject","embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/subject?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}