关于运维自动化:WGCLOUD的配置使用-导入sql文件

WGCLOUD的数据库初始化sql文件,就在安装包里,解压后就能够看到,如下图

三个sql文件别离为MySQL,PostgreSQL,Oracle的数据库初始化sql脚本

我个别用MySQL数据库,所以就导入wgcloud-MySQL.sql文件,导入有多种形式,个别用数据库客户端工具导入就行,如果是mysql命令导入的话,如下

[root@vultr bin]# mysql -uroot -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 4

Server version: 5.7.24 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE wgcloud DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

Query OK, 1 row affected (0.01 sec)

mysql> use wgcloud;

Database changed

mysql> source /wgcloudTest/wgcloud-MySQL_v3.3.7.sql;

Query OK, 0 rows affected (0.01 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql>

这样,WGCLOUD的数据库就创立实现了,就能够失常运行程序了

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理