473,385 Members | 1,218 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,385 software developers and data experts.

Database connection issues

I am having very strange issues today. The scripts that I have, that
worked fine on Friday, now do not work properly. I can connect fine
with a client application like MySql tools. I can do queries, and
everything. I can even connect properly with mysqli, but apps that use
mysql to connect do not retrieve the information needed. I don't get
errors, so I don't know what is going on. This all worked for weeks
until this weekend. I am at a loss as to what this could be.

I also tested by connecting to a different database, and the same
results. PHP isn't reading and writing to the database properly.

I have no idea where to start, so if anyone has some idea, please let
em know.

Jul 16 '07 #1
6 1259
Rik
On Mon, 16 Jul 2007 22:10:56 +0200, mtuller <mi******@gmail.comwrote:
I am having very strange issues today. The scripts that I have, that
worked fine on Friday, now do not work properly. I can connect fine
with a client application like MySql tools. I can do queries, and
everything. I can even connect properly with mysqli, but apps that use
mysql to connect do not retrieve the information needed. I don't get
errors, so I don't know what is going on. This all worked for weeks
until this weekend. I am at a loss as to what this could be.

I also tested by connecting to a different database, and the same
results. PHP isn't reading and writing to the database properly.

I have no idea where to start, so if anyone has some idea, please let
em know.
First course of action: ask the hoster what they've changed. MySQL isn't
automatically included in packages anymore, maybe they did not realize
that while upgrading.

Then again, you should either get errors or empty recordsets. Are you sure
display_errors is enabled with a proper error_reporting setting? 'Does not
work properly' does not compute here. Exactly what doesn't work, and how.

--
Rik Wasmus
Jul 16 '07 #2
It's on my server. Not an ISPs. display_errors is on.

The only thing I can think of is that I ran apt-get upgrade. There was
an error, that something wasn't installed, but I don't think it was
anything to do with apache or php. I thought it was earlier last week
though, before Friday.

On Jul 16, 3:15 pm, Rik <luiheidsgoe...@hotmail.comwrote:
On Mon, 16 Jul 2007 22:10:56 +0200, mtuller <mitul...@gmail.comwrote:
I am having very strange issues today. The scripts that I have, that
worked fine on Friday, now do not work properly. I can connect fine
with a client application like MySql tools. I can do queries, and
everything. I can even connect properly with mysqli, but apps that use
mysql to connect do not retrieve the information needed. I don't get
errors, so I don't know what is going on. This all worked for weeks
until this weekend. I am at a loss as to what this could be.
I also tested by connecting to a different database, and the same
results. PHP isn't reading and writing to the database properly.
I have no idea where to start, so if anyone has some idea, please let
em know.

First course of action: ask the hoster what they've changed. MySQL isn't
automatically included in packages anymore, maybe they did not realize
that while upgrading.

Then again, you should either get errors or empty recordsets. Are you sure
display_errors is enabled with a proper error_reporting setting? 'Does not
work properly' does not compute here. Exactly what doesn't work, and how.

--
Rik Wasmus

Jul 16 '07 #3
Rik
[topposting fixed]

On Mon, 16 Jul 2007 22:28:14 +0200, mtuller <mi******@gmail.comwrote:
On Jul 16, 3:15 pm, Rik <luiheidsgoe...@hotmail.comwrote:
>On Mon, 16 Jul 2007 22:10:56 +0200, mtuller <mitul...@gmail.comwrote:
I am having very strange issues today. The scripts that I have, that
worked fine on Friday, now do not work properly. I can connect fine
with a client application like MySql tools. I can do queries, and
everything. I can even connect properly with mysqli, but apps that use
mysql to connect do not retrieve the information needed. I don't get
errors, so I don't know what is going on. This all worked for weeks
until this weekend. I am at a loss as to what this could be.
I also tested by connecting to a different database, and the same
results. PHP isn't reading and writing to the database properly.
I have no idea where to start, so if anyone has some idea, please let
em know.

First course of action: ask the hoster what they've changed. MySQL isn't
automatically included in packages anymore, maybe they did not realize
that while upgrading.

Then again, you should either get errors or empty recordsets. Are you
sure
display_errors is enabled with a proper error_reporting setting? 'Does
not
work properly' does not compute here. Exactly what doesn't work, and
how.

