473,473 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MySQL 1045 Authentication error

4 New Member
I have very strange error

mysqldump: Got error: 1045: Access denied for user '[root]'@'localhost' (using p
assword: YES) when trying to connect

I have installed mysql freshly with blank password for user "root" when I am trying perform backup with mysqldump I am getting the strange error

I am trying with the folowing command

d:\xampp\mysql\bin\mysqldump -u [root] -p []

mysqldump: Got error: 1045: Access denied for user '[root]'@'localhost' (using p
assword: YES) when trying to connect

Any one please help me
Oct 26 '09 #1
7 6027
code green
1,726 Recognized Expert Top Contributor
Try with host
Expand|Select|Wrap|Line Numbers
  1. -u [root] -h host -p []
mysqldump is problematic and fairly buggy I have noticed.
I also use the full path to the backup file as well as mysqldump.exe.
If you do use a password there should be no space between -p and the password.
I also suffix with 2>&1 but I can't remember why
Oct 26 '09 #2
samalphins
4 New Member
Dear green thanks for the reply

I tried with host but I am getting new error as below.

D:\>xampp\mysql\bin\mysqldump -u [root] -h 192.168.0.251 -p []
Enter password: *********
mysqldump: Got error: 2003: Can't connect to MySQL server on '192.168.0.251' (10060) when trying to connect

Any other please.
Oct 27 '09 #3
samalphins
4 New Member
Dear green thanks for the reply

I tried with host but I am getting new error as below.

D:\>xampp\mysql\bin\mysqldump -u [root] -h 192.168.0.251 -p []
Enter password: *********
mysqldump: Got error: 2003: Can't connect to MySQL server on '192.168.0.251' (10060) when trying to connect

I uninstalled Norton internet security and disabled windows firewall even then i am facing the same issue

Any other suggestion please.
Oct 27 '09 #4
code green
1,726 Recognized Expert Top Contributor
Can you actually connect to this database outside of mysqldump?
It looks like a permissions problem.

I think user of mysqldump needs all permissions granted to work.
Read alone is not enough
Oct 27 '09 #5
mwasif
802 Recognized Expert Contributor
samalphins,

In the first post you said that root does not have any password but in the command you are providing the password.

Are you connecting to MySQL remotely? In order to do so, you must give the permissions to root to connect remotely. If you are on the same system where you have installed MySQL then do not use host parameter, try the following command

Expand|Select|Wrap|Line Numbers
  1. D:\>xampp\mysql\bin\mysqldump -uroot -p db_name > dump.sql
Oct 28 '09 #6
samalphins
4 New Member
Dear M W Asif,

It worked for me great help I got from you. Thanks for the support and reply.
Oct 28 '09 #7
mwasif
802 Recognized Expert Contributor
You are welcome samalphins.

I am just M Wasif not M W Asif -:)
Nov 1 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Adam Smith | last post by:
I have a dedicated server running 'FreeBSD 4.9 STABLE' at a hosting site. They have done some default installations, presumably from the CVS ports package ??. Herein lies the problem, "I do not...
4
by: MLH | last post by:
I am having failures processing the following command and I wonder if you can tell me what I must do in order to have success. When I try to run source mysql_dump.sql.txt ==> it is a problem...
4
by: 21novembre | last post by:
Hi all, I got a quite strange problem when I tried to setup a database backup shell. I put it this way: "bin/mysqldump --opt --user=xxx --password=xxx DB > DB.bak" However, error 1045 came to...
5
by: smatta | last post by:
I have just installed MySql version 5.0-18 on Red Hat Fedora Core 4. It is running but I cant connect to it using MySql Query Browser running on my pc. >From my pc, I can telnet to the sql...
6
by: John Salerno | last post by:
Hi everyone. I hope someone can help me with this problem. I have installed MySQL CE 5.0, but during the configuration wizard I get an error. It has frozen up during the final step (MySQL Server...
4
jepler
by: jepler | last post by:
I find myself in a circular reference loop that I can't seem to resolve. I recently upgraded from MySQL 4.0.x to MySQL 4.1.21 on OS 10.3.9 Server. Then, I *thought* I set my open master root password...
12
by: mistral | last post by:
phpMyAdmin 2.6.2 problem: can no connects to mySQL database: each time shown error #1045 - Access denied for user 'username'@'192.168.1.2' (using password: YES) Is seems, this is most common...
3
by: prasadbabu | last post by:
Hi Guys, I am new to this forum. So if i made any mistake please bare with me. Soon i ll follow all the guidelines as days pass through. I am getting following error when i try to login to...
1
by: pearl15 | last post by:
Hello All I have successfully installed the following IIS ver 6 php ver 4.4.9 MYSQL ver 5.0.67 when i tested through command line i get no error and i am view the php pages on the browser...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.