Устанавливаю на Freebsd 7.2 MySQL 4.1 из портов
cd /usr/ports/databases/mysql41-server/
make
make install
/usr/local/share/mysql/my-medium.cnf /etc/my.cnf
mysql_install_db --user=mysql
WARNING: The host 'pc5.localdomain' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
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/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h pc5.localdomain 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/local/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/local ; /usr/local/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/local/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 http://shop.mysql.com
И так что бы не было проблем
chown -R mysql:mysql /var/db
echo 'mysql_enable="YES"' >> /etc/rc.conf
пробую запустить
/usr/local/etc/rc.d/mysql-server start
Нет не какой информации в логах!
А вот
/usr/ports/databases/mysql41-server/support-files/mysql.server start
Starting MySQL. SUCCESS!
pc5# ps -aux | grep mysql
mysql 907 3.5 9.0 66148 22336 p1 S 2:26PM 0:00.60 /usr/local/libexe
root 911 0.0 0.2 556 444 p1 R+ 2:26PM 0:00.01 grep mysql
в итоге
pc5# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6 to server version: 4.1.25-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
где что я делал не так?
cd /usr/ports/databases/mysql41-server/
make
make install
/usr/local/share/mysql/my-medium.cnf /etc/my.cnf
mysql_install_db --user=mysql
WARNING: The host 'pc5.localdomain' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
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/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h pc5.localdomain 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/local/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/local ; /usr/local/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/local/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 http://shop.mysql.com
И так что бы не было проблем
chown -R mysql:mysql /var/db
echo 'mysql_enable="YES"' >> /etc/rc.conf
пробую запустить
/usr/local/etc/rc.d/mysql-server start
Нет не какой информации в логах!
А вот
/usr/ports/databases/mysql41-server/support-files/mysql.server start
Starting MySQL. SUCCESS!
pc5# ps -aux | grep mysql
mysql 907 3.5 9.0 66148 22336 p1 S 2:26PM 0:00.60 /usr/local/libexe
root 911 0.0 0.2 556 444 p1 R+ 2:26PM 0:00.01 grep mysql
в итоге
pc5# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6 to server version: 4.1.25-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
где что я делал не так?