Professional Documents
Culture Documents
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
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 '' at line 1
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 '' at line 1
mysql> CREATE TABLE library(Id integer, Name varchar(100), book varchar(100)) INTO testdatabase;
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 'INTO testdatabase' at line 1
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| testdatabase |
+--------------------+
Database changed
mysql> CREATE TABLE library(Id integer Primary Key, Name varchar(100), title varchar(100),author
varchar(100),price integer, qty integer) ;
+--------+--------------+------+-----+---------+-------+
+--------+--------------+------+-----+---------+-------+
+--------+--------------+------+-----+---------+-------+
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| port | 3306 |
+---------------+-------+
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 'IDENTIFIED BY '%password%' WITH
GRANT OPTION' at line 1
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 'IDENTIFIED BY '%Abc12345%' WITH
GRANT OPTION' at line 1
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
| Siva | $A$005$S9j!Ej8-r;*Gx.edT4PDr0wTKkwEO6HE2Tkxx.VGdxoM4H72JfctC91 |
caching_sha2_password | %
| mysql.infoschema |
$A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
caching_sha2_password | localhost |
| mysql.session |
$A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
caching_sha2_password | localhost |
| mysql.sys |
$A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
caching_sha2_password | localhost |
| root | $A$005$4P+R2␦4A;[z5DhIQAOf83H9CBybW9vRwjyvIV8OxnFiAft3h0uvjTI0z21 |
caching_sha2_password | localhost |
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
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 'IDENTIFIED BY '%Abc12345%' WITH
GRANT OPTION' at line 1
mysql> GRANT ALL PRIVILEGES ON *.* TO 'siva'@'localhost' IDENTIFIED BY 'Abc12345' WITH GRANT
OPTION;
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 'IDENTIFIED BY 'Abc12345' WITH GRANT
OPTION' at line 1
+-----+----------+---------------+--------+-------+------+
+-----+----------+---------------+--------+-------+------+
+-----+----------+---------------+--------+-------+------+
+---------+----------+---------------+----------+-------+------+
+---------+----------+---------------+----------+-------+------+
+---------+----------+---------------+----------+-------+------+
mysql>