`
xudongcsharp
  • 浏览: 470369 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

linux 安装Mysql

 
阅读更多
安装过程用到命令:

安装rpm

# rpm -ivh 包名 

卸载rpm

# rpm -e 包名

查看机器所有已安装rpm

# rpm -qa

加管道过滤条件

# rpm -qa | grep MySql [区分大小写]



下载:http://downloads.skysql.com/archive/index/p/mysql/v/5.0.45

安装server端:
[root@localhost pub]# rpm -ivh MySQL-server-community-5.0.45-0.rhel4.i386.rpm
warning: MySQL-server-community-5.0.45-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 localhost.localdomain password 'new-password'
See the manual for more instructions.
Please report any problems with the /usr/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 http://shop.mysql.com
Starting MySQL[  OK  ]
Giving mysqld 2 seconds to start


安装client端:
[root@localhost pub]# rpm -ivh MySQL-client-community-5.0.45-0.rhel4.i386.rpm
warning: MySQL-client-community-5.0.45-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing...                ########################################### [100%]
   1:MySQL-client-community ########################################### [100%]


测试安装成功:
mysql  命令进入
mysql> show databases
ctrl+D 退出mysql
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics