Questions tagged [mysql-error-1045]
ERROR 1045 (28000): Access denied for user '%s'@'%s' (using password: %s)
179
questions
0
votes
0answers
18 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 = &...
0
votes
1answer
35 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',
...
0
votes
1answer
471 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
0answers
86 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
1answer
312 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
0answers
13 views
Tried many methods, appears I'm locked out of mysql. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) [duplicate]
On mac, I seem to be unable to use any mysql commands in the terminal, and am unable to connect to any db for laravel apps using tableplus. No matter what I am getting an Access Denied error.
Does not ...
0
votes
1answer
91 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
0answers
275 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'@'...
0
votes
0answers
195 views
can't connect mysql.connector when password stored in file
i use python 3.7.7, and mysql-connector-2.2.9, and uwamp 3.1.0, and mysql-5.7.11, in my own pc.
i have this code :
xx={}
with open("sett.txt") as f:
for line in f:
name,value =line.split("=")
...
0
votes
2answers
988 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
1answer
94 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 ...
1
vote
1answer
2k 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
0answers
41 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
2answers
2k 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 ...
1
vote
2answers
759 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
1answer
66 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
0answers
19 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
1answer
838 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
0answers
4k 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
1answer
302 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
1answer
1k 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
0answers
202 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
0answers
47 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
0answers
77 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
1answer
294 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
1answer
236 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
1answer
237 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
1answer
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
1answer
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 ...
1
vote
3answers
11k 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 ...
-1
votes
1answer
80 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
1answer
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
2answers
7k 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
0answers
535 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
1answer
554 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
1answer
335 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
3answers
150 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
1answer
829 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
1answer
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
1answer
331 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",...
3
votes
2answers
7k 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
1answer
999 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
1answer
1k 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
1answer
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
1answer
873 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:
...
6
votes
9answers
91k 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
1answer
82 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 ...
1
vote
1answer
939 views
MySQL login error warning
I'm getting this login error: Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'user'@client-ip' (using password: YES) in.
This happens no matter what I set in Cpanel. ...
0
votes
1answer
3k views
Error #1045 phpmyadmin xampp w7
I installed xampp, I've run mysql and apache, but when I access to phpmyadmin gives me error # 1045.I've tried different things like going to the configuration file of phpmyadmin and change some ...
2
votes
0answers
4k views
MySql: “Accessed denied for user 'root'@'<remote-ip> (using password: YES)” from my Laptop, BUT NOT my coworkers?
I set up a VM (RHEL6) in our company's private cloud, and installed MySQL.
I opened up remote connections like the following so my coworkers and I could connect to it:
GRANT ALL PRIVILEGES ON `...