P
P
PhP_Raz2017-05-18 17:54:34
MODX
PhP_Raz, 2017-05-18 17:54:34

Gives an error when transferring the site!?

Hello.
There was a problem when transferring the site from local to hosting.
I uploaded the site archive to the hosting, created a database and imported everything from the local area into it.
Next, I unpacked the archive and changed the path in 4 config files: in the root and in the manager, connectors and core folders.
Also in the config file which in the core folder changed the database name, username and password to a new one.
I put the setup folder in the root, reached the step in the installation where you need to enter data about the database, click on "Check the connection to the database server and display a list of available mappings." an error pops up

Подключение к серверу базы данных:  
Could not connect to the database server. Check the connection properties and try again.

[2017-05-18 17:31:02] (ERROR in xPDOConnection::connect @ /home/n/.../.../public_html/core/xpdo/xpdo.class.php : 3116) SQLSTATE[HY000] [2019] Unknown character set 

[2017-05-18 17:31:02] (ERROR in xPDOConnection::connect @ /home/n/.../.../public_html/core/xpdo/xpdo.class.php : 3116) SQLSTATE[HY000] [2019] Unknown character set

What is the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2017-05-18
@PhP_Raz

update via /setup/ or clear the /core/cache/ directory there may be cached settings.

M
maksimkolosov, 2019-06-01
@maksimkolosov

I got the same error, clearing the cache folder didn't help. Set the username to root and the same as the database name. Any other ideas for solving the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question