About 25,700 results
Open links in new tab
  1. 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

  2. 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: CREATE DATABASE [ IF NOT EXISTS ] database_name [ CHARACTER SET charset_name] [ COLLATE collation_name]; Code language: SQL (Structured Query Language) ( sql )

    Missing:

    • Command Line

    Must include:

  3. 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;

  4. 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 .

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

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

  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 Database in MySQL Using Command Line

    May 27, 2021 · This article shows you how to use the MySQL CREATE DATABASE statement to create a new database on a MySQL server. Each MySQL installation includes the mysql tool, which can be used to interact with the database directly from the terminal.

  9. [#3] MySQL Basics: Connect, Create Table & Insert Data Using Command Line

    3 days ago · Description:Welcome to this in-depth MySQL tutorial for beginners! In this video, we'll walk you through the essential steps to connect to MySQL, create a da...

  10. Create A MySQL Database: Command Line & Workbench

    Sep 22, 2022 · In this tutorial, you'll learn how to create a MySQL database using the command line and MySQL WorkBench. So, whether you prefer command-line tools or graphical user interfaces, this article covers both options.

  11. Some results have been removed
Refresh