473,322 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ERROR 1045: Access denied for user

What am I doing wrong? Do I have something set up (config file, et.al)
wrong? The following is the senerio:

Login as: mysql -u root

Run cmd: grant all on * to fred identified by 'julebj';

Return: Query ok, 0 rows affected (0.90 sec)

Run cmd: use mysql;

Run cmd: Select User from user where user = "fred";

Fred is in the table..

Run cmd: quit;

Mysql is terminated;

Run cmd: mysql -u fred -p

Enter password: julebj

Response is: ERROR 1045: Access denied for user: 'fred@localhost' (Using
password: YES)

A search of the MySQL reference manual on '1045'showed only the error code
and it's enum name..

Thanks..

Bruce


Jul 17 '05 #1
2 2691

"Bruce A. Julseth" <br*****@attglobal.net> wrote in message
news:40********@news1.prserv.net...
What am I doing wrong? Do I have something set up (config file, et.al)
wrong? The following is the senerio:

Login as: mysql -u root

Run cmd: grant all on * to fred identified by 'julebj';

Return: Query ok, 0 rows affected (0.90 sec)

Run cmd: use mysql;

Run cmd: Select User from user where user = "fred";

Fred is in the table..

Run cmd: quit;

Mysql is terminated;

Run cmd: mysql -u fred -p

Enter password: julebj

Response is: ERROR 1045: Access denied for user: 'fred@localhost' (Using
password: YES)

A search of the MySQL reference manual on '1045'showed only the error code
and it's enum name..

Thanks..

Bruce


Solved my own problem by issuing the grant command with user as
"fred@localhost"
Jul 17 '05 #2
*** Bruce A. Julseth wrote/escribió (Tue, 29 Jun 2004 22:50:31 -0400):
Run cmd: grant all on * to fred identified by 'julebj';


Try:

grant all on *.* to 'fred'@'localhost' identified by 'julebj';
flush privileges;
--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Morten Gulbrandsen | last post by:
Hi programmers, Good morning ;-) I think something is wrong, Running windows I believe first I have to set some password, Which creates some user, Then I can grant the required privileges, for...
0
by: Morten Gulbrandsen | last post by:
C:\mysql\bin>mysql -u elmasri -pnavathe company Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 29 to server version: 4.1.0-alpha-max-debug Type...
0
by: Ike_strong | last post by:
Can anyone help me to figure out why each time I try to access my database using: c:\mysql\bin\inmysql -root -p and afterwards:(i.e. after inputting my at the password prompt) Enter...
8
by: John | last post by:
Hello. I am currently working through a book on Dreamweaver and using PHP. I am having a little trouble with setting up the database though. I have php 4.2.3 and MySQL 4.0.20a. I am running...
4
by: Chefry | last post by:
I'm trying to set up an off the shelf script and keep getting an error. My host set up the mysql on my site and I changed the variables I had to in the settings.php file but I keep getting the...
3
by: dstewart | last post by:
Situation: One common MySQL database server on SuSE 9.1 with all updates. Uses 'rinetd'. Has entries for the appropriate IP addresses of all servers. NOTE: If the appropirate entries are NOT in...
2
by: arsisthesis | last post by:
Hi all, I have a curious problem with the ERROR 1044 and 1045: -system: OS X 10.4.3 (bash shell) -bash schell prompt: /~ kssun$ -I have set passwd to 'kssun' -I set path:...
3
by: Greg Noss | last post by:
I'm trying to install MySQL. During the security settings portion fo the setup. I keep getting a Connection Error. Error Nr. 1045 Access denied for user'root'@'localhost'(using password:YES) ...
1
usafshah
by: usafshah | last post by:
Hi I'm using linux with mysql , when i type mysql in terminal it says like: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) i'm logged in as root but...
7
by: samalphins | last post by:
I have very strange error mysqldump: Got error: 1045: Access denied for user ''@'localhost' (using p assword: YES) when trying to connect I have installed mysql freshly with blank password...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.