SQL | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

SQL

when i create database the error is shown 1044 - Access denied for user ''@'localhost' to database ' what's the problem exactly??

4th Oct 2020, 11:33 AM
Zahraa A.Har
Zahraa A.Har - avatar
5 Answers
+ 2
Notice the '' (empty username) before the @'localhost', did you provide a valid username & password? If you believe you had provided correct username & password, then check whether that user actually has right to access the database. I don't see the database name mentioned in that error message, was it mentioned there or not?
4th Oct 2020, 11:41 AM
Ipang
0
@Zahraa I can't reply in DM, can only read. Can you access other database by using root username? if you can, then check granted access for root on the database that is inaccessible. If you can't, then there could be a problem with root account.
4th Oct 2020, 1:07 PM
Ipang
0
Thux i solved it 🌸
4th Oct 2020, 1:09 PM
Zahraa A.Har
Zahraa A.Har - avatar
0
@Zahraa Add details on what was the problem and what you did to solve it. Share the solution for someone who comes to visit this thread looking for answers of the same problem in future 👍
4th Oct 2020, 1:13 PM
Ipang