Failed to connect to database, [SQLSTATE] 1045

26 views
Skip to first unread message

james.w...@h2ope.co.nz

unread,
May 6, 2015, 1:17:35 AM5/6/15
to uf...@googlegroups.com
First up, awesome user system, works a treat on my wamp localhost

however I have moved it to my server and now it will not connect. 

questions
do I need to install with composer or can I just ftp all the working files up to my server. 
I can connect phpMyAdmin and with 3rd party mySQLyog to my database. 
i'm using the same config in setting up user 


<?php
include("../vendor/ptejada/uflex/autoload.php");

$user = new ptejada\uFlex\User();
        $user->config->database->update(array(
'host'     => 'localhost',
'user'     => 'checkz',
'Password' => '[removed but using the same as set up]',
'name'     => 'checkz', // Database name
));
$user->start();

 ?>

I have configured my php.ini file for the PDO .dll files 

extension=php_pdo.dll
extension=php_pdo_mysql.dll

what am I missing why does this work so smoothly on my localhost but will not connect to the database on my server? 

Reply all
Reply to author
Forward
0 new messages