i'm using OpenCart v1.4
When i fill :
*Database Host:
*User:
Password:
*Database Name:
*Username:
*Password:
on step 3 and press continue this error apears "Error: Could not connect to the database please make sure the database server, username and password is correct!"
How to correct this error ?
( I'm sorry for the bad english )
You English looks OK to meico88 wrote:Hello all,
on step 3 and press continue this error apears "Error: Could not connect to the database please make sure the database server, username and password is correct!"
How to correct this error ?
( I'm sorry for the bad english )

The error you get is because the info you used is incorrect.
Maybe ask your hoster for the crorrect names and passwords.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Have your hoster look at this.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Code: Select all
<?php
phpinfo();
?>
See if there is a MySQL division and if it is enabled.
If not then contact your provider.
For modelcars cars see my OC 3.0.2.0 shop: http://www.gbcars.nl/
For Wooden Toys see my 2.3.0.2 shop: https://www.dehoutentreinenwinkel.nl/
Ok random one here - when I ran that phpinfo file (just note I have cleared OC off the web host before I ran it but not uninstalled phpmyadmin) I get the following:Gerrit wrote:Create a phpinfo page with the the following code:
Save it as phpinfo.php, upload this and run it from your browser.Code: Select all
<?php phpinfo(); ?>
See if there is a MySQL division and if it is enabled.
If not then contact your provider.
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/fhlinux007/m/moonstoneyarns.co.uk/user/htdocs/phpinfo.php on line 8
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/fhlinux007/m/moonstoneyarns.co.uk/user/htdocs/phpinfo.php on line 9
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/fhlinux007/m/moonstoneyarns.co.uk/user/htdocs/phpinfo.php on line 9
Parse error: syntax error, unexpected T_STRING in /home/fhlinux007/m/moonstoneyarns.co.uk/user/htdocs/phpinfo.php on line 9
Which is even more interesting given that the file is only 3 lines long!!!!!
Created with an editor like pspad?
As it looks like the format of the file/characters used is incorrect.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Looks like the MySQL is installed but on a shared host... could that be something to do with it (whilst I have worked with SQl before this is my first time on php/mysql server) so have got the following info (only entries featuring mysql included here):
Ok I have gotten through most of my woes and imported the database successfully (at last!) but have come round again with Error: Could not connect to database ... aargh! and i thought that I was doing so well!
I have checked the two config files, phpmyadmin and the host interface and the password is the same throughout. When i run the fasthosts test script it connects ok, so no problems there.
The database is imported, populated and contains all of the localhost data, but I forgot to drop tables before doing it in my excitement.. could that be it?
Great news!jontorbs wrote:Sorted! Site is now up, running, modded template in place and ready to start content loading for testing! Phew! Only one day to spare!
Thanks once again for your help everyone!
What did you do to solve it?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Users browsing this forum: No registered users and 14 guests