#1045 - Access denied for user 'root'#'localhost' (using password: YES) - php

I am facing one problem on xampp
1045 - Access denied for user 'root'#'localhost' (using password: YES)
I have changed the password on the Config.inc file, but this doesn't resolved the issue.

I have the same problem with you, but I have resolved it.
I think you have input your default root password, we can't do it.
If you want to enter the mariadb, you should run mysql_secure_installation first to create your account for mariadb, and next run mysql -uroot -p 'your password'

Related

Database issue after creating a new Droplet using backup on Digitalocean

I am getting this error. In codeigniter 2.1.3
Connection failed: Access denied for user 'root'#'localhost' (using password: YES)
I have tried hard.
I have done restart Apache and MySQL.
Tried with adding ip as hostname.
Have edited my.cnf file.

laravel shared hosting access denied for user root in cpanel using password:no

SQLSTATE[28000] [1045] Access denied for user 'root'#'localhost' (using password: NO)
**DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=konyayal_yalcinsurucu
DB_USERNAME=konyayal_yalcinsurucuadmin
DB_PASSWORD=xxxxx**
no ssh and terminal option on my hosting.how can i solve?
First you need to check in .env file is everuthing is correct or not like username and password of database.
Once confirm from .env try to execute this command on server =>
php artisan optimize:clear OR sudo php artisan optimize:clear
it will clear all the cache from your projects and take new values from .env and set in cache system.
I hope you will solve your problem of access denied with this small help.

Access denied to SQL database (wamp)

I was installing WHMCS on my wamp localhost but it required a password for the database which is blank by default, so I went in to phpmyadmin and added a password. Whenever I try to connect the database now I just get this error. Could not connect to database server: SQLSTATE[HY000] [1045] Access denied for user 'test'#'localhost' (using password: YES)
Screenshot of the installation page and error

Laravel SQLSTATE[HY000] [1045] Access denied for user 'homestead'#'localhost' (using password: YES) (SQL: select * from `table_companies`)

I have my .env file configured with the remote DB credentials and its working on my local computer.
When I deploy the app to our dev server in the same page returns
SQLSTATE[HY000] [1045] Access denied for user 'homestead'#'localhost' (using password: YES) (SQL: select * from `table_companies`)
Is there a command that I'm missing? Why if my .env us using our cloudways database credentials is saying homestead'#'localhost?
The production server has its own DB credentials that you should put in server's own .env file.

How to resolve this MySQL error in Mac OS X Sierra?

I have been trying to reset the root password for MySQL on my Mac OS X Sierra and I cannot believe I can't find documentation for this anywhere that can resolve my problem.
The first error I got when I tried to access my database is this:
Error: Access denied for user 'root'#'localhost' (using password: NO)
I figured I would completely remove MySQL and install it again with brew but when I tried with mysql_secure_installation and I get this:
Securing the MySQL server deployment.
Enter password for user root:
Error: Access denied for user 'root'#'localhost' (using password: NO)
Also when I try to run:
mysql.server stop
I get this error:
ERROR! MySQL server PID file could not be found!
On mac, I think you have to use root as a password.
open mysqld_safe
mysql.server stop
mysqld_safe --skip-grant-tables
open a new terminal
mysql -uroot -p
use mysql;
update user set password=PASSWORD('123456') where user="root";
flush privileges;
quit;
close mysqld_safe terminal
restart mysql
mysql.server start
mysql -uroot -p
123456

Categories