
Originally Posted by
codegirl42
any advice on how to execute this script?
SSH into the server as the root user, then type the command exactly as listed above and press enter/return. Make sure you're doing this as root.
Most of the time the error in this thread is due to bad access credentials. It's likely that the user trying to access MySQL is not granted privileges to access the specific database you are trying to connect to.
Usually the following commands will fix this when logged into SSH as the cPanel user:
Code:
#mysql -u cpuser -p
#GRANT ALL on databasename.* TO 'user'@'hostname' IDENTIFIED BY 'password';
You need to replace the following variables:
cpuser - your cPanel username
databasename - name of the Joomla database
user - username to access the Joomla database (in Joomla configuration file)
hostname - typically 'localhost' unless MySQL is running on a remote server, if it is, the hostname of that remote server
password - password for user