当前位置:网站首页>宝塔面板新建数据库提示数据库名不能大于16位的解决方法
宝塔面板新建数据库提示数据库名不能大于16位的解决方法
2022-06-12 14:44:00 【李洋个人博客】
好久没写文章了,因为最近定制主题模板一直在忙主题的事,今天恰好遇到一个问题,在宝塔面板后台新建数据库的时候的提示“数据库名不能大于16位!”这是为什么呢?瞬间就愣住了,因为项目是迁移过来的,必须是这个数据库名称,否则得大批量的是修改,而且是关联站点,不是一个站,所以数据库名称还得是这个,没办法喽,有问题解决问题,只是不知道为什么会显示字符长短,可能出于其他问题考虑吧,宝塔提示效果如图:
利用phpmyadmin新建
既然不能在宝塔控制系统新建超长的数据库那么我们就安装phpmyadmin软件(宝塔一般默认安装),我们点击宝塔左侧菜单,数据库,然后找到顶部菜单“phpMyAdmin”,点击进去,如图:
进入数据库,点击顶部菜单的“数据库”,然后在下面菜单“新建数据库”新建刚刚字符超长的名称,然后右侧点击创建,如图:
对喽就是这么简单,曲线救国吧,哈哈新建完成后,我们不知道密码,这时我们返回宝塔面板系统,点击数据库,然后找到顶部菜单的“从服务器获取”按钮,如图:
这样我们就能同步数据库了,获取之后我们就可以操作修改密码,权限等信息了,一目了然,只是不能设置关联网站不过没有关系的,毕竟关不关联都一样,不影响使用。
在实际的操作过程中其他有很多种办法来解决字数限制,比如可以修改宝塔源代码程序,但是之所以没那么操作是因为害怕出现一些未知的错误,毕竟修改程序源代码要比这个复杂的多。好了教程结束,有问题留言反馈,继续潜水!
边栏推荐
- Data collection
- C secret arts script Chapter 2 (detailed explanation of pointers) (Section 3)
- And, or, not equal, operator
- Junit测试中常用的断言
- PMP敏捷知识点
- Two months' experience in C language
- 左对齐,右对齐,随机数,goto,比较输出bool
- Process abstraction of program construction and interpretation
- Jetpack架构组件学习(3)——Activity Results API使用
- Simple code implementation of addition, subtraction, multiplication and division calculator
猜你喜欢

结构体示例

Mobileone: the mobile terminal only needs 1ms of high-performance backbone. You deserve it!

Data collection

C 字符串

JUnit test suite method sorting (method 2 is not easy to use)

jenkins相关

Tu oses le croire? Il m'a fallu deux jours pour développer un système de gestion.

Location (I) error: command erred out with exit status

函数递归示例

启明智显分享| 2.8寸手持中控屏应用方案
随机推荐
指针相关概念
Mobileone: the mobile terminal only needs 1ms of high-performance backbone. You deserve it!
String concatenation and ternary operators
【OCR】AspriseOCR C# 英文、数字识别(中文不行)
【OCR】AspriseOCR C# 英文、數字識別(中文不行)
The igatewayloadbalancer interface implements routing. Otherwise, it follows Sid routing
华为设备配置OSPF伪连接
【SimpleDateFormat】1. Conversion of date type and text type 2 Thread unsafe
【LDA】基础知识笔记——主要是AE、VAE
Tensorrt based in-depth learning model deployment practice tutorial!
[Writeup]BUU SQL COURSE1[入门级]
Serialization and deserialization mechanism in terms of games
Detailed explanation of factory pattern (simple factory pattern, factory method pattern, abstract factory pattern) Scala code demonstration
[wechat applet] 3 The first wechat applet
QT link error: undefined reference to VTable for "XXX“
Writing method of JUnit multithreading
Simple code implementation of addition, subtraction, multiplication and division calculator
Variable parameters
启明智显分享| 2.8寸手持中控屏应用方案
C常量,不能改变