[svlug] Remote connections to MySQL

Brian J. Tarricone bjt23 at cornell.edu
Mon Oct 29 21:21:44 PST 2007


On Mon, 29 Oct 2007 23:54:36 -0400 Skip Evans wrote:
> 
> I tried what you have above and got this:
> 
> root at Xu-laptop1:/etc/mysql# mysql -u sevans -p -h 
> 192.168.1.101 -P 3306
> Enter password:
> ERROR 1045 (28000): Access denied for user 
> 'sevans'@'192.168.1.41' (using password: YES)
> root at Xu-laptop1:/etc/mysql#
> 
> The user sevans does have the right privileges for 
> the database. I can connect on the server using 
> that user name and password no trouble.

You sure?  MySQL differentiates between local logins and remote
logins.  You either need to authorize any host (using the '%' wildcard
for the hostname in your GRANT statement), or by specifying the host/IP
address of each host you want to allow to connect in a separate GRANT
statement.

	-brian




More information about the svlug mailing list