Re: ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2005-03-04 Thread Gleb Paharenko
Hello.



 mysqladmin:connect to server at 'localhost' failed

 error: 'Can't connect to local MySQL server through socket

 '/tmp/mysql.sock' (2)'

...

 shellsafe_mysqld --user=root --pid-file=/var/db/mysql/mysql.pid

 --skip-grand-tables 

 [1] 28712

 shell Starting mysql deamon with databses from /var/db/mysql

 050303 21:04:02 mysql ended



Looks like mysqld didn't started properly. What is in the error log?





 shell mysql -u root -p

 mysql UPDATE mysql.user SET Password=PASSWORD('newpwd')  WHERE User='root';

 mysql flush privileges;

 and I checked this password another consol  I saw MySQL wasn't

 accepted  new passwd else, it didnt old password or without password.





We'll check this after solving the problem with the daemon's start.













Deniss Hennesy [EMAIL PROTECTED] wrote:

 Hi, 

 

 I have had to change mysql root passwd  

 My procedure is just below

 

 

 shell mysql -u root -p

 mysql UPDATE mysql.user SET Password=PASSWORD('newpwd')  WHERE User='root';

 mysql flush privileges;

 

 

 and I checked this password another consol  I saw MySQL wasn't

 accepted  new passwd else, it didnt old password or without password.

 

 

 

 

 

 Now neither new passwd nor old passwd also empty passwd is not acceped

 

 

 I change my mind and I tried that procedure

 

 shell kill `cat /var/db/host_name.pid`

 

 shell mysqld_safe --skip-grant-tables 

 

 shell mysqladmin -u root flush-privileges password newpwd

 

 

 mysqladmin:connect to server at 'localhost' failed

 error: 'Can't connect to local MySQL server through socket

 '/tmp/mysql.sock' (2)'

 

 Check that mysql is running and that the socket:'/tmp/mysql.sock' exits!

 

 

 3rd way is

 

 shell/usr/local/etc/rc.d/mysql-server.sh stop

 

 then

 

 shellsafe_mysqld --user=root --pid-file=/var/db/mysql/mysql.pid

 --skip-grand-tables 

 [1] 28712

 shell Starting mysql deamon with databses from /var/db/mysql

 050303 21:04:02 mysql ended

 

 

 So I suppose that it is not initialize MySQL deamon  isnt it???

 

 

 How I can recover mysql password?!??

 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2005-03-03 Thread Deniss Hennesy
Hi,

I have had to change mysql root passwd
My procedure is just below

shell mysql -u root -p
mysql UPDATE mysql.user SET Password=PASSWORD('newpwd')  WHERE User='root';
mysql flush privileges;

and I checked this password another consol  I saw MySQL wasn't
accepted  new passwd else, it didnt old password or without password.

Now neither new passwd nor old passwd also empty passwd is not acceped

I change my mind and I tried that procedure

shell kill `cat /var/db/host_name.pid`

shell mysqld_safe --skip-grant-tables 

shell mysqladmin -u root flush-privileges password newpwd

mysqladmin:connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)'

Check that mysql is running and that the socket:'/tmp/mysql.sock' exits!

3rd way is

shell/usr/local/etc/rc.d/mysql-server.sh stop

then

shellsafe_mysqld --user=root --pid-file=/var/db/mysql/mysql.pid
--skip-grand-tables 
[1] 28712
shell Starting mysql deamon with databses from /var/db/mysql
050303 21:04:02 mysql ended

So I suppose that it is not initialize MySQL deamon  isnt it???

How I can recover mysql password?!??

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2005-03-03 Thread Deniss Hennesy
Hi, 

I have had to change mysql root passwd  
My procedure is just below


shell mysql -u root -p
mysql UPDATE mysql.user SET Password=PASSWORD('newpwd')  WHERE User='root';
mysql flush privileges;


and I checked this password another consol  I saw MySQL wasn't
accepted  new passwd else, it didnt old password or without password.





Now neither new passwd nor old passwd also empty passwd is not acceped


I change my mind and I tried that procedure

shell kill `cat /var/db/host_name.pid`

shell mysqld_safe --skip-grant-tables 

shell mysqladmin -u root flush-privileges password newpwd


mysqladmin:connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)'

Check that mysql is running and that the socket:'/tmp/mysql.sock' exits!


3rd way is

shell/usr/local/etc/rc.d/mysql-server.sh stop

then

