DEV Community

David Kanekanian
David Kanekanian

Posted on

1 1

E1 - Creating database from MySQL console

Open phpMyAdmin (see Getting Started) and enter these commands:

  1. Create the Neat Treats database.

    CREATE DATABASE NeatTreats;
    
  2. Make sure you edit this database going forward.

    USE NeatTreats;
    
  3. Create the welcome message table in the new database. Don't worry about relationships yet.

    CREATE TABLE WelcomeMessage (
    MessageID INT,
    Message VARCHAR(255)
    );
    
  4. Insert a row into the table. Make sure to use ' single quote rather than " double.

    INSERT INTO
    WelcomeMessage (MessageID, Message)
    VALUES
    (1, 'Welcome');
    

Parent topic: Example 1

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay