MySql设计器中的关系问题
通常,我对 MySQL 的 PHPmyadmin 设计器创建引用完整性关系没有任何问题。
突然间,我的浏览器窗口中加载了 99%,并且弹出了 php.ini。
复制;
- 选择一个数据库。
- 选择设计师。
- 选择“设置关系”
- 选择主键
- 选择相应的外键
- 批准确认
预期结果;(以及我通常得到的结果)
关系已设置。 连接两个键的线。
实际结果
- 右上角出现绿色标签“Loading 99%”。
- 弹出第二个窗口
http://localhost/phpmyadmin/pmd_general.php?db=jobhunt&server=1&token=d8235.....
- 关系不发生。
还有其他人得到这个吗?
Normally I have no issue with MySQL's PHPmyadmin designer to create referential integrity relations.
All of a sudden, I now get a 99% Loading in my browser window, and a popup php.
Reproduce;
- Select a database.
- Select designer.
- Select 'Set Relation'
- Select a primary key
- Select a coresponding foriegn key
- Approve confirmation
Expected results; (and what I usually get)
A relationship is setup.
A line connecting two keys.
Actual results;
- a green label "Loading 99%" appears in upper right corner.
- a second window pops up
http://localhost/phpmyadmin/pmd_general.php?db=jobhunt&server=1&token=d8235.....
- Relationship does not occur.
Is anyone else getting this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
是的,这也发生在我身上。我在这里做了一些尝试,发现出现空白弹出的错误是因为我试图与没有设置索引的外键建立关系。
为将来的外键列创建一个索引,这可能会解决。
请注意,当您尝试在没有索引的情况下建立关系时,出现的确认框只有“确定”和“取消”按钮,而当您已经有索引时,它允许您设置删除和删除的行为更新时。
Yep, it was happening with me too. I've made some attempts here and discovered that the error of the blank pop-up occurs because I was trying to make a relationship with a foreign key that has no index set up.
Create an index for the future foreign key column and that may resolve.
Pay attention that when you try to make the relation without the index, the confirm box that appears has just a "Ok" and "Cancel" button, while when you already have the index, it permits you to set up the behaviors on delete and on update.
[已解决] 只需更新浏览器的 Java for Windows 插件(Firefox、Chrome...)
转到 Java 站点并更新 Java Firefox 插件。
另一种解决方案是安装并使用 SQLyog;
[Solved] Just update Java for Windows plugin for your browser (Firefox, Chrome...)
Go to Java site and update Java Firefox plugin.
One more solution is install and use SQLyog;
虽然我仍然不知道为什么界面决定中断,但添加 Forien Key 效果很好。
While I still do not know why the interface decided to break but an add Forien Key works fine.
这个方法对我有用:
1. 选择表并单击操作。
2. 将表选项中的存储引擎更改为InnoDB。
3. 点击“开始”按钮。
现在,您可以通过在列上添加 INDEX 来添加外键。
This method works for me:
1. Select table and click on Operations.
2. Change Storage Engine in table option to InnoDB.
3. Hit "Go" button.
Now, you can add foreign key by adding INDEX on column.