473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Whole mysql stopped working

matheussousuke
249 100+
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:

Expand|Select|Wrap|Line Numbers
  1. <?
  2.  
  3.  
  4. //    'server'     'database_username'        'database_password' 
  5. $connection = mysql_connect("localhost", "mcempreg_mcdb", "I wont show it here on the forum")
  6.  or die (mysql_error()); //    'database_name' 
  7.  $db = mysql_select_db("mcempreg_mc", $connection) or die (mysql_error());
  8. ?>

The configuration file:


Expand|Select|Wrap|Line Numbers
  1. <?
  2.  
  3. include ('lang/portuguese.php'); // don't change it
  4. $fullurl = "balcaocerto.com.br";            // dirctory where the system is going to be installed, leave blank for installing on the root
  5. $sitename = "Mister Cursos - Empregos"; // Name of the website
  6.  
  7. $sitenameheading = "Balcão Certo";
  8.  
  9.  
  10. $sitenamefooter = "Mister Cursos";
  11.  
  12.  
  13. $myemail = "mxxxxxxxxx.com"; // admin e-mail
  14. $contactemail = "mxxxxxxxxxx.com"; // contact e-mail
  15. $mydomain = "balcaocerto.com.br";  // website domain, please don't use http://
  16. $myurl = "balcaocerto.com.br"; // domains where the system is going to be installed, please don't use o http://
  17. $twocoid = ""; // leave it how it is.
  18. $twoco = "disable"; // leave it how it is.
  19. include ('style.php'); // leave it how it is.
  20. ?>
Oct 25 '11 #1
2 1474
johny10151981
1,059 1GB
you wil have to connect with mysql in every page, and another thing make sure your mysql is running
Oct 26 '11 #2
matheussousuke
249 100+
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.
Oct 26 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: rossz | last post by:
I was forced to reboot my linux server (power outage) and now apache php won't deal with mysql. I've double and triple checked /etc/php4/apache/php.ini and the proper settings are there. If I...
5
by: Bill | last post by:
I used to be able to run the following ASP code on our corp machine (W2K Server Edition and IIS-5) and successfully send a net-msg to anyone on our intranet. Last week it stopped working... and...
4
by: Dag Sunde | last post by:
I've been working on a system that have been running for the last couple of years, but stopped working on my dev. machine after reinstalling WinXP yesterday. To my knowledge, it have been set up...
2
by: Dag Sunde | last post by:
I have the following code fragment in one of my pages: if (typeof document.getElementById('myApplet').getTableAsSDV != 'undefined') { rowBuffer =...
6
by: Susan Bricker | last post by:
Hi. Does anyone have a clue why my mouse wheel stopped working while I was working on the VB behind a form in MS/Access? I would swear that the mouse wheel was working a short time ago. I've...
4
by: vzaffiro | last post by:
Our Development Server (windows 2003, framework 1.1) was working great for months, then one day all the client side validators stopped working. Only the server side validation is working. Our code...
4
by: JohnB111 | last post by:
Hi Environment: Windows XPPRO SP2 IIS 5.1 AVG Anti Virus (Not script Blocking) The following code used to work perfectly on my local development machine and still does on my web server.
2
by: Rico | last post by:
Hello, I have an ASP.net application, it's a third party forum software running on an SQL Server back end. This application was working fine with no issues. Then yesterday, without being...
1
by: rickcasey | last post by:
I wonder if anyone has experienced something like this, as it seems truly bizarre and is causing me to tear out my hair (what little there is left of it).... The exec() function just suddenly...
1
by: stutib | last post by:
Hello all, I am building an ruby on rails application.I am using Rails 2.3.8 Ruby 1.9.1 Mysql 5.0 Win7 64 bit OS My problem is,very often i keep getting this message "Error: Ruby...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.