Hi - please can someone help me? I am trying to install OpenCart for the first time and downloaded the latest version last Friday.
My collegue has set me up an SQL Database and i have followed all of the steps on the installation guide. the problem is that when i enter my SQL details i am told that it can't connect to the database. I am assured that all of my details are correct and there are no issues wiht the user name or password or anything. Does open Cart work with My SQL 5? i only have one option when selecting the Database Driver and that is just MySQL.
Help?
Thanks
Charlie
My collegue has set me up an SQL Database and i have followed all of the steps on the installation guide. the problem is that when i enter my SQL details i am told that it can't connect to the database. I am assured that all of my details are correct and there are no issues wiht the user name or password or anything. Does open Cart work with My SQL 5? i only have one option when selecting the Database Driver and that is just MySQL.
Help?
Thanks
Charlie
Copy and paste this into notepad:
Edit it to replace the parameters for the connection with your real connection details and save it as test.php.
Upload that to your server and visit the page - if it produces an error instead of saying "Connected", show the error to your friend or post back here.
Code: Select all
<?php
$mysqli_connection = new MySQLi('localhost', 'user', 'pass', 'db');
if ($mysqli_connection->connect_error) {
echo "Not connected, error: " . $mysqli_connection->connect_error;
}
else {
echo "Connected.";
}
Upload that to your server and visit the page - if it produces an error instead of saying "Connected", show the error to your friend or post back here.
Assuming you're looking at the address you uploaded the file to, you're doing the right thing.
It may be being affected by a htaccess file (although that seems unlikely given that you've only just started)?
Try putting test.php in its own folder at the same level or above the opencart folder.
Is the 'page not found' message within OpenCart or is it coming from apache/iis?
It may be being affected by a htaccess file (although that seems unlikely given that you've only just started)?
Try putting test.php in its own folder at the same level or above the opencart folder.
Is the 'page not found' message within OpenCart or is it coming from apache/iis?
hello , i have a same problem , but i am not sure what "error" is ,so i put it here in SQL Database Error
i use Mac and MAMP
when i install the opencart as localhost , all working fine , but when i try to access my opencart from other pc in my network the shop not working properly , so i think to make a new install from my "client" pc
my mac have 192.168.1.94 , so from my client i give the 192.168.1.94:8888 i connect to opencart install , and in the step_3 , when i give the database name , user/pass , i receive error that i have error "could not connect to the database ...."
i use as database host the 192.168.1.94
i have create the database myeshop .. i give the right user/pass ... BUT nothing ..
i try phpmyadmin from my client and work perfect (i create table , i put data ... all work) ...
as anyone know what can i do ?
thank you
i use Mac and MAMP
when i install the opencart as localhost , all working fine , but when i try to access my opencart from other pc in my network the shop not working properly , so i think to make a new install from my "client" pc
my mac have 192.168.1.94 , so from my client i give the 192.168.1.94:8888 i connect to opencart install , and in the step_3 , when i give the database name , user/pass , i receive error that i have error "could not connect to the database ...."
i use as database host the 192.168.1.94
i have create the database myeshop .. i give the right user/pass ... BUT nothing ..
i try phpmyadmin from my client and work perfect (i create table , i put data ... all work) ...
as anyone know what can i do ?
thank you
Who is online
Users browsing this forum: No registered users and 30 guests