It's on my server. Not an ISPs. display_errors is on.
Check, and error_reporting level?
The only thing I can think of is that I ran apt-get upgrade. There was
an error, that something wasn't installed, but I don't think it was
anything to do with apache or php. I thought it was earlier last week
though, before Friday.
OK, so what is the error? What is the output of a single mysql_connect()
call? Does it give a resource? If yes, how are queries reacting, etc.,
etc. More info about what exactly is going wrong is required here.

--
Rik Wasmus
Jul 16 '07 #4
That's just it. There are no errors. The data just doesn't show up
correctly. I copied the page that is suppose to display the data over
to a different server, and that works. Hmmm.... I think I need to
reinstall apache for some reason. The php.ini files for the 2 servers
match.

On Jul 16, 3:42 pm, Rik <luiheidsgoe...@hotmail.comwrote:
[topposting fixed]

On Mon, 16 Jul 2007 22:28:14 +0200, mtuller <mitul...@gmail.comwrote:
On Jul 16, 3:15 pm, Rik <luiheidsgoe...@hotmail.comwrote:
On Mon, 16 Jul 2007 22:10:56 +0200, mtuller <mitul...@gmail.comwrote:
I am having very strange issues today. The scripts that I have, that
worked fine on Friday, now do not work properly. I can connect fine
with a client application like MySql tools. I can do queries, and
everything. I can even connect properly with mysqli, but apps that use
mysql to connect do not retrieve the information needed. I don't get
errors, so I don't know what is going on. This all worked for weeks
until this weekend. I am at a loss as to what this could be.
I also tested by connecting to a different database, and the same
results. PHP isn't reading and writing to the database properly.
I have no idea where to start, so if anyone has some idea, please let
em know.
First course of action: ask the hoster what they've changed. MySQL isn't
automatically included in packages anymore, maybe they did not realize
that while upgrading.
Then again, you should either get errors or empty recordsets. Are you
sure
display_errors is enabled with a proper error_reporting setting? 'Does
not
work properly' does not compute here. Exactly what doesn't work, and
how.
It's on my server. Not an ISPs. display_errors is on.

Check, and error_reporting level?
The only thing I can think of is that I ran apt-get upgrade. There was
an error, that something wasn't installed, but I don't think it was
anything to do with apache or php. I thought it was earlier last week
though, before Friday.

OK, so what is the error? What is the output of a single mysql_connect()
call? Does it give a resource? If yes, how are queries reacting, etc.,
etc. More info about what exactly is going wrong is required here.

--
Rik Wasmus

