MySQL Forums
Forum List  »  Newbie

syntaxError: unexpected identifier in shell mysqladmin -u
Posted by: Dimi Tree
Date: September 29, 2017 08:16AM

I am trying to connect libreoffice base to a mysql database, but libreoffice requires a password and i have set up a root account with no password.
So I am trying to put a password on the root account.
These are the instructions i have for changing password: To set up a root password for the first time, use the mysqladmin command at the shell prompt as follows:
$ mysqladmin -u root password newpass

but when I try
mysql-js> mysqladmin -u root test
I get this error:
syntaxerror: unexpected identifier

when I try
mysql-js> $ mysqladmin -u root test
I get the same error:
syntaxerror: unexpected identifier

when i try
mysql-js> mysqladmin
i get this error:
referenceerror: mysqladmin is not defined

does somebody have an idea what could be wrong here?

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.