当前位置:网站首页>宝塔面板新建数据库提示数据库名不能大于16位的解决方法
宝塔面板新建数据库提示数据库名不能大于16位的解决方法
2022-06-12 14:44:00 【李洋个人博客】
好久没写文章了,因为最近定制主题模板一直在忙主题的事,今天恰好遇到一个问题,在宝塔面板后台新建数据库的时候的提示“数据库名不能大于16位!”这是为什么呢?瞬间就愣住了,因为项目是迁移过来的,必须是这个数据库名称,否则得大批量的是修改,而且是关联站点,不是一个站,所以数据库名称还得是这个,没办法喽,有问题解决问题,只是不知道为什么会显示字符长短,可能出于其他问题考虑吧,宝塔提示效果如图:
利用phpmyadmin新建
既然不能在宝塔控制系统新建超长的数据库那么我们就安装phpmyadmin软件(宝塔一般默认安装),我们点击宝塔左侧菜单,数据库,然后找到顶部菜单“phpMyAdmin”,点击进去,如图:
进入数据库,点击顶部菜单的“数据库”,然后在下面菜单“新建数据库”新建刚刚字符超长的名称,然后右侧点击创建,如图:
对喽就是这么简单,曲线救国吧,哈哈新建完成后,我们不知道密码,这时我们返回宝塔面板系统,点击数据库,然后找到顶部菜单的“从服务器获取”按钮,如图:
这样我们就能同步数据库了,获取之后我们就可以操作修改密码,权限等信息了,一目了然,只是不能设置关联网站不过没有关系的,毕竟关不关联都一样,不影响使用。
在实际的操作过程中其他有很多种办法来解决字数限制,比如可以修改宝塔源代码程序,但是之所以没那么操作是因为害怕出现一些未知的错误,毕竟修改程序源代码要比这个复杂的多。好了教程结束,有问题留言反馈,继续潜水!
边栏推荐
- [wechat applet] 4 Introduction to wechat developer tools
- 【OCR】AspriseOCR C# 英文、数字识别(中文不行)
- Common assertions in JUnit testing
- [wp][入门]攻防世界-game
- selenium-webdriver之断言
- [MySQL] basic database operation
- C secret arts script Chapter 5 (structure) (Section 1)
- QT to realize the simple use of SQLite database
- Huawei equipment is configured with H virtual private network
- QT link error: undefined reference to VTable for "XXX“
猜你喜欢
Selenium advanced
Mobileone: the mobile terminal only needs 1ms of high-performance backbone. You deserve it!
左对齐,右对齐,随机数,goto,比较输出bool
【OCR】AspriseOCR C# 英文、数字识别(中文不行)
启明智显分享| 2.8寸手持中控屏应用方案
jenkins相关
C secret arts script Chapter 5 (paragraph) (Section 3)
Reverse the encryption parameters of a hot water software
Junit多线程的写法
selenium-webdriver之断言
随机推荐
Basic usage of scanner
QT realize picture dragging
New technology: efficient self-monitoring visual pre training, local occlusion no longer need to worry!
NETCORE combined with cap event bus to realize distributed transaction - message (2)
Element positioning of selenium
[MySQL] basic database operation
[gatewaysessioninactiveevent event] 1 Connect your own client disconnect
掌门教育被强制退市:上市仅一年时间 软银CMC损失惨重
ADB command (2) use monkey to test
Machine learning learning notes
JD scanning code to obtain cookies
Unit test (I) unit test with JUnit
C secret script Chapter 3 (detailed explanation of string function) (Section 2)
MAT的安装和使用
JS (II) syntaxerror: cannot use import statement outside a module
ADSL
【Calendar】1. For globalization 2 But only date can be formatted by SDF 3 Month to -1 4 Week from Sunday is the first day
sql跨库注入
Process abstraction of program construction and interpretation
面向优化科学研究领域的软件包