Tizag Webmaster Forums  

Go Back   Tizag Webmaster Forums > Web Development > Database Forums > MySQL Forum

Reply
 
Thread Tools Display Modes
  #1  
Old 11-03-2009, 07:24 AM
DeepSun DeepSun is offline
Curious Visitor
 
Join Date: Oct 2009
Posts: 3
DeepSun will become famous soon enough
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Hi All can u help to create a database , I am getting the error in logging or when creating database

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Entering mysql like below

[p ~]$ mysql --user=root -p
Enter password: ========> (what password should be given here ??)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

(OR)


[p ~]$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 27 to server version: 5.0.27

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database abc;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'abc'


Can any one help how to resolve this, thanks in advance..
Reply With Quote
Sponsored Links
  #2  
Old 11-03-2009, 11:37 AM
richei richei is offline
Professor
 
Join Date: Apr 2007
Location: Smithfield, VA
Posts: 3,175
richei is a jewel in the roughrichei is a jewel in the rough
Send a message via MSN to richei
this one should be obvious. you entered the wrong password.
__________________
Unlimited Web Hosting
If i actually managed to help you in any way, please +rep me!
Reply With Quote
  #3  
Old 11-04-2009, 01:45 AM
DeepSun DeepSun is offline
Curious Visitor
 
Join Date: Oct 2009
Posts: 3
DeepSun will become famous soon enough
Hi richei,,,

thanks for the reply...
Actually i want to know the password when logging for the first time.

ERROR 1045 (28000): u mean to say this is due to wrong p/w.
can u tell me what should be the password when logging for the first time ??


ERROR 1044 (42000): here , can't we create a database by entering mysql by providing "mysql" as mentioned below.

Thanks again.
Reply With Quote
  #4  
Old 11-05-2009, 12:39 AM
richei richei is offline
Professor
 
Join Date: Apr 2007
Location: Smithfield, VA
Posts: 3,175
richei is a jewel in the roughrichei is a jewel in the rough
Send a message via MSN to richei
if this is a default install with no other configuration done, then there wouldn't be a password, so nothing would be entered.

but, if you messed with the configuration ini, then you need to sort through that to find the password.
__________________
Unlimited Web Hosting
If i actually managed to help you in any way, please +rep me!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:21 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2008, Tizag