当前位置:网站首页>宝塔面板新建数据库提示数据库名不能大于16位的解决方法
宝塔面板新建数据库提示数据库名不能大于16位的解决方法
2022-06-12 14:44:00 【李洋个人博客】
好久没写文章了,因为最近定制主题模板一直在忙主题的事,今天恰好遇到一个问题,在宝塔面板后台新建数据库的时候的提示“数据库名不能大于16位!”这是为什么呢?瞬间就愣住了,因为项目是迁移过来的,必须是这个数据库名称,否则得大批量的是修改,而且是关联站点,不是一个站,所以数据库名称还得是这个,没办法喽,有问题解决问题,只是不知道为什么会显示字符长短,可能出于其他问题考虑吧,宝塔提示效果如图:
利用phpmyadmin新建
既然不能在宝塔控制系统新建超长的数据库那么我们就安装phpmyadmin软件(宝塔一般默认安装),我们点击宝塔左侧菜单,数据库,然后找到顶部菜单“phpMyAdmin”,点击进去,如图:
进入数据库,点击顶部菜单的“数据库”,然后在下面菜单“新建数据库”新建刚刚字符超长的名称,然后右侧点击创建,如图:
对喽就是这么简单,曲线救国吧,哈哈新建完成后,我们不知道密码,这时我们返回宝塔面板系统,点击数据库,然后找到顶部菜单的“从服务器获取”按钮,如图:
这样我们就能同步数据库了,获取之后我们就可以操作修改密码,权限等信息了,一目了然,只是不能设置关联网站不过没有关系的,毕竟关不关联都一样,不影响使用。
在实际的操作过程中其他有很多种办法来解决字数限制,比如可以修改宝塔源代码程序,但是之所以没那么操作是因为害怕出现一些未知的错误,毕竟修改程序源代码要比这个复杂的多。好了教程结束,有问题留言反馈,继续潜水!
边栏推荐
- 掌门教育被强制退市:上市仅一年时间 软银CMC损失惨重
- [Writeup]BUU SQL COURSE1[入门级]
- En langage C, la fonction principale appelle une autre fonction et assemble le Code pour comprendre
- 结构体示例
- Raspberry pie get temperature and send pictures to email
- 三维重建系统 | L3增量运动恢复结构(增量SFM)
- And, or, not equal, operator
- G++ error in compiling Win32 program: undefined reference to '__ imp_ GetStockObject‘
- Two methods of implementing asynchronous calling function with QT
- Thinking: what is asynchrony and thread safety
猜你喜欢

【LDA】LDA主题模型笔记—主要是狄利克雷

工业机械臂(机器人)视觉定位引导系统

三维重建系统 | L3增量运动恢复结构(增量SFM)

野指针理解

我愿称之为史上最全的深度学习面经总结(附答案详解)

PMP agile knowledge points

Assertion of selenium webdriver

你敢信?开发一个管理系统我只用了两天

三维重建系统 | L3双视角运动恢复结构(SFM双目SFM)

Leader education was forced to be delisted: Softbank CMC suffered heavy losses only one year after listing
随机推荐
Appnium (I) basic use of appnium
QT database realizes page turning function
NetCore结合CAP事件总线实现分布式事务——入门(1)
Dataset and dataframe in sparksql
Selenium advanced
Tensorrt based in-depth learning model deployment practice tutorial!
【Optional】1. Map and ifpresent 2 Ofnullable and orelse
Two months' experience in C language
Reverse the encryption parameters of a hot water software
Energy chain smart electronics landed on NASDAQ: Bain is the shareholder to become the first share of charging services in China
Xshell (I) is missing mfc110u DLL file resolution
C secret arts script Chapter 5 (paragraph) (Section 3)
【LDA】基础知识笔记——主要是AE、VAE
QT to realize the simple use of SQLite database
Common assertions in JUnit testing
启明智显分享| 2.8寸手持中控屏应用方案
C secret arts script Chapter 2 (detailed explanation of pointer) (Section 1)
G++ error in compiling Win32 program: undefined reference to '__ imp_ GetStockObject‘
工业机械臂(机器人)视觉定位引导系统
C secret arts script Chapter 2 (detailed explanation of pointers) (Section 3)