简体   繁体   English

phpmyadmin没有显示添加的新列

[英]phpmyadmin is not showing added new column

在此处输入图片说明 I am working for the new project, when I added new column in phpmyadmin table its not displaying the name of it. 我正在为新项目工作,当我在phpmyadmin表中添加新列时,它不显示其名称。 Its showing blank space with the value written "NULL". 它显示空白,值写为“ NULL”。 I saw one post in stackoverflow with the same exactly problem. 我在stackoverflow中看到了一个帖子,也有同样的问题。

The accepted solution is ( phpMyAdmin doesn't show added columns ) 可接受的解决方案是( phpMyAdmin不显示添加的列

Export table as text (SQL dump)
Drop table
Restore table (with the SQL dump backup)

But its also working only some times and also this solution is not a professional way. 但是它也只能工作几次,而且这种解决方案也不是专业的方法。 There is any other way or is it the error in phpmyadmin. 还有其他方法,或者是phpmyadmin中的错误。

I only know of an ugly solution which worked for me. 我只知道一个对我有用的丑陋解决方案。

Export table then Drop table then Restore table 导出表然后删除表然后还原表

My table was displaying correctly in MySqlWorkbench. 我的表在MySqlWorkbench中正确显示。 It was also working with PhP code and DB queries were successful from PHP. 它还与PhP代码一起使用,并且从PHP成功进行了数据库查询。 So I was sure there is nothing wrong with design or DB or data. 因此,我确定设计,数据库或数据没有问题。

There might be better solutions out there. 可能会有更好的解决方案。

I had a similar problem. 我有一个类似的问题。 I went to the "Operations" tab and copied the table to another database, and then I could drop the original table and copy back, or just switch the code. 我转到“操作”选项卡,然后将表复制到另一个数据库,然后可以删除原始表并复制回去,或者只是切换代码。 I have my database connections all set with one variable, so changing the code is really easy for me personally. 我的数据库连接都设置了一个变量,因此个人更改代码真的很容易。 Hope it helps! 希望能帮助到你! (Posting this again, incase anybody else is having this problem, it really annoyed me.) (再次发布此消息,以防万一其他人遇到此问题,这真的让我很烦。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM