比较粗糙,还有需要改进的地方。慢慢完善吧。
自动化部署MySQL5.6步骤(三)
rent input statement.
root@(none) 12:29:11>show databases ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| dexdb |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.37 sec)
root@(none) 12:29:14>use dexdb ;
Database changed
root@dexdb 12:29:17>
select * from t ;
+------+------------+
| id |name |
+------+------------+
| 1 |renfengjun |
+------+------------+
1 row in set (0.19 sec)
root@dexdb 12:29:19>quit
Bye
[root@study2 ~]# service mysql stop
Shutting down MySQL.[ OK ]