dthh5038 2018-09-21 22:41
浏览 127

mySQL数据库表有2个不同的前缀,给我数据库连接问题

I was working on a site, and restored a database and file back-up, and I am getting the "Error Establishing a Database Connection".

When I check the mySQL database, half of the tables are running a 'wsd_' prefix, while the other files are running 'ahc_'.

wp-config currently has $table_prefix: 'wsd_'

Is there any way to tell the wp-config file to look for both "wsd_" and "ahc_"?

Sorry ahead of time, as I'm still new to mySQL.

  • 写回答

1条回答 默认 最新

  • dsfdsfdsfdsf1223 2018-09-22 00:32
    关注

    The most easiest and reliable method is to export your whole database. Then open database in the notepade or any editor software specially if you have notepad++ or dreamweaver.

    Keep one prefix. Suppose you want to keep "ahc_" then find all "wsd_" and replace with "ahc_"

    Save the file. Now import that file to your database. All prefix will be same :)

    评论

报告相同问题?

悬赏问题

  • ¥15 各位请问平行检验趋势图这样要怎么调整?说标准差差异太大了
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 wpf界面一直接收PLC给过来的信号,导致UI界面操作起来会卡顿
  • ¥15 init i2c:2 freq:100000[MAIXPY]: find ov2640[MAIXPY]: find ov sensor是main文件哪里有问题吗
  • ¥15 运动想象脑电信号数据集.vhdr
  • ¥15 三因素重复测量数据R语句编写,不存在交互作用
  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab