Re: MySQL Error Number 1045 Access denied
Hi all,
I will assume you have installed MySql on a Linux box. Then you have installed MySql Administrator on a Windows based machine, hence the 1045 Access denied Error.
I had the same problem and this is what i did.
Seems to me most of you haven't set the user up in mysql for access from that Windows machine. MySQL authenticates users based on Host and Username, not just username.
I don't know how your network or your server is set up so I would suggest the easiest way for you to set up this remote access is to create a user on the mysql server for remote access.
To do this log into your mysql server as root (or whatever your admin user is).
mysql -u root -p
Issue the statement....
GRANT ALL on *.* to 'new_user'@'192.168.22.10' IDENTIFIED BY 'new_user_password';
Replace dbname.tablename with the database and table names you need to access (USE *.* if you need access to all databases and tables)
Replace new_user with the chosen username.
Replace password with the chosen password.
If you want this user to be able to connect from any machine on your network replace 192.168.22.10 with 192.168.0.% or if you want to be able to connect from any location replace 192.168.0.34 with just a % but consider the security issues.
Hope this helps.
Regards
Richard Mushene
Linux Administrator
Subject
Written By
Posted
December 29, 2004 08:39PM
Re: MySQL Error Number 1045 Access denied
December 22, 2009 04:23AM
February 07, 2005 10:11AM
September 06, 2007 11:06PM
September 30, 2007 02:35PM
February 28, 2007 11:03AM
September 23, 2006 05:45PM
November 07, 2007 11:41PM
February 07, 2006 06:09AM
February 28, 2007 11:05AM
November 30, 2008 11:32PM
February 10, 2009 10:49AM
November 03, 2009 07:36AM
September 16, 2005 04:54PM
December 31, 2006 03:51PM
February 10, 2007 08:02AM
November 13, 2005 11:05AM
December 23, 2005 06:15PM
February 16, 2006 09:07PM
February 28, 2007 11:27AM
February 20, 2008 06:17AM
September 20, 2007 07:50AM
November 11, 2005 01:19PM
December 13, 2005 02:42PM
December 15, 2005 12:56AM
February 17, 2007 11:07AM
September 03, 2007 02:40PM
September 07, 2007 10:42AM
February 13, 2009 04:29PM
September 11, 2009 08:24AM
September 19, 2009 08:54AM
December 16, 2009 03:44AM
December 22, 2009 04:21AM
December 22, 2009 01:49PM