Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql create database

CREATE DATABASE mydatabase CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
Comment

create database in mysql

The CREATE DATABASE statement is used to create a new SQL/MySQL database.

Syntax
CREATE DATABASE databasename;

CREATE DATABASE Example
The following SQL statement creates a database called "testDB":

Example
CREATE DATABASE testDB;
Comment

create database in mySQL

CREATE DATABASE nameOfYourDatabase;
USE nameOfYourDatabase;
CREATE TABLE nameOfTable(
id INT AUTO_INCREMENT,
   first_name VARCHAR(100),
   last_name VARCHAR(100),
   email VARCHAR(50),
   password VARCHAR(20),
   PRIMARY KEY(id)
);
Comment

create mysql database

mysql -u username -p
CREATE DATABASE dbname;
Comment

create database in mysql

mysql> CREATE DATABASE pets;
Query OK, 1 row affected (0.01 sec)
Comment

create a database mysql

CREATE DATABASE `mydb`;
Comment

mysql create database

CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
    [create_option] ...

create_option: {
    [DEFAULT] CHARACTER SET [=] charset_name
  | [DEFAULT] COLLATE [=] collation_name
}
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql grant all on all databases 
Sql :: Postgres - Login and connect as default user 
Sql :: sqlalchemy postgres timestamp with timezone 
Sql :: avg sql 
Sql :: sqlite create tables 
Sql :: sqlite unique 
Sql :: MySQL INSERT IGNORE Statement 
Sql :: failed to connect to mysql at localhost:3306 with user root 
Sql :: change user mysql password 
Sql :: PostgreSQL types and C# types 
Sql :: regexp in mysql 
Sql :: how to get date in sql 
Sql :: how to drop database name in postgresql 
Sql :: rename column in table sql 
Sql :: python simple connect to mysql 
Sql :: how to join tables in sql 
Sql :: postgres 11 add primary key 
Sql :: importing excel data into sql server 
Sql :: q operator in sql 
Sql :: mysql utc to local time 
Sql :: mysql select date from datetime 
Sql :: ms sql database data size 
Sql :: how to delete all duplicate items in mysql 
Sql :: unable to convert mysql date/time value to system.datetime 
Sql :: SQL COUNT() with WHERE 
Sql :: sql server 2019 installation 
Sql :: sql create tabel with primary key auto_increment code 
Sql :: mongodb vs mysql 
Sql :: sql to array of objects 
Sql :: deleting database in sql 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =