Phpmyadmin export VIEW without DATABASE_NAME or ALGORITHM(Phpmyadmin 导出 VIEW 没有 DATABASE_NAME 或 ALGORITHM)
问题描述
当使用 phpmyadmin 导出 sql 转储时,它会像这样创建 VIEW 表:
When exporting a sql dump with phpmyadmin it creates the VIEW table like this:
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER
VIEW `database`.`table` etc..
每次我必须手动编辑 sql 转储以删除 root 用户和 database 名称.
Each time I have to manually edit the sql dump to remove the root user and database name.
推荐答案
虽然只用了 8 年,但 phpmyadmin 现在包含一个选项来防止这个问题:-
It's only taken 8 years but phpmyadmin now includes an option to prevent this issue:-
排除当前用户的定义
这出现在 CREATE VIEW 部分下,选择它,您将获得一个正常工作的摘录.
This appears under the CREATE VIEW section, select this and you will get a properly working extract.
这篇关于Phpmyadmin 导出 VIEW 没有 DATABASE_NAME 或 ALGORITHM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Phpmyadmin 导出 VIEW 没有 DATABASE_NAME 或 ALGORITHM
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- PHP - if 语句中的倒序 2021-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
