Score:1

error 1045 sqlstate 28000

ws flag
 code: 'ER_ACCESS_DENIED_ERROR',
    errno: 1045,
    sqlState: '28000',
    sqlMessage: "Access denied for user ''@'localhost' (using password: NO)",
    sql: undefined

i have done everything possible:

  • create new User
  • grant permissions and all

Screenshot

in flag
There is no username being passed
oritsegbubemi avatar
ws flag
var connection = mysql.createPool({ host: "localhost", user: "root", password: "password", database: "elites_1", port : "3306" })
oritsegbubemi avatar
ws flag
every info is correct cos i can log in mysql root user... i use ubuntu 22.04
in flag
The `root` user cannot be connected to by non-sudo operations. You will need to create an admin account, grant it proper permissions, and connect the software to that.
oritsegbubemi avatar
ws flag
| GRANT ALL PRIVILEGES ON `elites_1`.* TO `admin`@`%` var connection = mysql.createPool({ host: "localhost", user: "admin", password: "password123", database: "elites_1", port : "3306" })
oritsegbubemi avatar
ws flag
code: 'ER_ACCESS_DENIED_ERROR', errno: 1045, sqlState: '28000', sqlMessage: "Access denied for user ''@'localhost' (using password: YES)", sql: undefined Still getting same Error
in flag
`%` is for external connections, `localhost` is used for local connections, and your error message is still showing an empty string where the username should be
oritsegbubemi avatar
ws flag
now working changing this % to localhost
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.