安装MYSQL的,我用的是tar.包。 外汇
我用的是rhel5
以下是命令步骤:
?解压mysq.l5 的安装包:tar. –zxvf mysql-5.0.16.tar.gz 鲜花
?进入解压后的安.装包: cd. mysql-5.0.16.
?配置:
./configure
--p.refix=/opt/mysql.
--wit.h-extra-charsets=all虚拟主机
--with-unix-socket-.path=/opt/mysql/v.ar/mysql.sock电影
?make
?make install
?复制配置文件到/etc下
cp /opt/mysql/share/mysql/my.-medium..cnf /etc/my.cnf健康
?运行:../opt/mysql/bin/mysql_i.nstall_db 建材
这个命令是创建MySQL.的授权表.虚拟主机
在.执行到?运行:./opt/mysql/bin/mysql_in.stall_db的时候出错 婚庆
错误信息如下:
[root@localhos.t bin]# ./mysql_insta.ll_db[成人用品]
In.stalling MySQL system tables.... 婚庆
080822 17:38:47 [Warning] option 'max_join_size.': unsigned value 1844674.4073709551615 adjusted to 4294.967295学习
080822 17:38:47 [Warning] option 'm.ax_join_s.ize': unsigned value 1844.6744073709551615 adjusted to 4294967295虚拟主机
OK
Filling help .tables...教育
080822 17:38:48 [W.ar.ning] option .'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295 美容
080822. 17:38:48 [Warning] option 'max_join_size': unsigned valu.e 18446744073709551615 .adjusted to 4294967295教育
OK
To start mysqld at boot time you have to c.o.py域名
suppor.t-files/mysql.server to the right place for your .system 乙肝
PLEASE REMEMBER TO SET A PASSWO.RD FOR THE MySQ.L root USER !服务器
To do so, start the server, then i.ssue the. following commands:.
/opt/mysql/bin/mysqla.dmin -u root password 'n.ew-password'.
/opt/mysql/bin/mysqladmin -u root -.h localhost.localdoma.in password 'new-pas.sword'学习
Al.ternatively you can r.un:.
/opt/mysql/bin/mysql_secure_install.atio.n电影
which will also give you the option of. remo.ving the test健康
data.bas.es and anonymous user created by default. This is 乙肝
strongly recomme.nded for productio.n servers.电影
See the manual f.or more inst.ructions. 建材
You can s.tart th.e MySQL daemon with:--------------彩票
cd /o.pt/mysql ;. /opt/mysql/bin/mysqld_safe &虚拟主机
You can test the MySQL daemon with mys.ql-test-ru.n.pl域名
cd mysql-test ; perl mysql-..test-run.pl.
Pl.ease report any problems with the /opt/mys.ql/bin/mysqlbug script!--- 印刷
The latest information about MySQL is a.vailable on .the web at.
http://www.mysql.com[成人用品]
Support MySQL by buying support/licenses at
http://shop.mysql.com\
无法执行:
chown -R mysql. : m.ysql /opt/mysql/var[成人用品]
错误提示如下:
chown.: “mysql”: 无效的用户电影
无法启动mysql
错误提示如下:
[
root@localho.st mysql]# ./mysq.l.server start电影
Starting MySQL.Manag.er of pid-file qui.t without updating fi[失败]域名
[root@localhost mys.ql]#学习