创建数据库
<p class="shortdesc">本文主要介绍如何创建数据库。</p>
<section class="section prereq" id="Create_Database__prereq_f1d_xbw_2tb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div>
<p class="p">您已成功创建常规实例,可参考<a class="xref" href="/ssr/help/database/MySQL/Guide.IM.CIns.CCom" target="_blank" rel="external noopener">创建常规实例</a>。</p>
</section>
<section class="section context"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div>
<p class="p">成功创建MySQL实例后,您可以在RDS-MySQL管理控制台上手动创建数据库,一个实例可以创建一个或多个数据库。</p>
</section>
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand">
<span class="ph cmd">以资源组管理员身份登录<a class="xref" href="https://www.ocftcloud.com/console/rds/mysql" target="_blank" rel="external noopener">RDS-MySQL管理控制台</a>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击左侧导航栏<span class="ph uicontrol">RDS-MySQL</span>,进入<span class="ph uicontrol">云数据库管理</span>页面。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">选择目标地域。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击目标实例<span class="ph uicontrol">操作</span>列的<span class="ph uicontrol">管理</span>,选择<span class="ph uicontrol">数据库管理</span>页签。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击页面右上角<span class="ph uicontrol">创建数据库</span>,进入<span class="ph uicontrol">创建数据库</span>页面。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">根据以下信息,创建数据库。</span>
<div class="itemgroup info">
<table class="table"><caption></caption><colgroup><col><col></colgroup><thead class="thead">
<tr class="row">
<th class="entry colsep-1 rowsep-1" id="Create_Database__entry__1">
<p class="p"> 配置项 </p>
</th>
<th class="entry colsep-1 rowsep-1" id="Create_Database__entry__2">
<p class="p"> 说明 </p>
</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="Create_Database__entry__1 ">
<p class="p"> 数据库名称 </p>
</td>
<td class="entry colsep-1 rowsep-1" headers="Create_Database__entry__2 ">
<p class="p">创建的数据库名称。</p>
<div class="note note note_note" id="Create_Database__note_rvd_w51_3sb"><span class="note__title">说明:</span>
<ol class="ol" type="a" id="Create_Database__ol_wtc_gt2_hsb">
<li class="li">数据库名称长度为2~64个字符。</li>
<li class="li">可包含小写字母、下划线_、或数字。</li>
<li class="li">首字符需为小写字母,最后一个字符需为小写字母或数字。</li>
</ol>
</div>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="Create_Database__entry__1 ">
<p class="p"> 支持的字符集 </p>
</td>
<td class="entry colsep-1 rowsep-1" headers="Create_Database__entry__2 ">
<p class="p">目前支持:</p>
<ul class="ul" id="Create_Database__ul_fyh_w51_3sb">
<li class="li">utf8</li>
<li class="li">gbk</li>
<li class="li">latin1</li>
<li class="li">utf8mb4。</li>
</ul>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="Create_Database__entry__1 ">
<p class="p"> 描述 </p>
</td>
<td class="entry colsep-1 rowsep-1" headers="Create_Database__entry__2 ">
<p class="p">数据库的相关备注信息,便于后续统一管理。</p>
<div class="note note note_note" id="Create_Database__note_zrl_w51_3sb"><span class="note__title">说明:</span>
<ol class="ol" type="a" id="Create_Database__ol_ofp_lt2_hsb">
<li class="li">备注信息为0~50个字符。</li>
<li class="li">可包含中文、英文、下划线_、中划线-、特殊字符@或数字。</li>
</ol>
</div>
</td>
</tr>
</tbody></table>
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">单击<span class="ph uicontrol">确认</span>。</span>
</li></ol></section>
<section class="section result"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p">在<span class="ph uicontrol">数据库管理</span>页面,可以看到刚刚创建的目标数据库,且<span class="ph uicontrol">状态</span>由<span class="ph uicontrol">创建中</span>显示为<span class="ph uicontrol">可用</span>。</p>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!