简体   繁体   中英

How Switch User And Backup A DataBase In MySql With Current User(Logged In User)?

i am using phpmyadmin for connecting to mysql.
my current user have some limitations for viewing all databases.
also i can not change the current user of phpmyadmin and login with admin user because i am in cpanel.
i have administrator user name and password.
which sql query should i use for switch to admin user and backup databases that that user can see?
also how can i download that sql file to my local machine?

UPDATE mysql.user SET Grant_priv='Y', Super_priv='Y' WHERE User='root';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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