freeBSD5.3安装mysql5.0.4数据库并用perl5.8.5测…
2009-05-13 01:49:08来源:未知 阅读 ()
安装mysql5.0.4数据库
http://mysql.sd1.mirrors.redwire.net/Downloads/MySQL-5.0/mysql-max-5.0.4-beta-unknown-freebsd5.3-i386.tar.gz
freeBSD53#mount /cdrom
freeBSD53#cp /cdrom/mysql-max-5.0.4-beta-unknown-freebsd5.3-i386.tar.gz /tmp
freeBSD53#cd /tmp
freeBSD53# tar –zxvf mysql-max-5.0.4-beta-unknown-freebsd5.3-i386.tar.gz
freeBSD53# mv /tmp/mysql-max-5.0.4-beta-unknown-freebsd5.3-i386 /usr/local/mysql
freeBSD53# cd /usr/local/mysql/
freeBSD53# ./configure --help
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.
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:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h freeBSD53.chenghe.com password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./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 ./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 https://order.mysql.com
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
freeBSD53# chown: mysql: Invalid argument
Starting mysqld daemon with databases from /usr/local/mysql/data
(遇到过一个提示少libm.so.2的问题,那是我第一次下了个安装http://mysql.sd1.mirrors.redwire.net/Downloads/MySQL-5.0/mysql-max-5.0.4-beta-unknown-freebsd4.73-i386.tar.gz 请注意这个是为freebsd4.73准备的,安装时出现了libm.so.2)
freeBSD53# ps -aux | grep mysql
root 560 0.0 1.4 1656 1224 p0 I 8:10PM 0:00.09 /bin/sh ./bin/mysqld_safe --no-default
root 572 0.0 29.4 56452 26288 p0 S 8:10PM 0:03.66 /usr/local/mysql/bin/mysqld --no-default
root 619 0.0 0.2 348 208 p0 R+ 8:16PM 0:00.00 grep mysql
freeBSD53# ./bin/mysqladmin -u root password "123456"
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:DOS下访问iso文件
下一篇:配置我的五键鼠标。
- KDE/FreeBSD 测试 QT-4.5.1. 2009-05-13
- Freebsd CARP设定写测试方法 2009-05-13
- FreeBSD编译内核的详细过程 2009-05-13
- Set uid, gid,sticky bit的三个权限的详细说明 2009-05-13
- FreeBSD6.3下双网卡绑定详细过程 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash