1. 安装mysql
2. 启动mysql 服务,在终端输入如下语句:[root@localhost /]# etc/init.d/mysqld start
Starting MySQL: [ OK ]
3. 登陆 [root@localhost /]# mysql -u root
mysql> show databases
5. 设定数据库
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.04 sec)
mysql> use test
mysql> show tables \g