当前位置:网站首页>宝塔面板新建数据库提示数据库名不能大于16位的解决方法
宝塔面板新建数据库提示数据库名不能大于16位的解决方法
2022-06-12 14:44:00 【李洋个人博客】
好久没写文章了,因为最近定制主题模板一直在忙主题的事,今天恰好遇到一个问题,在宝塔面板后台新建数据库的时候的提示“数据库名不能大于16位!”这是为什么呢?瞬间就愣住了,因为项目是迁移过来的,必须是这个数据库名称,否则得大批量的是修改,而且是关联站点,不是一个站,所以数据库名称还得是这个,没办法喽,有问题解决问题,只是不知道为什么会显示字符长短,可能出于其他问题考虑吧,宝塔提示效果如图:
利用phpmyadmin新建
既然不能在宝塔控制系统新建超长的数据库那么我们就安装phpmyadmin软件(宝塔一般默认安装),我们点击宝塔左侧菜单,数据库,然后找到顶部菜单“phpMyAdmin”,点击进去,如图:
进入数据库,点击顶部菜单的“数据库”,然后在下面菜单“新建数据库”新建刚刚字符超长的名称,然后右侧点击创建,如图:
对喽就是这么简单,曲线救国吧,哈哈新建完成后,我们不知道密码,这时我们返回宝塔面板系统,点击数据库,然后找到顶部菜单的“从服务器获取”按钮,如图:
这样我们就能同步数据库了,获取之后我们就可以操作修改密码,权限等信息了,一目了然,只是不能设置关联网站不过没有关系的,毕竟关不关联都一样,不影响使用。
在实际的操作过程中其他有很多种办法来解决字数限制,比如可以修改宝塔源代码程序,但是之所以没那么操作是因为害怕出现一些未知的错误,毕竟修改程序源代码要比这个复杂的多。好了教程结束,有问题留言反馈,继续潜水!
边栏推荐
- Crawler problem set (I) record
- 阿里建议所有 POJO 类属性使用包装类,但这些坑你有注意到吗?
- C常量,不能改变
- Can you believe it? It took me only two days to develop a management system
- [wechat applet] 6.1 applet configuration file
- And, or, not equal, operator
- Easygui query the company name in the document
- The igatewayloadbalancer interface implements routing. Otherwise, it follows Sid routing
- G++ error in compiling Win32 program: undefined reference to '__ imp_ GetStockObject‘
- Markdown edit
猜你喜欢
![[wechat applet] 2 Environmental preparation](/img/8d/7bb68ca7d10751a6e992a53c5eff4a.jpg)
[wechat applet] 2 Environmental preparation

Selenium advanced

阿里建议所有 POJO 类属性使用包装类,但这些坑你有注意到吗?

In C language, the main function calls another function, which is understood by assembly code

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

面向优化科学研究领域的软件包

selenium进阶

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

新技术:高效的自监督视觉预训练,局部遮挡再也不用担心!

Detailed explanation of C language memset
随机推荐
[wechat applet] 5 Applet structure directory
Process abstraction of program construction and interpretation
Easygui query the company name in the document
函数相关事项
Array one
JUnit exception, a method that asserts that the exception information is not empty
Module VIII
Autofac初学(1)
Huawei equipment is configured with H virtual private network
Webdriver opens in full screen and a prompt "Chrome is under the control of automatic test software" appears in Chrome
Mobileone: the mobile terminal only needs 1ms of high-performance backbone. You deserve it!
野指针理解
Reverse order of Excel
[lambda operation jcf]
The difference between parameter and argument in C language
selenium之元素定位
Writing method of JUnit multithreading
Appnium (I) basic use of appnium
程序构造和解释之第一章习题
[wp][入门]攻防世界-game