I'm having trouble to remove MySQL Databases that's what I'm getting, I'm using 5.6 MySql
when I hit show databases:
I'm having the list of dbs such as gameserver_beta, loginserver_beta and etc however, when I use command drop database <gameserver_beta>;
I'm getting an
error 1064 (42000) yOu have an error in your SQL syntec, check the manuel that correspond to your MySQL server version ...
drop database database_name;
drop database ;
Here you did not specified any database name
try wth this
Related
I'm creating how to create a Database and made a very simple code following W3Schools tutorials, however I can't seem to backup my database.
CREATE DATABASE testdb
BACKUP DATABASE testdb
TO DISK = 'E:\database';
I get this error:
"BACKUP" is not valid at this position, expecting EOF, ';'
13:19:03 CREATE DATABASE testdb BACKUP DATABASE testdb TO DISK = 'E:\'; Error Code: 1064. 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 'BACKUP DATABASE testdb TO DISK = 'E:\'' at line 2 0.000 sec
I tried to do it step by step, all together (as shown above), etc, but I always get this error.
Thank you!
Such a comand doesn't exists in mysql
see manual what us possible in MySQL like OUTFILE and mysqldump
You problably copied this form another rdms
I try to install fleetspeak. Use Ubuntu 18.04.
First of all I run this
CREATE USER 'fleetspeak-user' IDENTIFIED BY 'fleetspeak-password';
Then I want to create database with this
CREATE DATABASE 'fleetspeak';
But has an error:
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 ''fleetspeak'' at line 1
Why I can get this?
Try the create database script without single quotes in dbname
CREATE DATABASE fleetspeak;
I am able to create databases and tables using the User Interface in phpMyAdmin , but when I do the same using MySQL commands , It does not work. I get this error :
SQL query:
DROP DATABASE 'alphacrm'
MySQL said: Documentation
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''alphacrm'' at line 1**
don't use quote
DROP DATABASE alphacrm;
my sql object don't need quotes eventually use backtics for reversed word and compite named eg:
`my obj`
I have an error in my MySQL statement (using shell file), which I can't seem to resolve. Tried to put quotes etc but no luck. When I created it using phpmyadmin it works, but I want to have it scripted. Must be something small... Any ideas?
--- Create mySQL database ---
CREATE DATABASE IF NOT EXISTS _test-123;
CREATE USER 'test-123'#localhost IDENTIFIED BY '***';
GRANT ALL PRIVILEGES ON _test-123.* TO 'test-123'#'localhost';
FLUSH PRIVILEGES;
Enter password:
ERROR 1064 (42000) at line 1: 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 '-123' at line 1
Try removing the "-" and do this one instead-
CREATE DATABASE IF NOT EXISTS _test_123;
I just installed phpmyadmin 4.0.8. Am trying to use it to access 4.1.20 database running on Linux. When I attempt to log into the database server using phpmyadmin, I get this error:
SELECT * FROM information_schema.CHARACTER_SETS
MySQL said:
Documentation
1146 - Table 'information_schema.CHARACTER_SETS' doesn't exist
Tried disabling information_schema in config:
$cfg['Servers'][$i]['DisableIS'] = true;
$cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
But, get same error. Is there some workaround for this so that I can still use phpmyadmin to manage this database? Any suggestions?
Thanks!
-ron
show databases;
If this command doesnt show information_schema it means your mysql version is old.
I see yours is MySQL version 4,for INFORMATION_SCHEMA you need 5.