shellsafe_mysqld --user=root --pid-file=/var/db/mysql/mysql.pid
--skip-grand-tables 
[1] 28712
shell Starting mysql deamon with databses from /var/db/mysql
050303 21:04:02 mysql ended


So I suppose that it is not initialize MySQL deamon  isnt it???


How I can recover mysql password?!??

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2005-03-03 Thread sam wun
Deniss Hennesy wrote:
Hi, 

I have had to change mysql root passwd  
My procedure is just below

shell mysql -u root -p
mysql UPDATE mysql.user SET Password=PASSWORD('newpwd')  WHERE User='root';
mysql flush privileges;
 

YOu may be need to execute command mysqladmin -u root password 
(yourpassword) for the creation of password. I m not sure,  not expert 
in DBA.

Sam
and I checked this password another consol  I saw MySQL wasn't
accepted  new passwd else, it didnt old password or without password.
 

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2004-04-02 Thread Pahlevanzadeh Mohsen
Hi,When i run mysql,mysqlshow,mysqladmin  etc from
mysql command,I receive following error:
ERROR 1045: Access denied for user: '[EMAIL PROTECTED]'
(Using password: NO)
I have RH9.
Please guide me.
Yours,Mohsen.

=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh
 Network administrator   programmer 
  My work phone is : +98216054096-7   
  My home phone is: +98213810146  
My emails is  
  [EMAIL PROTECTED]   
My website is: http://webnegar.net


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2004-04-02 Thread Michael Stassen
According to the error message, [EMAIL PROTECTED] has a password, but you 
aren't supplying it.  Add -p to your commands to be prompted for the password.

If you don't know the password, see How to Reset The Root Password 
http://www.mysql.com/doc/en/Resetting_permissions.html in the manual.

Michael

Pahlevanzadeh Mohsen wrote:

Hi,When i run mysql,mysqlshow,mysqladmin  etc from
mysql command,I receive following error:
ERROR 1045: Access denied for user: '[EMAIL PROTECTED]'
(Using password: NO)
I have RH9.
Please guide me.
Yours,Mohsen.
=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


RE: ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2004-04-01 Thread Pahlevanzadeh Mohsen
I didn't found hostname.pid file.
SOS SOS

--- J.R. Bullington [EMAIL PROTECTED] wrote:
 The next step is to shutdown mysqld, delete the
 mysql and temp tables from
 your /data/ folder, and then re-run the
 scripts/mysql_install_db. That will
 reinstall the mysql/hosts.frm, which will basically
 reset your root user and
 password. However, it will also kill any users you
 have created. 
 
 To reset the root password without harming other
 mysql users:
 
 Shell kill cat /path/to/mysql/data/hostname.pid
 Shell ./bin/mysqld_safe --user=mysql
 --skip-grant-tables 
 Shell mysqladmin -u root password 'newpassword'
 Shell mysqladmin shutdown
 
 Then restart the mysqld like normal. Hope this
 helps!
 
 J.R.
 


=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh
 Network administrator   programmer 
  My work phone is : +98216054096-7   
  My home phone is: +98213810146  
My emails is  
  [EMAIL PROTECTED]   
My website is: http://webnegar.net


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2004-03-31 Thread Pahlevanzadeh Mohsen
hi,i was attemping,But my problem didn't solved.
SOS SOS
--- J.R. Bullington [EMAIL PROTECTED] wrote:
 Did you change the mysql root password by running:
  mysqladmin -u root password 'newpassword'? 
 
 If so, try:
  mysql -u root -p  
 
 It will then prompt you to enter a password.
 
 J.R.
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:   

http://lists.mysql.com/[EMAIL PROTECTED]
 


=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh
 Network administrator   programmer 
  My work phone is : +98216054096-7   
  My home phone is: +98213810146  
My emails is  
  [EMAIL PROTECTED]   
My website is: http://webnegar.net


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2004-03-31 Thread J.R. Bullington
The next step is to shutdown mysqld, delete the mysql and temp tables from
your /data/ folder, and then re-run the scripts/mysql_install_db. That will
reinstall the mysql/hosts.frm, which will basically reset your root user and
password. However, it will also kill any users you have created. 

To reset the root password without harming other mysql users:

Shell kill cat /path/to/mysql/data/hostname.pid
Shell ./bin/mysqld_safe --user=mysql --skip-grant-tables 
Shell mysqladmin -u root password 'newpassword'
Shell mysqladmin shutdown

