PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 12, 2022

[FIXED] Phpmyadmin export VIEW without DATABASE_NAME or ALGORITHM

 January 12, 2022     mysql, php, phpmyadmin     No comments   

Issue

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..

Each time I have to manually edit the sql dump to remove the root user and database name.


Solution

It's only taken 8 years but phpmyadmin now includes an option to prevent this issue:-

Exclude definition of current user

This appears under the CREATE VIEW section, select this and you will get a properly working extract.



Answered By - Alan Dev
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing