MySQL Forums
Forum List  »  MySQL Workbench

Re: Can connect to AWS MySQL with Workbench, but not Client
Posted by: Peter Brawley
Date: April 07, 2022 08:20PM

Quote

mysql -h AWS_endpoint -P 3306 -u admin -p;

But I get-
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 -h ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪.us-east-2.rds.amazonaws.com -P 3306 -u ' at line 1

That error message indicates that your connection attempt was sent to the MySQL server as if is were SQL.

A connection commend is not SQL, it's an operating system command. Issue it in a cmd.exe window.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Can connect to AWS MySQL with Workbench, but not Client
401
April 07, 2022 08:20PM


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.