>>[оверквотинг удален]
>>> но при всем, при этом если коннектится вот так:
>>> mysql -h 127.0.0.1 -u alex_db -pparol alex_db
>>> то все работает. Пользователя root пускает по всякому. Перелопатил англоязычную часть интернета,
>>> но нигде решения не нашел. my.cnf взят из исходников умолчальный: my_medium.cnf
>>> Не нравится мускулу почему то когда коннект идет с localhost
>>> в файле hosts:
>>> 127.0.0.1 unix localhost.localdomain localhost
>>> Помогите пожалуйста.Спасибо всем за ответы и за помощь:
show grants for 'alex_db'@'localhost';
ERROR 1141 (42000): There is no such grant defined for user 'mailuser' on host 'localhost'
mysql> show grants for 'alex_db'@'%';
+------------------------------------------------------------------------------- --------------------------+
| Grants for mailuser@% |
+------------------------------------------------------------------------------- --------------------------+
| GRANT USAGE ON *.* TO 'alex_db'@'%' IDENTIFIED BY PASSWORD '*0F9EE234B857E0FF 9FD4D20B98A885C814038856' |
| GRANT ALL PRIVILEGES ON `alex_db`.* TO 'alex_db'@'%' |
+------------------------------------------------------------------------------- --------------------------+
2 rows in set (0.00 sec)
Flush делал. Причем заметил еще одну вещь:
mysql -u alex_db
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 98
Server version: 5.1.51-log Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
пускает без пароля.
Теперь добавил пользователя для localhost и вроде все нормализовалась. Странно но на предыдущих версиях таких танцев с бубном не нужно было. Тему можно закрывать. Все еще раз спасибо за участие.