mysql -V is 5.5.54 for debian (Jessie).
I'm at the mysql command prompt trying to run this command:
mysqldbcompare --server1=root#localhost calendar_dup:calendar --run-all-tests
I get the following error:
ERROR 1064 (42000): You have an error in your SQL sytax; check manual that corresponds to your MySQL server version for the right syntx to use near 'mysqldbcompare --server1=root#127.0.0.1 calendar_dup:calendar --run-all-tests' at line 1
Needed to install via apt-get: https://packages.debian.org/jessie/mysql-utilities
Also, should be run from shell command line, not mysql command line.
Related
Trying to install zabbix version 6.0.1 on Ubuntu with mySQL version 8.0.28-0ubuntu0.20.04.3.
When loading the initial schema with the command
cat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix
i am getting the following error:
ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\0' is expected. Query: :▒b'
Tried to mitigate the error with the following command:
cat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix --binary-mode -o
the following error is being generated:
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 :' at line 1
Any recommendations?
I am getting the following error while trying to import the table into database using MySQL on my Ubuntu machine.
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 'mysql -u root -p spesh db_hit_type < /var/www/html/spesh.com/public_html/portal/' at line 1
I was using the following command to import the table data.
mysql -u root -p spesh db_hit_type < /var/www/html/spesh.com/public_html/portal/js/db_hit_type.sql;
I think that you try to run this command in MySQL command promt or in some client program. You need to run mysql program from server console, not from mysql console.
I have recently encountered a problem in using the command man and the switch --help in mysql. Whenever I enter the command "man select" or ....
or when I use the "select --help" I recieve this error message:
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 'mysqld --verbose --help' at line 1
The fact is that neither the "man" command nor the "--help" switch work for any other command. My guess is that the man pages are not installed by my system. I use "ubuntu 14.04" and have installe my LAMP STACK via using the "apt-get install" command.
Would you help me fix this issue? I thank you very much in advance.
From the OS command prompt (where you executed the apt-get):
$ man mysql
$ mysql --help
From within the mysql client:
mysql> help select
I think you must see your manual
it's prove man command or not.
I am unable to create mysql database dump. I have tried all the commands in the below question
https://stackoverflow.com/questions/24858436/unable-to-create-mysql-dump-in-mysql-server-5-6-19
But every time I get similar error which asks me to check manual
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 'mysql
dump -u root -pmysqlmysql hospital_management -r "c:\hosp.sql"' at line 1
I am trying these commands in Mysql command line and NOT on Windows command prompt. Also I am trying these commands before entering any database in mysql.
mysql> mysqldump -u root -pmysqlmysql hospital_management > hosp.sql
This was the first command I tried, which did not work
mysqldump is an executable, you should not run it in the MySQL command line.
Try the command
mysqldump -uroot -pmysqlmysql hospital_management > "C:\hosp.sql"
By reading the documentation, I assume that when using -r, the file must already exist.
I have WAMP installed that has been binary logging all changes in my database. I found the logs, the mysql console also shows them when I perform a SHOW BINARY LOGS. But when I try to read them by executing:
mysqlbinlog mysql-bin.000197
it gives me that error:
ERROR 1016(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 'mysqlbinlog mysql-bin.000197' at line 1
MySQL version is 5.5.20
have you used shell command ?
shell> mysqlbinlog mysql-bin.000197