.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
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
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>](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbc69c881-5744-4483-95d0-4a5e36d75399%2F21a154ad-e11d-4824-9d91-52fcacf67283%2F686off_processed.jpeg&w=3840&q=75)

Trending now
This is a popular solution!
Step by step
Solved in 2 steps









