How do I set xampp? - xampp

I am getting this error while setting up xampp.
Error says "Could not drop existing database
SQL: Access denied for user ''#'localhost' to database 'dvwa'."
I got the error while trying to create a database. I have tried editing the config file too. Whats happening?

it's a problem with the permission to the user local : you have to go with the user root.
this post could help you : ERROR 1044 (42000): Access denied for user ''#'localhost' to database 'db'

Related

Laravel pp db error ( the database name is incorrect

Good day this is the error i got when trying to run my laravel php artisan serve
The error i first got + the second error i got.
Not sure what to do?
Error Statement:
SQLSTATE[HY000] [1698] Access denied for user 'root'#'localhost' error generated when running :127.0.0.1:8001
Solution tried:
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3630
DB_DATABASE=yourdbname
DB_USERNAME=admin
DB_PASSWORD=adminspassword
and
$ sudo mysql -u root
CREATE USER 'admin'#'localhost' IDENTIFIED BY 'adminspassword';
GRANT ALL PRIVILEGES ON `*`.`*` TO 'admin'#'localhost';
FLUSH PRIVILEGES
Final Error Statment:
I got this
SQLSTATE[HY000] [1049] Unknown database 'laravel'
The problem is that you have not created a database.
So, what you need to do is:
sudo mysql
CREATE DATABASE yourdbname;
now you can start building user and permissions in the db.

Laravel shows error access denied for user How to fix it?

I am new to laravel and trying to run my project but unfortunately i am facing this error how to fix it thanks ?
please see error below
SQLSTATE[HY000] [1044] Access denied for user 'zubair'#'%' to database 'web_gems_mineral_cms' (SQL:
select `value` from `ven_configurations` where `key` = mail_driver limit 1)
this error comes when you didnt start your xammp,wamp mysql server so please start the server and go and test phpmyadmin works or not.
inshort you did not active your mysql server so please start server.
It seems that user zubair doesn't have access on the database web_gems_mineral_cms.
Run the following command from the command line:
GRANT ALL PRIVILEGES ON web_gems_mineral_cms.* TO 'zubair'#'localhost';

Oracle Endeca (Commerce) forge error : Failed to create the directory C:: Permission denied at -e line 1

When trying to run baseline update in Oracle Commerce 11.3.0 I get the following error :
Failed to create the directory C:: Permission denied at -e line 1.
in the mkpath_repository log in endeca Platform services.The component Forge fails without any logs in the directory .\logs\forges\Forge . I have run by both endeca user as well as administrator which are both the owner of [appdir]. How do I fix this?
Thanks in advance.
If you haven't solved this yet, from your error message it sounds like it's trying to create the C directory. When the error message presents itself it should print out the path of the directory it's trying to create.
Example from Oracle Support: "Failed to remove directory D:\Endeca\apps\\config\script.....\data\complete_index_config: Permission denied at -e line 1."
Sounds like you might have a variable configured incorrectly somewhere.

'SQLSTATE[HY000] [1045] Access denied for user 'root'#'localhost' (using password: YES)' Error while performing migration in laravel 5

I'm getting
SQLSTATE[HY000] [1045] Access denied for user 'root'#'localhost' (using password: YES)
error while try to perform migration in laravel 5.
I have set my db name and password in the env file but sill it not working.
Here is my env file:
DB_DATABASE=demo
DB_USERNAME=root
DB_PASSWORD='pass'
its clearly a connection error..
the table is not connected to that user
you just go to that table in phpmyadmin and allow privilages to user for your table
do not put inverted commas in your DB_PASSWORD='pass' .
write DB_PASSWORD=pass
Also check if you can login to your database with current credentials and database 'demo' exists.

[PDOException]- SQLSTATE[HY000] [1045] Access denied for user 'root'#'ip' (using password: YES)

I am trying to connect to AWS through ssh in order to migrate some files. I connected successfully using the following command:
ssh -i ~/Downloads/key.pem ec2-user#myuser
Then, I tried to run the following :
php artisan migrate
I got the following:
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'user'#'ip' (using password: YES)
What could be preventing me from accessing my DB in order to migrate?!
When you connect to AWS you're connecting to a unix shell account on a virtualize linux server via SSH.
On this virtual server (or maybe another server), you're running an instance of a database application. This database application is also a server. However, it has its own credential system. When you see this error message
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'user'#'ip' (using password: YES)
This is PHP/Laravel telling you
Hey, I tried to connect to the database with the credentials in my app/config/database.php file, but the server told me those credentials were invalid.
In other words, the password you configured for "user" didn't match the actual password, or the "user" account isn't authorized to access the database service (MySQL?) from the IP address PHP is running.
Use the correct database credentials, and your error will go away. Use the command line mysql program to test your database credentials.
Hopefully that's enough to get you Google-ing for the right thing! :)

Resources