take root permission for user in linux code example
Example 1: how to change permissions on a file in linux
sudo chmod -R ugo+rwx /file/path
Example 2: how to connect to the database as root user in linux
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';