当前位置:网站首页>宝塔面板新建数据库提示数据库名不能大于16位的解决方法
宝塔面板新建数据库提示数据库名不能大于16位的解决方法
2022-06-12 14:44:00 【李洋个人博客】
好久没写文章了,因为最近定制主题模板一直在忙主题的事,今天恰好遇到一个问题,在宝塔面板后台新建数据库的时候的提示“数据库名不能大于16位!”这是为什么呢?瞬间就愣住了,因为项目是迁移过来的,必须是这个数据库名称,否则得大批量的是修改,而且是关联站点,不是一个站,所以数据库名称还得是这个,没办法喽,有问题解决问题,只是不知道为什么会显示字符长短,可能出于其他问题考虑吧,宝塔提示效果如图:
利用phpmyadmin新建
既然不能在宝塔控制系统新建超长的数据库那么我们就安装phpmyadmin软件(宝塔一般默认安装),我们点击宝塔左侧菜单,数据库,然后找到顶部菜单“phpMyAdmin”,点击进去,如图:
进入数据库,点击顶部菜单的“数据库”,然后在下面菜单“新建数据库”新建刚刚字符超长的名称,然后右侧点击创建,如图:
对喽就是这么简单,曲线救国吧,哈哈新建完成后,我们不知道密码,这时我们返回宝塔面板系统,点击数据库,然后找到顶部菜单的“从服务器获取”按钮,如图:
这样我们就能同步数据库了,获取之后我们就可以操作修改密码,权限等信息了,一目了然,只是不能设置关联网站不过没有关系的,毕竟关不关联都一样,不影响使用。
在实际的操作过程中其他有很多种办法来解决字数限制,比如可以修改宝塔源代码程序,但是之所以没那么操作是因为害怕出现一些未知的错误,毕竟修改程序源代码要比这个复杂的多。好了教程结束,有问题留言反馈,继续潜水!
边栏推荐
猜你喜欢

Energy chain smart electronics landed on NASDAQ: Bain is the shareholder to become the first share of charging services in China
![[wechat applet] 1 Introduction to wechat applet](/img/7c/6e62269438a0dd7e7172cb37af9fb9.jpg)
[wechat applet] 1 Introduction to wechat applet

ADB command (2) use monkey to test

Appnium (I) basic use of appnium

Two methods of implementing asynchronous calling function with QT

数据的收集

MobileOne: 移动端仅需1ms的高性能骨干,你值得拥有!

Introduction to QT reflection mechanism and signal slot mechanism
![[wechat applet] 3 The first wechat applet](/img/40/1571c11363e72f5a1e932586a1f240.jpg)
[wechat applet] 3 The first wechat applet

webdriver入门
随机推荐
Huawei equipment is configured with H virtual private network
C secret arts script Chapter 5 (structure) (Section 1)
C 转义字符
Autofac初学(1)
新技术:高效的自监督视觉预训练,局部遮挡再也不用担心!
JUnit exception, a method that asserts that the exception information is not empty
Writing method of JUnit multithreading
PMP敏捷知识点
Autofac浅学(2)
你敢信?开发一个管理系统我只用了两天
华为设备配置H虚拟专用网
指针相关概念
Variable parameters
Ankai microelectronics rushes to the scientific innovation board: the annual revenue of 500million Xiaomi industry fund is the shareholder
Dataset and dataframe in sparksql
C常量,不能改变
Detailed explanation of C language memset
启明智显分享| 2.8寸手持中控屏应用方案
[ROC] aspriseocr C # English, Digital identification (not Chinese)
程序构造和解释之第一章习题