.Here is ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show database CREATE DATABASE [Da] USE PETSTORE' at line 3 mysql> use petstore

Comptia A+ Core 1 Exam: Guide To Computing Infrastructure (mindtap Course List)
10th Edition
ISBN:9780357108376
Author:Jean Andrews, Joy Dark, Jill West
Publisher:Jean Andrews, Joy Dark, Jill West
Chapter9: Supporting Mobile Devices
Section: Chapter Questions
Problem 9TC
icon
Related questions
Question

9.Here is ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show database

CREATE DATABASE [Da]
USE PETSTORE' at line 3
mysql> use petstore
ERROR 1049 (42000): Unknown database 'petstore'
mysql> create database [da]
    -> use petstore
    ->
    -> CREATE TABLE USERS (user_id VARCHAR(30), password
    -> VARCHAR(30), first_name VARCHAR(50), last_name VARCHAR(50));
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[da]

==========

whats the wrong with this work ,

what code is correct when i ma trying to make a new table and a new databse in this mysql commend line ?. 

 

MySQL 8.0 Command Line Client - Unicode
Enter password: ********
Welcome to the MySQL monitor. Commands end with or \g.
Your MySQL connection id is 21
Server version: 8.0. 29 MySQL Community Server GPL
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
tysql> show databases
-> show database
->
-> CREATE DATABASE [Da]
-> USE PETSTORE;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show database
CREATE DATABASE [Da]
USE PETSTORE' at line 3
mysql>
Transcribed Image Text:MySQL 8.0 Command Line Client - Unicode Enter password: ******** Welcome to the MySQL monitor. Commands end with or \g. Your MySQL connection id is 21 Server version: 8.0. 29 MySQL Community Server GPL Copyright (c) 2000, 2022, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. tysql> show databases -> show database -> -> CREATE DATABASE [Da] -> USE PETSTORE; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show database CREATE DATABASE [Da] USE PETSTORE' at line 3 mysql>
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Single Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Comptia A+ Core 1 Exam: Guide To Computing Infras…
Comptia A+ Core 1 Exam: Guide To Computing Infras…
Computer Science
ISBN:
9780357108376
Author:
Jean Andrews, Joy Dark, Jill West
Publisher:
Cengage Learning
Principles of Information Security (MindTap Cours…
Principles of Information Security (MindTap Cours…
Computer Science
ISBN:
9781337102063
Author:
Michael E. Whitman, Herbert J. Mattord
Publisher:
Cengage Learning