Jump to content

New installation issues with MySQL db connection


Recommended Posts

After successfully having done a prestashop install on a localhost, I am now trying my luck on my live site doing a brand new install to my hosting server (webhost4life.com).  

 

I'm going through the auto-install screens and I seem to be stuck on the Database Config screen.  I have setup a new Sql database, added that information along with server address, name, password, etc.  But when I click the "Test Database" button nothing happens at all.  It doesn't seem like its even refreshing the page or anything.  

 

I'm using v1.6.1.0 just downloaded yesterday.  I've also read about doing a php script to validate the Sql server address and I've created that and it seems to work without any error.  Any ideas?

 

Dave

Edited by Dave Zavelson (see edit history)
Link to comment
Share on other sites

Hi Dave,

 

Any error message showing on screen?

 

One solution is try connecting database using simple php script. This will helps to know credentials are working or not.

<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?> 

spacer.png

Edited by Zohaib-fk (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...