how to connect to a live server with viewen





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am trying to get my website on a live server with viewen but for some reason, I have the following errors. I am not sure why the errors occurred because I have uploaded all the files to the same public_html folder. The only assistance I had from them was to create a new database, which I did and below is my credentials: I am not sure if my dbh.php is set up correctly:



<?php

$dbservername = "localhost";
$dbroot = "root";
$dbpassword = "";
$dbdatabase = "pianocou_loginsystem";

$conn = @mysqli_connect($dbservername, $dbroot, $dbpassword, $dbdatabase);


I got rid of the password just for security reason but did include it in my dbh.. Must I change the dbroot? They also told me to leave it as localhost for the server.

[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(header2.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'header2.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(viewcounter.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'viewcounter.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice: Undefined variable: views in /home/pianocou/public_html/index.php on line 118
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(footer.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'footer.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(includes/dbh.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'includes/dbh.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice: Undefined variable: conn in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: mysqli_stmt_init() expects parameter 1 to be mysqli, null given in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP 2. mysqli_stmt_init() /home/pianocou/public_html/index.php:131
[25-Oct-2018 10:46:32 UTC] PHP Warning: mysqli_stmt_prepare() expects parameter 1 to be mysqli_stmt, null given in /home/pianocou/public_html/index.php on line 133


Most of my errors said the same thing....



enter image description here










share|improve this question

























  • change your code from include_once(viewcounter.php); to include_once(__DIR__.'viewcounter.php')'

    – Alex
    Nov 24 '18 at 18:17






  • 1





    all these warnings are not about mysql :-)

    – Alex
    Nov 24 '18 at 18:18











  • thanks! will give that a go! so would I need to do that for all my include files? I think it looks like it....

    – piano0011
    Nov 25 '18 at 3:03











  • and the DIR has two underscore on each side?

    – piano0011
    Nov 25 '18 at 3:04











  • Yes! That is magic constant in php

    – Alex
    Nov 25 '18 at 3:09


















0















I am trying to get my website on a live server with viewen but for some reason, I have the following errors. I am not sure why the errors occurred because I have uploaded all the files to the same public_html folder. The only assistance I had from them was to create a new database, which I did and below is my credentials: I am not sure if my dbh.php is set up correctly:



<?php

$dbservername = "localhost";
$dbroot = "root";
$dbpassword = "";
$dbdatabase = "pianocou_loginsystem";

$conn = @mysqli_connect($dbservername, $dbroot, $dbpassword, $dbdatabase);


I got rid of the password just for security reason but did include it in my dbh.. Must I change the dbroot? They also told me to leave it as localhost for the server.

[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(header2.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'header2.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(viewcounter.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'viewcounter.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice: Undefined variable: views in /home/pianocou/public_html/index.php on line 118
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(footer.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'footer.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(includes/dbh.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'includes/dbh.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice: Undefined variable: conn in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: mysqli_stmt_init() expects parameter 1 to be mysqli, null given in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP 2. mysqli_stmt_init() /home/pianocou/public_html/index.php:131
[25-Oct-2018 10:46:32 UTC] PHP Warning: mysqli_stmt_prepare() expects parameter 1 to be mysqli_stmt, null given in /home/pianocou/public_html/index.php on line 133


Most of my errors said the same thing....



enter image description here










share|improve this question

























  • change your code from include_once(viewcounter.php); to include_once(__DIR__.'viewcounter.php')'

    – Alex
    Nov 24 '18 at 18:17






  • 1





    all these warnings are not about mysql :-)

    – Alex
    Nov 24 '18 at 18:18











  • thanks! will give that a go! so would I need to do that for all my include files? I think it looks like it....

    – piano0011
    Nov 25 '18 at 3:03











  • and the DIR has two underscore on each side?

    – piano0011
    Nov 25 '18 at 3:04











  • Yes! That is magic constant in php

    – Alex
    Nov 25 '18 at 3:09














0












0








0








I am trying to get my website on a live server with viewen but for some reason, I have the following errors. I am not sure why the errors occurred because I have uploaded all the files to the same public_html folder. The only assistance I had from them was to create a new database, which I did and below is my credentials: I am not sure if my dbh.php is set up correctly:



<?php

$dbservername = "localhost";
$dbroot = "root";
$dbpassword = "";
$dbdatabase = "pianocou_loginsystem";

$conn = @mysqli_connect($dbservername, $dbroot, $dbpassword, $dbdatabase);


I got rid of the password just for security reason but did include it in my dbh.. Must I change the dbroot? They also told me to leave it as localhost for the server.

[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(header2.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'header2.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(viewcounter.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'viewcounter.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice: Undefined variable: views in /home/pianocou/public_html/index.php on line 118
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(footer.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'footer.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(includes/dbh.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'includes/dbh.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice: Undefined variable: conn in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: mysqli_stmt_init() expects parameter 1 to be mysqli, null given in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP 2. mysqli_stmt_init() /home/pianocou/public_html/index.php:131
[25-Oct-2018 10:46:32 UTC] PHP Warning: mysqli_stmt_prepare() expects parameter 1 to be mysqli_stmt, null given in /home/pianocou/public_html/index.php on line 133


Most of my errors said the same thing....



enter image description here










share|improve this question
















I am trying to get my website on a live server with viewen but for some reason, I have the following errors. I am not sure why the errors occurred because I have uploaded all the files to the same public_html folder. The only assistance I had from them was to create a new database, which I did and below is my credentials: I am not sure if my dbh.php is set up correctly:



<?php

$dbservername = "localhost";
$dbroot = "root";
$dbpassword = "";
$dbdatabase = "pianocou_loginsystem";

$conn = @mysqli_connect($dbservername, $dbroot, $dbpassword, $dbdatabase);


I got rid of the password just for security reason but did include it in my dbh.. Must I change the dbroot? They also told me to leave it as localhost for the server.

[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(header2.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'header2.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 6
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(viewcounter.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'viewcounter.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 7
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice: Undefined variable: views in /home/pianocou/public_html/index.php on line 118
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(footer.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'footer.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 126
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(includes/dbh.php): failed to open stream: No such file or directory in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: include_once(): Failed opening 'includes/dbh.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/pianocou/public_html/index.php on line 127
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Notice: Undefined variable: conn in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP Warning: mysqli_stmt_init() expects parameter 1 to be mysqli, null given in /home/pianocou/public_html/index.php on line 131
[25-Oct-2018 10:46:32 UTC] PHP Stack trace:
[25-Oct-2018 10:46:32 UTC] PHP 1. {main}() /home/pianocou/public_html/index.php:0
[25-Oct-2018 10:46:32 UTC] PHP 2. mysqli_stmt_init() /home/pianocou/public_html/index.php:131
[25-Oct-2018 10:46:32 UTC] PHP Warning: mysqli_stmt_prepare() expects parameter 1 to be mysqli_stmt, null given in /home/pianocou/public_html/index.php on line 133


Most of my errors said the same thing....



enter image description here







php mysqli






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '18 at 13:58







piano0011

















asked Nov 24 '18 at 14:33









piano0011piano0011

65




65













  • change your code from include_once(viewcounter.php); to include_once(__DIR__.'viewcounter.php')'

    – Alex
    Nov 24 '18 at 18:17






  • 1





    all these warnings are not about mysql :-)

    – Alex
    Nov 24 '18 at 18:18











  • thanks! will give that a go! so would I need to do that for all my include files? I think it looks like it....

    – piano0011
    Nov 25 '18 at 3:03











  • and the DIR has two underscore on each side?

    – piano0011
    Nov 25 '18 at 3:04











  • Yes! That is magic constant in php

    – Alex
    Nov 25 '18 at 3:09



















  • change your code from include_once(viewcounter.php); to include_once(__DIR__.'viewcounter.php')'

    – Alex
    Nov 24 '18 at 18:17






  • 1





    all these warnings are not about mysql :-)

    – Alex
    Nov 24 '18 at 18:18











  • thanks! will give that a go! so would I need to do that for all my include files? I think it looks like it....

    – piano0011
    Nov 25 '18 at 3:03











  • and the DIR has two underscore on each side?

    – piano0011
    Nov 25 '18 at 3:04











  • Yes! That is magic constant in php

    – Alex
    Nov 25 '18 at 3:09

















change your code from include_once(viewcounter.php); to include_once(__DIR__.'viewcounter.php')'

– Alex
Nov 24 '18 at 18:17





change your code from include_once(viewcounter.php); to include_once(__DIR__.'viewcounter.php')'

– Alex
Nov 24 '18 at 18:17




1




1





all these warnings are not about mysql :-)

– Alex
Nov 24 '18 at 18:18





all these warnings are not about mysql :-)

– Alex
Nov 24 '18 at 18:18













thanks! will give that a go! so would I need to do that for all my include files? I think it looks like it....

– piano0011
Nov 25 '18 at 3:03





thanks! will give that a go! so would I need to do that for all my include files? I think it looks like it....

– piano0011
Nov 25 '18 at 3:03













and the DIR has two underscore on each side?

– piano0011
Nov 25 '18 at 3:04





and the DIR has two underscore on each side?

– piano0011
Nov 25 '18 at 3:04













Yes! That is magic constant in php

– Alex
Nov 25 '18 at 3:09





Yes! That is magic constant in php

– Alex
Nov 25 '18 at 3:09












1 Answer
1






active

oldest

votes


















0














Database root is not the root it will be your Database user and make sure the Database user has full rights to the Database.






share|improve this answer
























  • thanks for the kind assistance but I have selected all the checkbox to give the user full permission and have added the username but don't know why I got sql failed

    – piano0011
    Nov 28 '18 at 7:54











  • I didn't get sql failed in my localhost but just my live server

    – piano0011
    Nov 28 '18 at 7:54











  • did you check if the database user name is correct or you are entering correct password

    – Dhruv Joshi
    Dec 24 '18 at 13:26












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53459214%2fhow-to-connect-to-a-live-server-with-viewen%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Database root is not the root it will be your Database user and make sure the Database user has full rights to the Database.






share|improve this answer
























  • thanks for the kind assistance but I have selected all the checkbox to give the user full permission and have added the username but don't know why I got sql failed

    – piano0011
    Nov 28 '18 at 7:54











  • I didn't get sql failed in my localhost but just my live server

    – piano0011
    Nov 28 '18 at 7:54











  • did you check if the database user name is correct or you are entering correct password

    – Dhruv Joshi
    Dec 24 '18 at 13:26
















0














Database root is not the root it will be your Database user and make sure the Database user has full rights to the Database.






share|improve this answer
























  • thanks for the kind assistance but I have selected all the checkbox to give the user full permission and have added the username but don't know why I got sql failed

    – piano0011
    Nov 28 '18 at 7:54











  • I didn't get sql failed in my localhost but just my live server

    – piano0011
    Nov 28 '18 at 7:54











  • did you check if the database user name is correct or you are entering correct password

    – Dhruv Joshi
    Dec 24 '18 at 13:26














0












0








0







Database root is not the root it will be your Database user and make sure the Database user has full rights to the Database.






share|improve this answer













Database root is not the root it will be your Database user and make sure the Database user has full rights to the Database.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 28 '18 at 7:49









Dhruv JoshiDhruv Joshi

1




1













  • thanks for the kind assistance but I have selected all the checkbox to give the user full permission and have added the username but don't know why I got sql failed

    – piano0011
    Nov 28 '18 at 7:54











  • I didn't get sql failed in my localhost but just my live server

    – piano0011
    Nov 28 '18 at 7:54











  • did you check if the database user name is correct or you are entering correct password

    – Dhruv Joshi
    Dec 24 '18 at 13:26



















  • thanks for the kind assistance but I have selected all the checkbox to give the user full permission and have added the username but don't know why I got sql failed

    – piano0011
    Nov 28 '18 at 7:54











  • I didn't get sql failed in my localhost but just my live server

    – piano0011
    Nov 28 '18 at 7:54











  • did you check if the database user name is correct or you are entering correct password

    – Dhruv Joshi
    Dec 24 '18 at 13:26

















thanks for the kind assistance but I have selected all the checkbox to give the user full permission and have added the username but don't know why I got sql failed

– piano0011
Nov 28 '18 at 7:54





thanks for the kind assistance but I have selected all the checkbox to give the user full permission and have added the username but don't know why I got sql failed

– piano0011
Nov 28 '18 at 7:54













I didn't get sql failed in my localhost but just my live server

– piano0011
Nov 28 '18 at 7:54





I didn't get sql failed in my localhost but just my live server

– piano0011
Nov 28 '18 at 7:54













did you check if the database user name is correct or you are entering correct password

– Dhruv Joshi
Dec 24 '18 at 13:26





did you check if the database user name is correct or you are entering correct password

– Dhruv Joshi
Dec 24 '18 at 13:26




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53459214%2fhow-to-connect-to-a-live-server-with-viewen%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()