-1

java.sql.SQLException: Access denied for user 'Lucky'@'localhost' (using password: NO)

What can I do for this error ?I know there are lots of similer questions but non of them worked for me.

Sinto
  • 3,915
  • 11
  • 36
  • 70
Lucky
  • 1
  • 1

1 Answers1

0

Try this,

GRANT ALL PRIVILEGES ON *.* TO 'Lucky'@'localhost' IDENTIFIED BY '%password%' WITH GRANT OPTION;

Execute this with command line or some GUI tool while replacing %password% with the real password.

Nadun Kulatunge
  • 1,567
  • 2
  • 20
  • 28