Questions tagged [mysql-error-1045]
ERROR 1045 (28000): Access denied for user '%s'@'%s' (using password: %s)
182
questions
0
votes
1
answer
536
views
mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
I'm trying to connect database for my login page, using Xampp server (myphpadmin)
The python code as follows:
run.py
from application import app
if __name__=="__main__":
app.run(host ='...
0
votes
0
answers
69
views
On Windows 10; ERROR 1045 (28000): Access denied for user 'personalUser'@'localhost' (using password: NO)
I have installed Xampp on windows 10 to create a simple app to understand how to use Laravel. I have the last version of Xampp. I configure PHP correctly (with path and so on), but I have a problem ...
3
votes
1
answer
1k
views
<Mac M1> Mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I've tried everything I've even uninstalled and installed versions MySQL 8.0.0 all the way up to 8.0.28.
I'm on a Mac M1
Here's what I've tried:
mysql -u root -p
Applied Password from the install*
...
2
votes
1
answer
2k
views
mysql-connector-python error 1045 (28000): Access denied for user using password: YES
I am having trouble connecting to a mysql / mariadb database. I am getting the following error in jupyter lab:
ProgrammingError: 1045 (28000): Access denied for user 'xx'@'yy' (using password: YES)
...
0
votes
1
answer
370
views
Cannot connect to database server-MySQL problem
I tried everything to solve this problem but it's still not solved.
I keep getting this error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
password: NO)
I'm pretty sure I'm ...
0
votes
0
answers
148
views
MYSQL database connection in my Mac isn't succeeding [duplicate]
I’m using a Mac Book Pro with big sur os. I’m using MySQL as my database service and XAMPP as my local host.
Below is how I tried to establish the database connection using php.
<?php
$username = &...
1
vote
1
answer
524
views
Cannot connect to MySQL in Python program
I am trying to establish a connection with a MySQL database in a python program
import mysql.connector
cnx = mysql.connector.connect(
host='localhost',
user='admin',
password='admin1234',
...
7
votes
7
answers
14k
views
MySQL Running SQL Script error - [WinError 32] The process cannot access the file because it is being used by another process:
I am getting an error while running a SQL script to load data. Error is pasted below:
Preparing...
[WinError 32] The process cannot access the file because it is being used by another process: 'C:\\...
0
votes
0
answers
915
views
pymysql.err.OperationalError: (1045, "Access denied for user 'admin'@'xx.153.63.4' (using password: YES)")
I am new in MySQL. I also checked other questions related with this one I couldn't solve it.
This is my command:
C:\Users\username\temp\Excercise\RDSQuery>python handler.py
And this is result I ...
0
votes
2
answers
3k
views
Zabbix Server Connection to Database failed (ERROR Z3001 [1045]
I got a Problem with my Zabbix Server.
He was running the days ago, and then the dashboard shows up:
Zabbix Server is running --> Value NO
And: Zabbix server is not running the information ...
0
votes
1
answer
356
views
ERROR 1045 - A big problem with the access to my mysql db
I was trying to execute "python manage.py migrate" in my project directory made in django.
The output was:
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'...
0
votes
0
answers
660
views
ERROR 1045 (28000): Access denied for user 'root'@'%' for mysql
I have two servers(RHEL) and both of them have mysql installed and configured(5.7.23-enterprise-commercial). When I am login to mysql in first server and tried this:
mysql> SHOW GRANTS FOR 'root'@'...
1
vote
4
answers
9k
views
Cannot connect to MySQL Database using the WAMP server
I am new to programming and I'm totally stuck, so I thought I will ask experienced programmers for help. I created a SQL database called "books" using phpMyadmin on WAMP server. The database and its ...
0
votes
1
answer
278
views
I'm not able to connect to mysql server ERROR 1045 (28000)
I installed MySql server for a class, when I attempt to connect to the server the following error message appear:
PS C:\WINDOWS\system32> mysql -u root -p
Enter password: hinreIsThePassword
ERROR ...
2
votes
1
answer
4k
views
How to solve My SQL ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I know there are already similar questions and I tried each of the solutions but somehow nothing seems to help. Maybe anyone has an idea what is going on. I am very new to the programming world and ...
0
votes
0
answers
154
views
i got this error:1045error_access denied for "myuser"@myhostaddress (using password:Yes)
im trying to connect and check user information in c# via php and when i use webrequest i got this error:
i got this error:1045error_access denied for "myuser"@myhostaddress (using password:Yes)
its ...
0
votes
2
answers
3k
views
django:mysql:error(1045, "Access denied for user 'root'@'localhost' (using password: NO)") [closed]
I am a newbie, just getting into Django, I want to implement django and mysql connections,and i built django1.11.17 and mysql8.0 in linux environment.
When I type command
python3 manage.py ...
2
votes
2
answers
2k
views
Unable to connect to my MYSQL Azure from my Webapp - 1045, "Access denied for user 'dbadmin'@'xx.xx.xx.x' (using password: YES)
I keep receiving the following error in my Webapp
OperationalError: (_mysql_exceptions.OperationalError) (1045, "Access denied for user 'dbadmin'@'xx.xx.xx.x' (using password: YES)")
MySQL Azure:
...
0
votes
1
answer
142
views
OperationalError: (1698, "Access denied for user 'cotequotey'@'localhost'")
Even after trying the methods in this threadERROR 1698 (28000): Access denied for user 'superuser1'@'localhost', I still have the same error with my username 'cotequotey' which reads:
...
0
votes
0
answers
26
views
Unable to install and run MySQL properly when using downloaded zip
I have been trying to install MySQL from a direct zip and I've followed each step in this doc.
The FLUSH PRIVILEGES throws the error :
access denied you need (at least one of) the reload privilege(s)...
1
vote
1
answer
1k
views
MySQL - access denied until I connect via Workbench or CLI
I'm having issues with intermittent connection issues from my localhost PHP site to my localhost MySQL DB. It gives me back Access Denied for 'user'@'localhost' (using password: YES) as is typical for ...
3
votes
0
answers
5k
views
AWS RDS Super Privileges
We have AWS RDS instance. We would like to track database user login details like the last login. For this, we have written a stored procedure and we would like to call that procedure on the event ...
0
votes
1
answer
364
views
Change password in root and error in accessing localhost/phpmyadmin
I tried to change password in my database but after i changed it right away, I got an error saying
mysqli_real_connect(): (HY000/1045): Access denied for user
'root'@'localhost' (using password: ...
-1
votes
1
answer
2k
views
Brew mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I know this question has been asked like a million times here but for the life of me I can't seem to figure out what's wrong. Would appreciate if someone can help me to troubleshoot.
I installed ...
1
vote
0
answers
300
views
Connect C++ WINAPI to MySQL with Connector/c++ Error: 1045 Access denied for user non-localhost
I am developing a WINAPI C++ program in which I need users to be able to log into accounts from a website. I have never integrated MySQL into a c++ program and I am running into this issue. My MySQL ...
0
votes
0
answers
110
views
How do I make my machine forget localhost:8080?
Long story short: I've been stuck on error #1045 for a very long time because I decided to change root user password. I tried everything and anything on SO that revolves around fixing this issue, ...
0
votes
0
answers
102
views
mysql error : ERROR 1045 (28000): Access denied for user [duplicate]
i have installed freshly mysql server on the RHEL server and is started properly.
when i am running command :
[root@ip-172-31-38-162 ec2-user]# mysql -u root -p
Enter password:
ERROR 1045 (28000): ...
1
vote
1
answer
320
views
#1045 error in MYSQL and phpmyadmin
So i've found a few people on here that had the same issue, but I have not been able to resolve mine.
I downloaded XAMPP and was able to use phpmyadmin without a problem at first. I then tried ...
1
vote
1
answer
319
views
How remind password for mysql localhost base at Linux Mint?
I have a little confusing problem. Trying to connect into own localhost sql database. But always got an error with 1045 code:
mysql.connector.errors.ProgrammingError: 1045 (28000):
Access denied for ...
0
votes
1
answer
381
views
mysqldump says invalid db and results Got error: 1045:
Using the following script to backup a database (not all, just one of them).
#!/usr/bin/php
<?php
$file = "/home/southel2/public_html/archives/BACKUPS/backup.sql";
$backupFile = $dbname.date("Y-m-...
1
vote
1
answer
2k
views
xampp and phpMyAdmin not working
I'm using xampp v3.2.2 and phpMyAdmin 4.6.6, I've already asked this but I didn't get any useful answer. When I try entering to localhost/phpmyadmin, I got this 2 errors:
#1045 - Access denied ...
0
votes
1
answer
1k
views
Cannot log in to the MySQL server (XAMPP)
I am having an issue with logging into phpMyAdmin, specifically when I log in with the root user and the correct password it gives me this error:
Cannot log in to the MySQL server
When I log in ...
2
votes
3
answers
18k
views
OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")
I use Scrapy and wnat to insert the Data in my database.
in my database.py i have
def __init__(self, host='', user='', password='', database=''):
self.__host = 'localhost'
self.__user ...
0
votes
1
answer
171
views
Why won't my PHP file connect to mysql?
I'm using OS X El Capitan. Mysql is running and I am able to add tables using the mysql command-line tool. When I try to connect to the database from my PHP file I get a 1045 error. Below is the code: ...
0
votes
1
answer
1k
views
Error 1045(2800)
I am currently trying to configure Zabbix on a Ubuntu. I downloaded the appliance version, as I am not familiar with Ubuntu and the appliance version, makes it easier to install. However, I am ...
0
votes
3
answers
8k
views
#1045 - Access denied for user 'root'@'localhost' (using password: YES) MAMP MySQL access denied
I'm trying to copy a live WordPress site to my local server. I went to import the database from the live site through MAMP, and I received an error message when trying to connect to phpMyAdmin:
#...
1
vote
0
answers
591
views
phpMyAdmin Error #1045
I am getting the following error when trying to import a CSV file into my database through phpMyAdmin:
1045 - Access denied for user 'xxxx.xxxx'@'localhost' (using password: YES)
note that xxxx.xxxx ...
0
votes
1
answer
803
views
Can't connect to mysql via CLI, but phpmyadmin works just fine
I'm at my wits end trying to solve this issue. I can log into the root account (or any other account for that matter) just fine in PHPmyadmin. Howerver whenever I try to log in via the command line, I ...
2
votes
1
answer
410
views
SELECT * FROM .. INTO OUTFILE and save on hosting or send FTP - HOW TO?
I need help. When I try this - SELECT * FROM .. INTO OUTFILE - on local, everything is ok. When I try it on my hosting, I receive error message #1045 - Access denied for user '..'@'%' (using password: ...
2
votes
3
answers
154
views
Are 'rajivratn'@'%' and rajivratn@localhost refer to same user in MySQL?
I want load data into a table (dataset) of a database.
I am using the standard command
LOAD DATA INFILE '/home/rajivratn/single_output.tsv' IGNORE INTO TABLE dataset ...
I am getting the ...
1
vote
1
answer
914
views
my pdo connection doesn't work
Echoing to my previous question about SQL-injection. I'm trying to set up a PDO connection.
For that I want to replace my old code with the new:
Here is the old
$conn = mysql_connect("localhost", "...
1
vote
1
answer
2k
views
Mysql and NodeJS can't connect remotely to deployed app
I am trying to connect from a NodeJS app to a MySQL database (already deployed, not in a localhost), currently it throws an error saying:
Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'user'@'...
0
votes
1
answer
394
views
golang editing previously set flag. MySQL error 1045
I'm having trouble setting a flag after user input to use as a connection parameter to a MySQL Database. Below is a snippet of my code:
func init() {
flag.StringVar(&flagUser, "user", "root",...
4
votes
2
answers
10k
views
Grant privileges on MariaDB
I'm trying to grant privileges for user on MariaDB 10, but I've got an error 1045
[root@lw343 ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your ...
1
vote
1
answer
1k
views
MariaDB: error 1045 when doing GRANT ALL
I'm hoping that someone can help me here. With Centos 7 all the install docs I have found said to use MariaDB instead of mysql which is fine, but I can't seem to enable remote access.I have used the "...
1
vote
1
answer
2k
views
Cannot (re)set privileges for debian-sys-maint, error 1045 Access denied
My MariaDB Server can not be stopped/restarted without an error.
History:
I was running a MySQL-Server on Lubuntu 14.04. To chance the hard disk, I stored the database with
mysqldump -u root -p --...
1
vote
1
answer
2k
views
#1045 - Access denied for user 'root'@'localhost' (using password: NO) When changing user in db
I just tried changig the username of root in my db, in phpmyadmin in xampp. And when I did I didnt get in to phpmyadmin anymore and I got this error when I tried:
1045 - Access denied for user 'root'@'...
1
vote
1
answer
1k
views
MYSQL ERROR 1045 (20000) create a user
When a tryd to create a user on MySQL with this command:
mysql> grant all privileges on *.* to 3tb_blumenau@'186.250.186.175'identified by '0f&k3' with grant option;
returns this error:
...
7
votes
11
answers
110k
views
Unexpected Exception: SQLSTATE[HY000] [1045] Access denied for user ****@'localhost' (using password: YES)
An application was handed to me by an old colleague to manage. However, whenever I try to run it, I keep getting this error. Please any help would do.
0
votes
1
answer
83
views
Java MySQL query issue
SO my query will not properly work. also i understand that since i am not using prepared statements that could possibly cause mySQL injections. moving forward, the issue every time i run this i get ...