mysqldump windows unknown option '--no beep' - mysql

I am having a problem with the mysqldump command in general (import/export).
I write in windows command window the following:
C:\MySQL\MySQL Server 5.6\bin> mysqldump -u root -p nameofdabase> C:\temp\dumpfile.sql
and i get "mysqldump unknown option --no beep". It doesn't ask me for my password and it doesn't seem to recognize the mysqldump command even though I see it in the bin directory. What am I doing wrong??I have tried everything from changing paths to changing backslashes. Anything I have found online that seems to work keeps giving me the same kind of error.
Any clues will be much appreciated...Thank you all in advance

You probably have a line in my my.ini (or my.cnf) file that says "no-beep". This is an option for the mysql client, but not for mysqldump.
If you want the "no-beep" option for the mysql client only, edit your my.ini file and move it under the file section heading [mysql].
See also mysqldump unknown option no beep

There is a "default" my.ini here: C:\ProgramData\MySQL\MySQL Server 5.7\my.ini.
It contains the no-beep option.
The MySQL Installer has my.ini templates for various versions in C:\ProgramData\MySQL\MySQL Installer for Windows\Manifest\Templates\, for some reason, all of it contains this option.

Related

The MySQL syntax that is not run always fails on Ubuntu

I am a linux beginner, especially ubuntu. I want to manage the mysql database installed on my Ubuntu web server by using Putty. But the MySQL syntax that I run always fails. Example syntax:
mysql -u root -p
All failed messages are the same for any syntax:
mysql: unknown variable 'bind-address = 0.0.0.0'
I don't know whether to run the Mysql syntax on Ubuntu I need to go to a certain Folder/Path, like in windows if I want to run the mysql syntax I need to go to the path where MySql is installed, for example C:/xampp/mysql/bin and then run the syntax mysql -u root -p.
is there anything I miss? and what should i do? please help, thank you.
Option 1: A typo in a title
Have a look in your my.cnf file.
Maybe you have a typo: There should be [mysqld] instead of [mysql] section
[mysqld] bind-address=0.0.0.0
OR
[mysqld]
bind-address=0.0.0.0
Source
Option 2: Is it Maria DB?
Are you sure you are using MySQL ?
This looks like a MariaDB error.
Try to remove the bind-address from your mysql.cnf file.
Option 3: Check for any whites-pace?
Try editing the file and using show all characters in your editor (e.g. Notepad Plus Plus). Maybe there are whitespace characters ( such as spaces ) causing problems.

Using my.ini to access mysql.exe from the commandline without -p?

On Linux, my.cnf can be altered such that mysql -u myusername will work on the client side without the -p option. It's safer to use config files to set this up rather than putting the password in at the login line, and it's more convenient (though perhaps less safe) than putting the password in at the default -p prompt. But I have yet been able to find a guide on altering the my.ini file to achieve this result. For reference, I have been using: https://dev.mysql.com/doc/refman/5.7/en/option-files.html (my version is 5.7). I also have read the my.ini file. The language used is too ambiguous and technical for me to understand so I hope to find or eventually compose a real guide.
According to my research:
my.cnf also works.
mysql will search for .cnf files at the locations specified in the mysqldvlhelp.txt file (which does not exist on Windows).
In your my.ini, you can create a client section to put the user and password.
[client]
user=yourmysqluserhere
password=yourpasswordhere

MySQL Dump Not Working In MySQL

I just installed a new Windows 7 Professional machine with MySQL 5.6.22. When trying to run the mysqldump command, I get the following:
E:>mysqldump -u root -p world > world.sql
mysqldump: unknown option '--no-beep'
Mysqldump works fine on my other machines running 5.16.15 and 5.5.xx.
Unfortunately, the msi installer for MySQL 5.6.15 will not work as some packages cannot be found. Oracle, it seems, will not support previous editions of 5.6.
On top of that, the MySQL installer for 5.6.23 only installs 5.6.22 in a round about way. The MSI installer has issues.
Can anyone shed light on mysqldump not working in 5.6.22?
Thanks!
I think you need to run the mysqldump command from the path it is installed, first cd into the folder and then run the command like this
C:\MySQL\MySQL Server 5.6\bin>mysqldump -u root -p -B database>name_of_backup_file.sql
I had the same issue. Search your active my.ini for the [client] section. Likely you will find the following:
[client]
no-beep
Comment or delete no-beep. It solves the 'no-beep' issue (now I have a new annoying error, hooray!). Be carefully checking whats your active my.ini because you might have some on different places.
Edit: Now, as I can call mysqldump w/o error, option --help tells me the follwing:
Default options are read from the following files in the given order:
C:\Windows\my.ini C:\Windows\my.cnf C:\my.ini C:\my.cnf [Your Server DIR]\my.ini [Your Server DIR]\my.cnf

What's wrong with mysqldump?

What's wrong with mysqldump -you type command "C:\MySQL>mysqldump --help"
It's displayed:
mysqldump: unknown option '--no-beep'
No matter you type with mysqldump, it always responses:
C:\MySQL>mysqldump
mysqldump: unknown option '--no-beep'
Thanks,
--no-beep is an option for the mysql command-line query tool, not for mysqldump.
I would guess that you have entered the no-beep in your my.cnf configuration file under the [client] section, which applies to both mysql and mysqldump clients. You need to move no-beep to the [mysql] section of the config file, so it applies only to the mysql client.
Before mysqldump ran well, but after MySQL was upgraded, this tool does not work. Where is the problem? No matter you type in the command with mysqldump, it always responses "mysqldump: unknown option '--no-beep'"
Commented out (#) the no-beep line in the MySQL my.ini, solved the problem.
See: mysqldump unknown option no beep

mysql config variable: where in the world is my.ini?

I am trying to change one of the mysql variables.
[mysqld]
ft_min_word_len=2
On the external server, I was able to change this in my.cnf. However, I cannot for the life of me find this file on my computer. I also cannot find my.ini (I am on windows). I can find my-huge.ini and various other sizes.
QUESTIONS
Might it be called something else?
Do I have to make it? Or, is there a way to change this option without opening the file?
Since ft_min_word_len already has a value, it must be SOMEWHERE!
I tried
mysqld --help
but it does not tell me anything really. I tried:
mysqld --help --verbose
It says very much and whatever is at the start, I cannot see. It won't let me print to any files: "access is denied"
Edit: I looked for it using
dir /s my.ini
I have a little surprise for you. You said you found my-huge.ini. The folder where my-huge.ini resides is the folder my.ini should be. If my.ini is not in the same folder, THEN my.ini SIMPLY DOES NOT EXIST. Consequently, mysqld.exe is running on pure defaults for all configuration settings.
Whenever MySQL was installed as a service, there was no my.ini created. Over the years, I have noticed that after an MSI installation of MySQL, the file mysqld.exe (which is in the bin folder) looks to the parent directory for the my.ini.
Let's say you found my-huge.ini in c:/wamp/bin/mysql/mysqlVERSIONNUMBER
Just create the my.ini in that place as well. Then, restart the mysql service. Open a DOS Window using Run as Administrator and run the following:
C:\> cd c:\wamp\bin\mysql\mysqlVERSIONNUMBER
C:\> echo "[mysqld]" > my.ini
C:\> echo "ft_min_word_len=2" >> my.ini
C:\> net stop mysql
C:\> net start mysql
Give it a Try !!!