MySQL Forums
Forum List  »  PHP

Getting access denied when testing with known user
Posted by: Clive Gwyther
Date: February 12, 2022 12:16PM

Hi

I have moved a Database from a machine running apache 2.2 to a machine running Redhat7.9, mysql5.7 and apache 2.4.

What is on the new machine:
Redhat 7.9
Apache 2.4
Mysql 5.7
PHP 5.4.16

I have vhosts configured in the /etc/httpd/conf directory that points to /var/www/vhosts/<app name>/html

In the "login.php" file there is the following line:
<?php require_once('Connections/ic_test_connection.php'); ?>
<?php

The new version of apache does not utilise "Connections" in the same way as the old version and I have updated the script for mysqli and the login page appears. The problem appears when I try to login with a known user.... for some reason it is defaulting to apache@localhost and that user is not configured for the database access so it will fail.

I think part of the issue is this:

version mismatch. Headers:50564 Library:50651

My files are listed as:
Client API library version => 5.6.51
Client API header version => 5.5.64-MariaDB

I have no idea why MariaDB is there.

Anyone know a nice quick, easy way of fixing this issue please?

Options: ReplyQuote


Subject
Written By
Posted
Getting access denied when testing with known user
February 12, 2022 12:16PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.