Teodor;
Let me explain to you what I have done. I fully developed the website on my local machine. All the web pages were built with a connection labeled ‘connection1’. When they were built the Target Name was ‘knights_data’. The pages were tested thoroughly and everything worked fine.
I just selected local on the targets menu and built the server connection for my machine with the Use Direct Connection selected and click on the Direct Database Connection button. Here is the screen copy of
Next I pointer the Target to knights_data (the name of the database). I changed the settings by unselecting the User Direct Connection button and then clicking the Server Connect Connection. Completed the screen below as the picture below shows.
Both connections were tested with the Test button and both worked fine. When I try the website on my machine I get
ile: “C:\xampp\htdocs\nights\dmxConnectLib\lib\db\Connection.php”`
line: 99
message: "SQLSTATE[HY000] [1045] Access denied for user ‘knight91_database’@‘localhost’ (using password: YES)"
**trace: "#0 C:\xampp\htdocs\knights\dmxConnectLib\lib\db\Connection.php(99): PDO->__construct(‘mysql:host=loca…’, ‘knight91_databa…’, ‘W.2PoHeA-1BJ’, Array)****↵#1 C:\xampp\htdocs\knights\dmxConnectLib\modules\dbconnector.php(12): lib\db\Connection->__construct(Object(lib\App), Object(stdClass), ‘connection1’)****↵#2 C:\xampp\htdocs\knights\dmxConnectLib\lib\App.php(193): modules\dbconnector->connect(Object(stdClass), ‘connection1’)****↵#3 C:\xampp\htdocs\knights\dmxConnectLib\lib\App.php(157): lib\App->execSteps(Object(stdClass))****↵#4 C:\xampp\htdocs\knights\dmxConnectLib\lib\App.php(127): lib\App->execSteps(Array)****↵#5 C:\xampp\htdocs\knights\dmxConnectLib\lib\App.php(116): lib\App->exec(Object(stdClass), false)****↵#6 C:\xampp\htdocs\knights\dmxConnectLib\lib\App.php(94): lib\App->exec(Object(stdClass))****↵#7 C:\xampp\htdocs\knights\dmxConnect\api\BE_act\login\log_in_action.php(8): lib\App->define(Object(stdClass))**↵#8 {main}"
Then when tested online I get the following
- code: 1045
I tried to run a trail on both instances.
Please let me know if you need any additional information.
Thanks;
jim