Jul 16 '07 #5
Rik
[topposting fixed again, please don't do that]
I am having very strange issues today. The scripts that I have,
that
worked fine on Friday, now do not work properly. I can connect fine
with a client application like MySql tools. I can do queries, and
everything. I can even connect properly with mysqli, but apps that
use
mysql to connect do not retrieve the information needed. I don't
get
errors, so I don't know what is going on.
I have no idea where to start, so if anyone has some idea, please
let
em know.
>First course of action: ask the hoster what they've changed. MySQL
isn't
>automatically included in packages anymore, maybe they did not
realize
>that while upgrading.
>Then again, you should either get errors or empty recordsets. Are you
sure
display_errors is enabled with a proper error_reporting setting?
'Does
>not
work properly' does not compute here. Exactly what doesn't work, and
how.
It's on my server. Not an ISPs. display_errors is on.

Check, and error_reporting level?
The only thing I can think of is that I ran apt-get upgrade. There was
an error, that something wasn't installed, but I don't think it was
anything to do with apache or php. I thought it was earlier last week
though, before Friday.

OK, so what is the error? What is the output of a single mysql_connect()
call? Does it give a resource? If yes, how are queries reacting, etc.,
etc. More info about what exactly is going wrong is required here.

That's just it. There are no errors. The data just doesn't show up
correctly. I copied the page that is suppose to display the data over
to a different server, and that works. Hmmm.... I think I need to
reinstall apache for some reason. The php.ini files for the 2 servers
match.
Doesn't it show up, or does it show up messed up? Please be more precise
when reporting a problem, just saying it doesn't work correctly is hardly
constructive. Offcourse it's possible there's something wrong with either
Apache, MySQL or PHP install, but that's dubious.

If it works on another server, most likely the syntax is correct. Are you
using the same database server? Have you tried to make a simple testcase
as I said, with a mysql_connect() statement etc? A production page is
hardly the way to test for database problems, make a simple small page
with some connecting and queries like 'SHOW DATABASES', undependant on
other scripts and resources.

--
Rik Wasmus
Jul 16 '07 #6
Ok. I have restarted the server, and all seems ok now. I did this
earlier and it didn't do anything. I am at a loss still, but won't
question it. It's Monday...that's all I can figure.

Thanks for your help Rik.

On Jul 16, 4:22 pm, Rik <luiheidsgoe...@hotmail.comwrote:
[topposting fixed again, please don't do that]
I am having very strange issues today. The scripts that I have,
that
worked fine on Friday, now do not work properly. I can connect fine
with a client application like MySql tools. I can do queries, and
everything. I can even connect properly with mysqli, but apps that
use
mysql to connect do not retrieve the information needed. I don't
get
errors, so I don't know what is going on.
I have no idea where to start, so if anyone has some idea, please
let
em know.
First course of action: ask the hoster what they've changed. MySQL
isn't
automatically included in packages anymore, maybe they did not
realize
that while upgrading.
Then again, you should either get errors or empty recordsets. Are you
sure
display_errors is enabled with a proper error_reporting setting?
'Does
not
work properly' does not compute here. Exactly what doesn't work, and
how.
It's on my server. Not an ISPs. display_errors is on.
Check, and error_reporting level?
The only thing I can think of is that I ran apt-get upgrade. There was
an error, that something wasn't installed, but I don't think it was
anything to do with apache or php. I thought it was earlier last week
though, before Friday.
OK, so what is the error? What is the output of a single mysql_connect()
call? Does it give a resource? If yes, how are queries reacting, etc.,
etc. More info about what exactly is going wrong is required here.
That's just it. There are no errors. The data just doesn't show up
correctly. I copied the page that is suppose to display the data over
to a different server, and that works. Hmmm.... I think I need to
reinstall apache for some reason. The php.ini files for the 2 servers
match.

Doesn't it show up, or does it show up messed up? Please be more precise
when reporting a problem, just saying it doesn't work correctly is hardly
constructive. Offcourse it's possible there's something wrong with either
Apache, MySQL or PHP install, but that's dubious.

If it works on another server, most likely the syntax is correct. Are you
using the same database server? Have you tried to make a simple testcase
as I said, with a mysql_connect() statement etc? A production page is
hardly the way to test for database problems, make a simple small page
with some connecting and queries like 'SHOW DATABASES', undependant on
other scripts and resources.

--
Rik Wasmus

Jul 16 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Scott Collens | last post by:
Hello, I am having issues returning the results from the database using a data access class. The class is called dbconnect.vb. Imports System Imports System.Data Imports System.Data.SqlClient
10
by: Daniel Fernandes | last post by:
Hi there Let's say due to several reasons I have an ASP.Net application that has a database access class that stores a database connection in a shared member : public class dataaccess ...
12
by: Joe Abou Jaoude | last post by:
hi, I have a component that uses a database connection. In the finalizer I dispose the connection because I read in msdn the following: "A type must implement Finalize when it uses...
14
by: kenfar | last post by:
I'd like our daily quality & policy testing framework to also test if our databases are activated. However, I haven't found a good way to do this yet - every approach has issues: 1. get...
26
by: Jimmy | last post by:
ill have a database with 1 table and 3 fields: ID FIRSTNAME LASTNAME (the ID field will be the auto incrementing index) there might be 10 records in the DB, there might be 10,000. i...
5
by: igotyourdotnet | last post by:
I'm trying to add a web part to my page and when I run my page with the web part I get this error: An error has occurred while establishing a connection to the server. When connecting to SQL...
3
by: Big Charles | last post by:
Hi, We have developed an ASP.NET web application and are planning to host it in an external Server, which provides us a good bandwidht. We need to put he web application outside because the...
9
by: Gordon | last post by:
I want to add a feature to a project I'm working on where i have multiple users set up on my Postgres database with varying levels of access. At the bare minimum there will be a login user who...
7
by: =?Utf-8?B?TWF4R3J1dmVu?= | last post by:
I have a DLL that implements the Business and Data Layers for a number of different websites. That DLL uses a Strongly Typed DataSet to interface to the Data Source which is SQL Server. There...
1
by: AllBeagle | last post by:
Hello Everyone, I'm trying to build a web-based application for a client of mine and I keep finding holes in my design, so I could use some guidance if anyone has any to offer. Let me try to...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.