1. FATAL ERROR: Could not find ./bin/my_print_defaults
[root@localhost scripts]# ./mysql_install_db --user=mysql --datadir=/var/lib/mysql FATAL ERROR: Could not find ./bin/my_print_defaults If you compiled from source, you need to run ‘make install‘ to copy the software into the correct location ready for operation. If you are using a binary release, you must either be at the top level of the extracted archive, or pass the --basedir option pointing to that location.
解决方法:
[[email protected] scripts]# ./mysql_install_db --user=mysql --datadir=/var/lib/mysql --basedir=/usr/local/mysql
指定 --basedir
2.
时间: 2024-08-05 16:52:43