About 20,000,000 results
Open links in new tab
  1. MySQL CREATE DATABASE Statement - W3Schools

    The CREATE DATABASE statement is used to create a new SQL database. The following SQL statement creates a database called "testDB": Tip: Make sure you have admin privilege before creating any database. Once a database is created, you can check it in the list of databases with the following SQL command: SHOW DATABASES;

  2. MySQL CREATE DATABASE - Creating a New Database in MySQL - MySQL

    This tutorial shows you step by step how to use the MySQL CREATE DATABASE statement to create a new database in the MySQL server.

  3. Creating Database in Mysql - MySQL Tutorial

    You can create a database in MySQL in two methods: Using MySQL Command Line Client; Using MySQL Workbench; Let’s check these methods one by one. 1) Creating MySQL database using MySQL Command Line Client. For creating a new database via MySQL Command Line Client you need to follow the below steps:

  4. MySQL Create Database Statement - GeeksforGeeks

    Jun 5, 2024 · The MySQL CREATE DATABASE statement is used to create a new database. It allows you to specify the database name and optional settings, such as character set and collation, ensuring the database is ready for storing and managing data.

  5. 5.3.1 Creating and Selecting a Database - MySQL

    Your database needs to be created only once, but you must select it for use each time you begin a mysql session. You can do this by issuing a USE statement as shown in the example. Alternatively, you can select the database on the command line when you invoke mysql .

  6. How to Create a Database in MySQL

    Jun 9, 2023 · To create a new database in MySQL, you can use the CREATE DATABASE command. The simple version looks like this: CREATE DATABASE database_name; The full command has a lot more options you can set: CREATE DATABASE [IF NOT EXISTS] database_name [DEFAULT] { CHARACTER SET charset_name | COLLATE collation_name | ENCRYPTION {'Y' | 'N'} }

  7. How to Create a Database in MySQL (with Pictures) - wikiHow

    Feb 24, 2025 · This wikiHow teaches you how to create a database in MySQL. In order to create a database, you'll have to open the "mysql" command line interface and enter your database commands while the server is running.

    • Views: 1.2M
    • PHP Create a MySQL Database - W3Schools

      The CREATE DATABASE statement is used to create a database in MySQL. The following examples create a database named "myDB": Note: When you create a new database, you must only specify the first three arguments to the mysqli object (servername, username and password). Note: The following PDO example create a database named "myDBPDO":

    • How To Create A Database In MySQL - Software Testing Help

      Apr 1, 2025 · We will show a step-by-step process to create a database and schema as well. The output should help you understand the fact that schema is synonymous with the database. #1) Open MySQL Workbench for Executing the “Create Database” query. #2) To see the output of the executed query, press the “Refresh” button (as highlighted in the image below).

    • MySQL Create Database and Tables - W3Schools

      Learn how to use MySQL CREATE DATABASE and CREATE TABLE statements to create and structure a database. In this tutorial, you'll learn the syntax and options available for each statement and how to use them to create a new database and tables.

    • Some results have been removed
    Refresh