Whole mysql stopped working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matheussousuke
    New Member
    • Sep 2009
    • 249

    #1

    Whole mysql stopped working

    A while ago, the website was working, but now, the whole mysql stopped working, I mean, the website oppens, doesnt not show any connection errors, but I can't make any querry.

    If I try to login, I get back to the same login form page, if I try to make a query, I get an error inside the website field "Query was empty".


    It happened after I had moved the website to a domain folde, I configured everything correct, so I dont know what's going on...




    The connection file:

    Code:
    <?
    
    
    //	'server'     'database_username'		'database_password' 
    $connection = mysql_connect("localhost", "mcempreg_mcdb", "I wont show it here on the forum")
     or die (mysql_error()); //	'database_name' 
     $db = mysql_select_db("mcempreg_mc", $connection) or die (mysql_error());
    ?>

    The configuration file:


    Code:
    <?
    
    include ('lang/portuguese.php'); // don't change it
    $fullurl = "balcaocerto.com.br";			// dirctory where the system is going to be installed, leave blank for installing on the root
    $sitename = "Mister Cursos - Empregos"; // Name of the website
    
    $sitenameheading = "Balcão Certo";
    
    
    $sitenamefooter = "Mister Cursos";
    
    
    $myemail = "mxxxxxxxxx.com"; // admin e-mail
    $contactemail = "mxxxxxxxxxx.com"; // contact e-mail
    $mydomain = "balcaocerto.com.br";  // website domain, please don't use http://
    $myurl = "balcaocerto.com.br"; // domains where the system is going to be installed, please don't use o http://
    $twocoid = ""; // leave it how it is.
    $twoco = "disable"; // leave it how it is.
    include ('style.php'); // leave it how it is.
    ?>
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    you wil have to connect with mysql in every page, and another thing make sure your mysql is running

    Comment

    • matheussousuke
      New Member
      • Sep 2009
      • 249

      #3
      The connection and configuration file is loaded in every page already.

      And the mysql is running.

      If I configure the site in a subdomain, it works, but in the domain, just the connection works, not the queries.

      Comment

      Working...