I am using azure and mysql. I CAN connect to the azure mysql instance with the GUI mysql workbench however trying to connect with the command line always gives an access denied.
Here is my connection string (obfuscated)
mysql -h azureserver -u myuser -p thepass -D thedatabase
Here is the output from the command
$ mysql -h azureserver -u myuser -p thepass -D thedatabase
Enter password:
ERROR 1045 (28000): Access denied for user 'myuser'@'azureserver' (using password: NO)
Why can I connect with the GUI client and the command line client fails? I used the -p to specify a password but clearly the results implies that I am not using a password (see above)
Am I missing some detail when trying to connect through the command line to an Azure mysql instance?
The Azure tutorial implies that this is all I need PHP mysql azure tutorial
So to summarize:
- Yes the MySQL db is up and running. I can access it through my app AND I can access it through the GUI MySQLWorkbench
- Trying to access the db with the commandline tool fails indicating that I am not using a password when in fact I am with the -p switch.
- My dev box is running MacOSX