1. trackidea
  2. RO CSVI
  3. Tuesday, 22 March 2022
  4.  Subscribe via email
Hi,

in Virtuemart 3.8.8 after updating to version 8.20 of ROCSVI, when I try to export the data I get the following error:

SQLSTATE [HY000] [1045] Access denied for user 'example_user' @ '127.0.0.1' (using password: YES)

or

SQLSTATE [HY000] [1130] Host '127.0.0.1' is not allowed to connect to this MySQL server


the problem does not occur with ROCSVI version 7
the problem does not occur with import data

can you help me?
Many thanks.
Bye

----
Joomla 3.10.6
mysql 5.7
php 7.4
VirtueMart 3.8.8 10472
Accepted Answer Pending Moderation
Hello,

The exports use a new database driver because there was an issue running exports in Joomla 4. If you change the 127.0.0.1 to localhost in your database configuration, does the export run then?

Under the database type, do you see the PDO option there?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello,

The exports use a new database driver because there was an issue running exports in Joomla 4. If you change the 127.0.0.1 to localhost in your database configuration, does the export run then?

Under the database type, do you see the PDO option there?



Hi,

changing from 127.0.0.1 to Localhost the problem persists.
my provider allows me to connect to the Mysql database only with user "localhost"

this is my config in "PHP Information" section of my Joomla 3.10:

=============
PDO
=============
PDO support: enabled
PDO drivers: mysql, odbc, pgsql, sqlite

=============
pdo_mysql
=============
PDO Driver for MySQL: enabled
Client API version: mysqlnd 7.4.28

=============
pdo_mysql.default_socket
=============
Local Value: xxxxxx
Master Value: xxxxxx

=============
PDO_ODBC
=============
PDO Driver for ODBC (unixODBC): enabled
ODBC Connection Pooling: Enabled, strict matching

=============
pdo_pgsql
=============
PDO Driver for PostgreSQL: enabled
PostgreSQL(libpq) Version: 9.2.24

=============
pdo_sqlite
=============
PDO Driver for SQLite 3.x: enabled
SQLite Library: 3.7.17

=============
mysqlnd
mysqlnd enabled
Version mysqlnd 7.4.28
Compression supported
core SSL supported
extended SSL supported
Command buffer size 4096
Read buffer size 32768
Read timeout 86400
Collecting statistics Yes
Collecting memory statistics No
Tracing n/a
Loaded plugins mysqlnd, debug_trace, auth_plugin_mysql_native_password, auth_plugin_mysql_clear_password, auth_plugin_caching_sha2_password, auth_plugin_sha256_password
API Extensions mysqli, pdo_mysql


is there a solution to fix the problem?
Many thanks.
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,

So your information looks good, what surprises me is the error in general because the export uses the same credentials as Joomla uses to connect to the database. Could you post login details for the site and (S)FTP access? I will take a look to see what the issue is.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello,

So your information looks good, what surprises me is the error in general because the export uses the same credentials as Joomla uses to connect to the database. Could you post login details for the site and (S)FTP access? I will take a look to see what the issue is.


hi, for security reasons I cannot share access data to the site / ftp server.
We are talking about a site in production and not a test!

Tell me what to check and I'll provide you with updates.
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,

for security reasons I cannot share access data to the site / ftp server.
That is fine, just will take longer to figure things out.

We are talking about a site in production and not a test!
I did not assume you are talking about a test site.

Tell me what to check and I'll provide you with updates.
What details have you set for the database connection in the global settings (without the password)? If you use the MySQL PDO driver here, does that work?

my provider allows me to connect to the Mysql database only with user "localhost"
The error is not talking about the user but about the name of the server connecting to the database. The name localhost is an alias for 127.0.0.1.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
What details have you set for the database connection in the global settings (without the password)? If you use the MySQL PDO driver here, does that work?


you will find attached with the configurations of the database settings of my joomla 3.10.6 (they have never been modified)


mysql_joomla.jpg
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello,

So that looks OK, as expected because the site is running. However I did some testing and cannot reproduce the issue you see. Which is also logical as it completely depends on the server settings. What is happening is that MySQL is not accepting connections coming from 127.0.0.1 which is fine but I really do not understand why your MySQL server thinks we want to connect from 127.0.0.1. The credentials used are exactly the same as configured in Joomla.

Could your hosting provider explain why 127.0.0.1 is not allowed or why MySQL thinks why the connection is coming from 127.0.0.1. In my testing I see no difference and so far this is only the first report of such error.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello,

That issue is different because that user can connect to the database. In this issue the database connection is not even allowed. The other issue has already been resolved in the current release.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 9
Accepted Answer Pending Moderation
Hello,

So that looks OK, as expected because the site is running. However I did some testing and cannot reproduce the issue you see. Which is also logical as it completely depends on the server settings. What is happening is that MySQL is not accepting connections coming from 127.0.0.1 which is fine but I really do not understand why your MySQL server thinks we want to connect from 127.0.0.1. The credentials used are exactly the same as configured in Joomla.

Could your hosting provider explain why 127.0.0.1 is not allowed or why MySQL thinks why the connection is coming from 127.0.0.1. In my testing I see no difference and so far this is only the first report of such error.


I request a verification of the problem from my provider.

I keep you updated. Thank you all
  1. more than a month ago
  2. RO CSVI
  3. # 10
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!