when am trying to open mysql in windows cmd by typing mysql. the following error is occuring.
ERROR 1045 (28000): Access denied for user ODBC@localhost (usin
for some reason, the ODBC user is the default username under windows even if you didn't create that user at setup time. simply typing
mysql
without specifying a username will attempt to connect with the non-existent ODBC username, and give:
Error 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)
Instead, try specifying a username that you know, for example:
mysql -u root -p
where -u root specified the username root and -p will make the command prompt for a password.