Страница 1 из 1

Access denied for user 'otrs'@'localhost'

Добавлено: 2012-04-16 11:34:20
flatic
Добрый день.
Решил поставить систему тикетов otrs.
freebsd8.2+apache22+mysql5.0+otrs
Все поставил, из консоли могу зайти

Код: Выделить всё

[heel:~]# mysql -u otrs -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.0.95-log FreeBSD port: mysql-server-5.0.95

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
Пробую зайти с пк heel.qw.local
мне выдает Access denied for user 'otrs'@'localhost' (using password: YES).
Пользователь создан как localhost так и с %

Код: Выделить всё

mysql> select user,host,password from mysql.user ;
+------------+------------------+-------------------------------------------+
| user       | host             | password                                  |
+------------+------------------+-------------------------------------------+
| root       | localhost        | *FE4F2D624C07AAEBB979DA5C980D0250C37D8F63 |
| root       | heel.qw.local |                                           |
| root       | 127.0.0.1        |                                           |
|            | localhost        |                                           |
|            | heel.qw.local |                                           |
| otrs       | %                | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| otrs       | localhost        | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| vlad       | %                | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 |
+------------+------------------+-------------------------------------------+
9 rows in set (0.00 sec)

mysql>
В apache2-perl-startup.pl

Код: Выделить всё

use Apache::DBI ();
Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', 'password');
use DBI ();

Дайте плз совет, что делаю криво. :(

Re: Access denied for user 'otrs'@'localhost'

Добавлено: 2012-04-16 13:13:41
skeletor
Может не работает резолвинг имени?

Re: Access denied for user 'otrs'@'localhost'

Добавлено: 2012-04-16 13:52:47
flatic
Подскажите как проверить.
Я новичек, не так разбираюсь как хотелось бы!

Re: Access denied for user 'otrs'@'localhost'

Добавлено: 2012-04-16 13:59:34
skeletor
Пробую зайти с пк heel.qw.local
мне выдает Access denied for user 'otrs'@'localhost' (using password: YES).
почему так? ведь должно быть

Код: Выделить всё

Access denied for user 'otrs'@'heel.qw.local' (using password: YES).

Re: Access denied for user 'otrs'@'localhost'

Добавлено: 2012-04-16 14:11:19
flatic
Вот я и спрашиваю что и где я на кривил.
У меня ломится почему то на @localhost

Re: Access denied for user 'otrs'@'localhost'

Добавлено: 2012-04-16 14:15:41
skeletor
Ищите ошибку в скрипте.

Re: Access denied for user 'otrs'@'localhost'

Добавлено: 2012-04-16 14:23:21
flatic
Я так понимаю скрипт апача ?

Re: Access denied for user 'otrs'@'localhost'

Добавлено: 2012-04-16 14:34:46
skeletor
Тот, которым вы подключаетесь.

Re: Access denied for user 'otrs'@'localhost'

Добавлено: 2012-04-16 20:01:01
flatic
Ура! :)
Тему можно закрыть. Трабла была в том что в

Код: Выделить всё

# vi /usr/local/otrs/Kernel/Config.pm
конф. В котором над то ж изменять пароль и логин так же как и в

Код: Выделить всё

#  /usr/local/otrs/scripts/apache2-perl-startup.pl
use Apache::DBI ();
Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', 'password');
...

Спасибо всем огромное кто помогал!

Re: Access denied for user 'otrs'@'localhost'

Добавлено: 2012-11-07 19:24:17
rakshasyaka
Спасибо flatic помогло