Answers for "SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = jobbersconnect and table_name = migrations and table_type = 'BASE TABLE')"

SQL
2

SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' (SQL: select * from information_schema.tables where table_schema = whatsapp and table_name = migrations and table_type = 'BASE TABLE')

$ sudo mysql -u root -p
Now you can add a new MySQL user with the username of your choice.

mysql> CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
And finally grant superuser privileges to the user you just created.

mysql> GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';

after that go and edit .env DB_USERNAME=newuser
DB_PASSWORD=password
Posted by: Guest on December-18-2020
0

SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and table_type = 'BASE TABLE')

There is two reasons for this , wrong root password or no root password
with this option disabled in the mysql settings , this is a workaround
for the second issue : 

sudo mysql -u root -p

Now you can alter root user password using the following cmd

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password'

Remeber to change 'password' with your password 

and update it in the .env file of your application
Posted by: Guest on November-25-2021
0

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = jobbersconnect and table_name = migrations and table_type = 'BASE TABLE')

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dbname
DB_USERNAME="xyz"    
DB_PASSWORD="123"
Posted by: Guest on February-26-2020

Code answers related to "SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = jobbersconnect and table_name = migrations and table_type = 'BASE TABLE')"

Code answers related to "SQL"

Browse Popular Code Answers by Language