Closed daitepiva closed 1 year ago
If you're using mysqldump
to export, you can try adding the --skip-definer
option to export the database which may resolve the issue. Otherwise, I would try removing the DEFINER=pro@localhost SQL SECURITY DEFINER
lines from the exported file and import that modified file.
If you're using
mysqldump
to export, you can try adding the--skip-definer
option to export the database which may resolve the issue. Otherwise, I would try removing theDEFINER=pro@localhost SQL SECURITY DEFINER
lines from the exported file and import that modified file.
mysqldump: unknown option '--skip-definer'
I removed all lines with "DEFINER=..." and then my dump was imported w/o errors. Now my site looks good. Thank you :-)
I'm moving my site to another hosting but I can't copy my old DB because of VIEW tables in MySQL. I created dump of my old DB and imported it by phpMyAdmin but I got an error message: /!50001 CREATE ALGORITHM=UNDEFINED / /!50013 DEFINER=
pro
@localhost
SQL SECURITY DEFINER / /!50001 VIEWissue_comment_detail
AS (selectc
.id
ASid
,c
.issue_id
ASissue_id
,c
.user_id
ASuser_id
,c
.text
AStext
,c
.file_id
ASfile_id
,c
.created_date
AScreated_date
,u
.username
ASuser_username
,u
.email
ASuser_email
,u
.name
ASuser_name
,u
.role
ASuser_role
,u
.task_color
ASuser_task_color
,f
.filename
ASfile_filename
,f
.filesize
ASfile_filesize
,f
.content_type
ASfile_content_type
,f
.downloads
ASfile_downloads
,f
.created_date
ASfile_created_date
,f
.deleted_date
ASfile_deleted_date
,i
.deleted_date
ASissue_deleted_date
from (((issue_comment
c
joinuser
u
on((c
.user_id
=u
.id
))) left joinissue_file
f
on((c
.file_id
=f
.id
))) joinissue
i
on((i
.id
=c
.issue_id
)))) / MySQL said: 1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation
I created this VIEW manually but my site is empty. So how should I copy my DB from one hosting to another?