Then restart the mysqld like normal. Hope this helps!

J.R.


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2004-03-30 Thread Pahlevanzadeh Mohsen
Hi.
When i run mysql,mysqlshow,mysqladmin or .,I
receive following error:
ERROR 1045: Access denied for user: '[EMAIL PROTECTED]'
(Using password: NO)
Please guide me..
Yours,Mohsen.


=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh
 Network administrator   programmer 
  My work phone is : +98216054096-7   
  My home phone is: +98213810146  
My emails is  
  [EMAIL PROTECTED]   
My website is: http://webnegar.net


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2004-03-30 Thread J.R. Bullington
Did you change the mysql root password by running:
 mysqladmin -u root password 'newpassword'? 

If so, try:
 mysql -u root -p  

It will then prompt you to enter a password.

J.R.


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2004-03-12 Thread Leslie Vance
Hello,

I am having a hard time getting Mysql to let [EMAIL PROTECTED] connect.

I am constantly getting this:

ERROR 1045: Access denied for user: '[EMAIL PROTECTED]' (Using password: NO)

when I issue mysql -u root

I can log in if I use mysql -h 192.168.1.10 -u root mysql

I guess I have some sort of host thing mixed up but I have tried all sorts
of things out of the list with no avail.  I using Redhat 9 and I used the
rpm's distributed by mysql.

Thanks in advance.

Les

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

2004-03-12 Thread Victor Medina
Hi!

You seems to have just installed mysql. The root user should be able to
acces a mysql server from anywhere by default. I don't know why you can
connect from localhost, probably you delete the [EMAIL PROTECTED]? Anyway
it is a good thing to delete the root user after the initial setup, once
you have a full rights user created that can manage the db. To do this,
loginto mysql as root, and create a full-blown user with everything
enable and give it a secure password. like this:

mysql -u root -h 192.168.1.10

Now create a full rights user like this

grant all privileges on *.* to yournewusername_here@% identified by
'passowrdhere' with grant option;

flush privileges;

This will create a new user with a set of rights comparable with the
root's own permissions.

Now, with this superuser created you can delete the root user 

use mysql
delete from user where User='root';
flush privileges;

Now logout, and login again using the new password and the new user!
voilà!

Best Regards!


On Fri, 2004-03-12 at 09:25, Leslie Vance wrote:
 Hello,
 
 I am having a hard time getting Mysql to let [EMAIL PROTECTED] connect.
 
 I am constantly getting this:
 
 ERROR 1045: Access denied for user: '[EMAIL PROTECTED]' (Using password: NO)
 
 when I issue mysql -u root
 
 I can log in if I use mysql -h 192.168.1.10 -u root mysql
 
 I guess I have some sort of host thing mixed up but I have tried all sorts
 of things out of the list with no avail.  I using Redhat 9 and I used the
 rpm's distributed by mysql.
 
 Thanks in advance.
 
 Les
-- 

 |...|
 |  _    _|Victor Medina M   |
 |\ \ \| |  _ \ / \   |Linux - Java - MySQL  |
 | \ \ \  _| | |_) / _ \  |Dpto. Sistemas - Ferreteria EPA   |
 | / / / |___|  __/ ___ \ |[EMAIL PROTECTED]  |
 |/_/_/|_|_| /_/   \_\|ext. 325 - Tél: +58-241-8507325   |
 ||geek by nature - linux by choice  |
 |...|






















--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



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

2003-09-05 Thread Jerry M. Howell II
Hey there all,

  Here is the problem I am haveing and was wondering if anyone can help
  me here. I was getting the following error when loging into mysql

  ERROR 1045: Access denied for user: '[EMAIL PROTECTED]' (Using password:
  YES)

  After searching for an answer I found the answer was to re-start
  using --skip-grant-tables and change the password then restart mysql
  useing the normal startup script. This worked well.

  The next step is where I run into problems. After I log into mysql in
  the normal mode and reset the password I go back to ERROR 1045: Access
  denied for user: '[EMAIL PROTECTED]' (Using password:YES). Also, other
  users are reporting that they can't access thier databases. Based on
  what I am seeing here I am able to login to mysql as root as long as
  there is no password. Once I set a password it wont let me connect.
  Also found that users can't login to the databases.

  Does anyone have any idea whats going on and how I might be able to
  resove this problem?

  
Thanks,
-- 
Jerry M. Howell II

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]