Search code examples
mysqlmysql-error-1045

MySQL command line won't open?


I just installed the latest version of MySQL. Until Now I had it on Windows XP but I wanted to install this on another computer with Windows 7.

Even after configuring everything correctly, the MySQL client won't show up in the Start Folder. So I went to the bin folder of MySQL and tried opening mysql.exe but it would immediately close down.

I then tried opening mysql.exe in cmd & this is what I get

C:\Program Files\MySQL\MySQL Server 5.5\bin>mysql
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N O)

Any Ideas how I can get this to work?


Solution

  • Provide username (root) C:\Program Files\MySQL\MySQL Server 5.5\bin>mysql -uroot

    Default passsword is blank, but if you set it, you will need to provde password as well