Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Mar 2007 16:26:52 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        "Rajen Jani (BT Yahoo! Broadband)" <x_element108@btinternet.com>
Cc:        freebsd-database@freebsd.org
Subject:   Re: ERROR 1045 (28000): Access denied for user 'zabbix'@'ritm' (using, password: YES)
Message-ID:  <45E8423C.506@quip.cz>
In-Reply-To: <45E82E41.2060007@btinternet.com>
References:  <45E82E41.2060007@btinternet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Rajen Jani (BT Yahoo! Broadband) wrote:

> Hello people,
> 
>                Thanks for helping me out last time. I am still having
> the above problem. I did the following prior:
> 
> shell>> mysql
> 
> mysql> GRANT ALL PRIVILEGES ON zabbix TO .*  'zabbix'@'ritm' IDENTIFIED
> BY 'password';

You have wrong syntax of GRANT command. Right is:

mysql> GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@ritm IDENTIFIED
BY 'password';

where first "zabbix" is database name and asterisk wildcard means "all 
tables in this database", second "zabbix" is username and "ritm" is 
hostname (FQDN or IP adrress) of the machine from which the user zabbix 
will connect from. If database server and zabbix user is on the same 
machine, it should be localhost.

Miroslav Lachman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E8423C.506>