What's happening in the first post is PHP 7 is installed, which no longer caries the old mysql module since PHP 7.0. It was on its way out when PHP 5 was released - So /backend/functions.php ~ line 57
function_exists("mysql_connect") or die("MySQL support not available.");
mysql_connect => removed in PHP 7. Replace with mysqli_connect to retain connection compatibility (assuming code is updated).
Looks to me like you set up a wildcard
% in place of a IP for your user. That typically, allows all connections locally (or remotely with bind-networking disabled), but due to different policies between database releases/versions, its best to use the servers IP, dynamic IP at home or Static if available. In this case, lets try..
Grant user privileges on localhost (PHP, client, CLI, etc):
GRANT ALL PRIVILEGES ON *.* TO ‘velvetunderground_bett'@'localhost’ IDENTIFIED BY 'YOUR-PASSWORD' WITH GRANT OPTION;
Now, set password to user:
SET PASSWORD FOR ‘velvetunderground_bett’@‘localhost’ = PASSWORD('YOUR-PASSWORD');
We are granting user and connection privileges for
tovelvetunderground_bett on
localhost.
If you want to use a IP, you perform the same two queries, replacing localhost with your IP. You can make a range if running from home, for example
192.168.0.%
That means, grant access to ALL users on that modem VPN, or whatever since their IP covers what is covered in that wildcard. In this case you want to comment out #bind-networking in
my.cnf