About 51,000 results
Open links in new tab
  1. MySQL CREATE Database - Java Guides

    To create a new database, we use the CREATE DATABASE statement. This command sets up a new database with the name you choose. Syntax CREATE DATABASE database_name; database_name: The unique name you want to give your database. Example CREATE DATABASE mydatabase; This example creates a new …

  2. How to create a database from shell command in MySQL?

    Mar 11, 2010 · You can use SQL on the command line: echo 'CREATE DATABASE dbname;' | mysql <...> Or you can use mysqladmin: mysqladmin create dbname

  3. MySQL Create Database Statement - GeeksforGeeks

    Jun 5, 2024 · The MySQL Command Line Client allows you to create a database using the CREATE DATABASE statement. By entering SQL commands directly, users can efficiently manage databases, tables, and data, making it a powerful tool for database administration. Syntax: Parameters: Nameof_database: The name of the database to be created.

  4. How to create a MySQL database from the command line

    Jun 6, 2020 · To create a MySQL database from the command line, you can use mysql command-line client. Here is a step-by-step procedure to create and populate a MySQL database using mysql client from the command line.

  5. How to Create a MySQL Database, Set User Permissions and …

    Apr 22, 2025 · By the end of this guide, you’ll be able to handle these MySQL tasks quickly and efficiently. BTW, the commands are exactly same for MySQL or MariaDB like import SQLdump file or create DB or user manipulation etc. Accessing the MySQL Command Line. Before creating a database, you’ll need to access the MySQL command line.

  6. 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:

  7. MySQL: Create Database - Command Line - ShellHacks

    Dec 27, 2016 · From this small tutorial you will learn how to create a MySQL database from the command-line in Linux. I will show the general MySQL CREATE DATABASE syntax for creating a database with a default character set.

  8. How to Create A New MySQL Database in 2024? - WPCrux

    Dec 21, 2024 · Open a command-line interface or a MySQL client like phpMyAdmin. Connect to your MySQL server by entering the appropriate command (e.g., mysql -u username -p). Once you are connected, create a new database using the CREATE DATABASE statement.

  9. Creating a Database Using MySQL Command-Line Client

    Oct 8, 2021 · In this article, I will be designing a database using MySQL CLI and our framework will be JavaEE. MySQL is an RDBMS based on SQL. It is developed and distributed by Oracle Corporation.

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

    To create a new database in MySQL, you use the CREATE DATABASE statement. The following illustrates the basic syntax of the CREATE DATABASE statement: In this syntax: First, specify the name of the database after the CREATE DATABASE keywords. The database name must be unique within a MySQL server instance.

Refresh