一开始学习数据库就是用的MySQL,之后就是Informix,现在是使用ORACLE,现在由于学习研究开发一个基于负载平衡的网络监控系统需要想使用MySQL,
感觉有点生疏,现就MySQL5.0在linux下安装的经验总结一下:
在http://www.mysql.com/downloads/选择要安装的版本,
1.安装MySQL需要下面两个文件:
MySQL-server-4.0.16-0.i386.rpm
MySQL-client-4.0.16-0.i386.rpm
[root@MT src]# rpm -ivh MySQL-server-community-5.0.41-0.rhel4.i386.rpm
warning: MySQL-server-community-5.0.41-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-server-community ########################################### [100%]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h MT password 'new-password'