I have already installed LAMP in my Ubuntu 18.10 server. I have also downloaded Drupal 7 files. But after I navigate to http://10.0.34.74/drupal-7.65/ in my browser. The error below occurs:
Error The website encountered an unexpected error. Please try again later. PDOException: SQLSTATE[HY000]  Connection refused in lock_may_be_available() (line 167 of /var/www/html/drupal-7.65/includes/lock.inc).
Below are the configuration settings I edited in my settings.php file :
$databases = array ( 'default' => array ( 'default' => array ( 'database' => 'pizzago', 'username' => 'root', 'password' => '1234', 'host' => '10.0.34.74', 'port' => '', 'driver' => 'mysql', 'prefix' => '', ), ), );
Do I have to put something on the port? I have make sure that MySQL is running. Actually I have log in on it using:
MySQL -u root -p
I have also created an empty database named pizzago. Where am I missing?
The password above is not true.
When I tried changing database host to localhost, since my database is just within the server. Another error occurs:
PDOException: SQLSTATE[HY000]  Access denied for user 'root'@'localhost' in lock_may_be_available() (line 167 of /var/www/html/drupal-7.65/includes/lock.inc).