Прошу прощения за глупость, но я не могу разобраться с другой проблемой, которая как мне кажется связана с этой.
Я не могу войти под root в mysql.
Так 06/13/2012 23:10 sasha:~$ sudo mysql -u root
[sudo] password for sasha:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
06/13/2012 23:10 sasha:~$
Или так06/13/2012 23:12 sasha:~$ mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
А так захожу, но ничего не могу сделать06/13/2012 23:14 sasha:~$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 41
Server version: 5.5.24-0ubuntu0.12.04.1 (Ubuntu)
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>
mysql> CREATE USER 'sergey'@'localhost' IDENTIFIED BY '123456';
ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
Пользователь решил продолжить мысль 14 Июня 2012, 00:32:37:
Такое впечатление, что когда ставился пакет MySql, то пользователя root не было, нет его и в MySql.
Пользователь решил продолжить мысль 14 Июня 2012, 01:17:39:
Всё решил по ссылке
http://blog.laptev.info/2009/reset-mysql-root-password.htmlи по ссылке
http://webew.ru/articles/2104.webew