LINUX.ORG.RU

MySQL???


0

0

Пишу:
[root@fedora bin]mysql_install_db
Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h fedora password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

Вроде бы все нормально. ввожу:  mysqladmin -u root password 'mysql'

mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

пробую так: mysqladmin -u root -h fedora password 'mysql'

mysqladmin: connect to server at 'fedora' failed
error: 'Access denied for user 'root'@'fedora' (using password: NO)'

[root@fedora bin]# ps aux | grep  "mysql"
root      6297  0.0  0.2   4380  1240 ?        S    15:48   0:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid
mysql     6330  0.0  3.5 125184 17984 ?        Sl   15:48   0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --socket=/var/lib/mysql/mysql.sock
root      6455  0.0  0.1   3752   724 pts/2    R+   15:52   0:00 grep mysql

В чем проблема?
anonymous

Читаем:To do so, start the server, then issue the following commands: То есть сначала надо запустить сервер: You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & В данном случае перезапустить.

Aceler ★★★★★
()
Ответ на: комментарий от Aceler

так пробывал и перезапустить. все равно каждый раз такое сообщение

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.