Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

java.sql.sqlexception: access denied for user

You have to grant priviliges to root@localhost
e.g 
GRANT ALL PRIVILIGES ON *.* TO 'root'@'localhost' IDENTIFIED BY password

(*.*: means everything, it can be modified to some specific DB or opertations)
 
PREVIOUS NEXT
Tagged: #access #denied #user
ADD COMMENT
Topic
Name
9+6 =