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 ?
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 ?
![My 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.
mysql> 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%2Fd7770d6e-352d-49c5-bb02-13e122a27c4b%2F49a801a6-e202-4962-952c-8a2ed4b4d721%2Fav7a57_processed.jpeg&w=3840&q=75)

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









