Ошибка FATAL ERROR: Could not find ./bin/my_print_defaults

Ошибка MySQL 5.5.12 FreeBSD 8.2 — FATAL ERROR: Could not find ./bin/my_print_defaults

При установке MySQL Server 5.5.12 в FreeBSD 8. При запуске скрипта mysql_install_db

выскакивает ошибка:FATAL ERROR: Could not find ./bin/my_print_defaults

Хотя файл находится в /usr/local/bin/

Для запуска скрипта выполняем:

#cd /usr/local mysql_install_db —user=mysql —ldata=/var/db/mysql

Наблюдаем:

Installing MySQL system tables…

OK

Filling help tables…

OK

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:

./bin/mysqladmin -u root password ‘new-password’

./bin/mysqladmin -u root -h localhost password ‘new-password’

Alternatively you can run:

./bin/mysql_secure_installation

which will also give you the option of removing the test

databases and anonymous user created by default.  This is

strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:

cd . ; ./bin/mysqld_safe &

 

You can test the MySQL daemon with mysql-test-run.pl

cd ./mysql-test ; perl mysql-test-run.pl

 

вместо

mysql_install_db —user=mysql —ldata=/var/db/mysql

надо

bin/mysql_install_db —user=mysql —ldata=/var/db/mysql

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *