MySQL 5.5.12 FreeBSD 8.2 — FATAL ERROR: Could not find ./bin/my_print_defaults
05.06.2011, рубрики: FreeBSD, Новости | Теги: FATAL ERROR, mysql | 4 319 комментариев »При установке MySQL Server 5.5.12 в FreeBSD 8. При запуске скрипта
1 | mysql_install_db |
выскакивает ошибка:
1 | FATAL ERROR: Could not find ./bin/my_print_defaults |
Хотя файл находится в /usr/local/bin/
Для запуска скрипта выполняем:
1 2 | cd /usr/local mysql_install_db --user=mysql --ldata=/var/db/mysql |
Наблюдаем:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 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 Please report any problems with the ./bin/mysqlbug script! |
вместо
mysql_install_db --user=mysql --ldata=/var/db/mysql
надо
bin/mysql_install_db --user=mysql --ldata=/var/db/mysql
Спасибо, ребята! просто выручили! сутки ничего понять не мог!
Очень помогло — спасибо!!!
Как вариант можно запустить так: #mysql_install_db --user=mysql --datadir=/usr/data/mysql --basedir=/usr/local &