一直想在Linux下安装MySQL玩玩,上回试了一个多小时,竟然没安装成功,因为上回是下载tar的来安装,这回下载rpm的来安装,参考一份安装指引,先下载了服务端和客户端,下载的是32位,然后通过MV把长长的名字改短一点,通过rpm -ivh 命令分别安装上服务端和客户端,输入mysql一看,竟然成功了,rpm安装真快。有点高兴,散分,因本人可用分比较有限,各位朋友就别嫌少了,…… 附上安装客户端时的信息,安装服务端时的信息给我清了,找不到了,Sorry.
[root@localhost local]# rpm -ivh mysql-client.rpm
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
[root@localhost local]# clear[root@localhost local]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.60 MySQL Community Server (GPL)Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trade of Oracle Corporation and/or its
affiliates. Other names may be trades of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.02 sec)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货