# export PKG_PATH=ftp://www.jiarun.org/# pkg_add mysql-servermysql-server-5.1.48:mysql-client-5.1.48: okmysql-server-5.1.48:p5-Net-Daemon-0.43: okmysql-server-5.1.48:p5-PlRPC-0.2018p0: okmysql-server-5.1.48:p5-DBI-1.609: okmysql-server-5.1.48:p5-DBD-mysql-4.014: okmysql-server-5.1.48: ok--- +mysql-server-5.1.48 -------------------You can find detailed instructions on how to install a databasein /usr/local/share/doc/mysql/README.OpenBSD.# 创建默认的数据库:# /usr/local/bin/mysql_install_dbInstalling MySQL system tables...110307 13:36:00 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.OKFilling help tables...110307 13:36:00 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.OK 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 jr.gateway.2wire.net password 'new-password' Alternatively you can run:/usr/local/bin/mysql_secure_installation which will also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly recommended for production servers. See the manual for more instructions. Please report any problems with the /usr/local/bin/mysqlbug script! #
运行Mysql# mysqld_safe &[1] 8078# 110307 13:37:44 mysqld_safe Logging to '/var/mysql/jr.gateway.2wire.net.err'.110307 13:37:44 mysqld_safe Starting mysqld daemon with databases from /var/mysql #