大家下午好,今天小弟来到咱们的csdn论坛讲自己今天在北大青鸟所学的在linux系统上安装MYSQL知识奉献给大家,希望大家能过喜欢。
1 拷贝 MySQL-client-community-5.1.49-1.rhel5.i386.rpm  MySQL-server-community-5.1.49-1.rhel5.i386.rpm  到 /home/mysql/ 下  2 安装 MySQL  输入命令 rpm -ivh MySQL-server-community-5.1.49-1.rhel5.i386.rpm  显示如下  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 localhost.localdomain password 'new-password'  Alternatively you can run:  /usr/bin/mysql_secure_installation  which will also give you the option of removing the test  databases and anonymous user created by default. This is  strongly recommended for production servers.  See the manual for more instructions.  Please report any problems with the /usr/bin/mysqlbug script!  Starting MySQL.[ ]  Giving mysqld 2 seconds to start  输入命令 rpm -ivh MySQL-client-community-5.1.49-1.rhel5.i386.rpm  显示如下  Preparing... ########################################### [100%]  1:MySQL-client-community ########################################### [100%]  查看是否安装成功  输入命令 mysql -u root  显示如下  Welcome to the MySQL monitor. Commands end with ; or \g.  Your MySQL connection id is 1  Server version: 5.1.49-community MySQL Community Server (GPL)  Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.  This software comes with ABSOLUTELY NO WARRANTY. This is free software,  and you are welcome to modify and redistribute it under the GPL v2 license  Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.  mysql>  说明安装成功  4 设置root用户密码  输入命令 mysqladmin -u root password 'tvlink'  用root用户登录  输入命令 mysql -u root -p  显示 Enter password: //输入密码这就是初步完成了,希望对大家有用,有什么疑问可以在cSDN论坛留言,或者直接点击www.beidaqingniao.org我会在线回答