Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Php Call To Mysql_connect


I cant seem to find an answer for. I have a Linux server and needed to upgrade PHP for a particular function. The PHP build told me to upgrade Apache. Anyway now I have Apache 2.0.52 running php 4.3.9. The phpinfo function works fine. But when I try to run a mysql_connect command I get the response Page Not Found and ctrl-R only gives the last version of the page without the function in. function_exists("mysql_connect") proves the function is there. Since ther is no error message I cant get anywhere.




View Complete Forum Thread with Replies

Related Forum Messages:
Call To Undefined Function Mysql_connect()
I'm just getting started with PHP and MySQL. I installed a package the other day to control torrents from a website (Torrentflux) but I'm getting an error when I try to start

Fatal error: Call to undefined function mysql_connect() in
C:public_htmlTF2htmladodbdriversadodb-mysql.inc.php on line 338

Line 338 of that file is the one that starts with $this-> (the fifth one down from here:

// returns true or false
function _connect($argHostname, $argUsername, $argPassword,
$argDatabasename) {
if (ADODB_PHPVER >= 0x4300)
(This line) $this->_connectionID =
mysql_connect($argHostname,$argUsername,$argPassword,
$this->forceNewConnect,$this->clientFlags);
else if (ADODB_PHPVER >= 0x4200)
$this->_connectionID =
mysql_connect($argHostname,$argUsername,$argPassword,
$this->forceNewConnect);
else
$this->_connectionID =
mysql_connect($argHostname,$argUsername,$argPassword);

if ($this->_connectionID === false) return false; if ($argDatabasename)
return $this->SelectDB($argDatabasename); return true;
}

Can anyone help me with this?

View Replies !
PHP.ini ( Call To Undefined Function: Mysql_connect() )
I am using mandrake 9.1 with PHP 4.3.1 and got some advice about using the php.ini file (which phpinfo says should be in my /etc directory but is not). I found a default one, and put it in there. Now I get this error:

Call to undefined function: mysql_connect()

Any thoughts? I am told that my php might not be talking to mysql now, but without the .ini file there it works great. Is there some other default .ini file that is used if one is not found where phpinfo is telling me that it should be? In other words, when I had no php.ini in this directory, php worked and all mysql calls worked.

View Replies !
Call To Undefined Function: Mysql_connect()
I am running Debian 3.0r1 with Apache 1.3.27, MySQL 3.23.49 and PHP
4.3.3RC3.
I installed Apache and MySQL when I originally installed Debian and these
work fine. I recently wanted to run some PHP scripts on my web server that
talked to a MySQL database. I installed php4 and php4-mysql using apt-get.
Unfortunatly I can't get the scripts to work. I keep getting the following
error:

Fatal error: Call to undefined function: mysql_connect() in
/var/www/ganymede/dbtest.php on line 4

mysql.so is located in /usr/lib/php4/20010901 and so I have the following
entries at the bottom of my php.ini file:

extension_dir=/usr/lib/php4/20010901/
extension=mysql.so

I haven't been able to find any useful information on how to fix this
problem. Everything I've found so far says make sure I've installed
php4-mysql and that I have extension=mysql.so in my php.ini file, but I've
done all that.

View Replies !
Call To Undefined Funcction Mysql_connect()
I have searched high and low to find an answer to this. I am running Windows 2003 Server, PHP 5 and MySQL 4.1. I know I can connect to the database, because I have Sugar installed and use it daily.

I have doubled checked my php.ini settings that php_mysql.dll is uncommented, I have added the path for my extensions to the system variables. I have copied the php_mysql.dll to the windows directory (no luck), to the php directory root (no luck), to the system32 directory (no luck).

I have added the full path to my extensions in my php.ini (no luck). The rest of my php works, I can view phpinfo() all day long, all of my include files are working the way they are supposed to.

View Replies !
Call Of Undefind Function Mysql_connect()
i am running PHP 5.1.1,apache 2.0.55 and MySQL 5.0 on windows XP prof SP2 befor few days i had connection with the MySQL database and the mysql_connect() was ok , but yesterday i get this error "call of undefind function mysql_connect().

i tried to check the php.ini configuration and i didn't see anything wrong. but i notice that when i call phpinfo()i see that the extension_dir is C:/php5 but in fact i don't have such directory.

i checked the extension_dir in the php.ini and it is D:/PHP and it is the rte directory where i installed php in it?

View Replies !
Call To Undefined Function Mysql_connect() In .etc.
My first trial to use a database with PHP fails on the very first command:

$db = mysql_connect("localhost", "myuser", "mypassword") or die("Could not connect: " . mysql_error());

PHP reports: Fatal error: Call to undefined function mysql_connect() in .etc.

I'm running MySQL 4.1.12a, PHP 5.0.4, Apache 2.0.53 on Windows XP and phpMyAdmin 2.6.3.pl1 works OK.

View Replies !
And MySQL - Call To Undefined Function Mysql_connect()
I've currently been trying to tackle making PHP 5.1.4 use the MySQL
extension. I've followed the instructions I've seen on the web but
whenever I acces my test page, I still get a "Call to undefined
function mysql_connect()..." Basically the instructions I've found say,
to edit the php.ini file so this line is uncommented:

extensions=php_msql.dll

and to make sure that the extension_dir value points to my extensions
folder:

extension_dir = "c:phpext"

My Current setup:
Windows XP
Apache 2.2
MySQL 5.0.12
PHP 5.1.4

Is there any step I'm missing?

View Replies !
Newbie: Call To Undefined Function Mysql_connect()
I have this error coming up when I try to connect to mySQL.

"Call to undefined function mysql_connect()....................."

I know MySQL is working as I've been using it from DOS.
And I know PHP is working as well as I've been using it...
I suspect that there is nothing to connect MySQL to PHP though.

I notice in the MySQLadmin window that the MyOBDC connection says
"Not found
Driver 3.51 Not Found"

How Do I fix this?

View Replies !
Query :: Call To Undefined Function Mysql_connect()
I have been trying to do a query but I get

Call to undefined function mysql_connect()

What other way can I perform a query? Or do I need to get something enabled?

View Replies !
Fatal Error: Call To Undefined Function Mysql_connect() ...
I can't seem to get PHP to recognize MySQL. I know you are probably sick of hearing about this problem, but I haven't been able to find a solution. I have read through the documentation on the web including that which pertains to this error in these forums. I will attempt to outline the problem as detailed as possible: PHP Code:

View Replies !
Call To Undefined Function: Mysql_connect() - Red Hat Linux 9.0 Server
I recently installed Red Hat Linux 9.0 server. It installed Apache with PHP
and Mysql by default. I can connect to mysql, create databases, tables fine.

I can also program php and access it through Apache.

Problem is when I try to connect to MySql it gives me the error
"Call to undefined function: mysql_connect()"

I ran phpinfo and found "--with-mysql=shared".

I checked and all the deamons are running (httpd, mysqld)

Do anybody know what is missing?

I usually love to troubleshoot these things, but right now too tired to do
this.

View Replies !
Fatal Error: Call To Undefined Function Mysql_connect()
I have Apache 2.0.55 installed and PHP 5.1.1

In the php.ini I have
extension=php_mysql.dll
uncommented, and as someone suggested I changed my httpd.conf file in the Apache Group folder to have
LoadModule php5_module C:/php/php5apache2.dll

All is well but my mysql_connect() brings about a fatal error.

View Replies !
Fatal Error: Call To Undefined Function Mysql_connect() - Php-5.1.2-installer.exe
I just instal php-5.1.2-installer.exe and mysql-5.0.10a-beta-win32 but
when i connect to mysql then show error like this "Fatal error: Call to
undefined function mysql_connect(). Why can I not connect to mysql?

View Replies !
Fatal Error: Call To Undefined Function: Mysql_connect() In /var/www/html/index.php
I get the following error:
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/index.php on line 3.

I have the following RPMS installed on RH7.2
MySQL-client-4.0.14-0 I would really appreciate it.
MySQL-shared-4.0.14-0
MySQL-server-4.0.14-0
MySQL-devel-4.0.14-0
php-imap-4.0.6-7
php-4.0.6-7
apache-1.3.20-16
apache-devel-1.3.20-16
apacheconf-0.8.1-1

The code i am trying to run is: I would really appreciate it.
<?php
printf("opening db.....");
$db = mysql_connect("localhost","user","password");
printf("closing db
");
mysql_close($db);
?>

The configure part of phpinfo() shows:
-----
'./configure'
'i386-redhat-linux' '--prefix=/usr' .<snip>
'--enable-wddx' '--without-mysql' '--without-unixODBC'
'--without-oracle' '--without-oci8' '--with-pspell' '--with-xml'
------

I believe the mysql is not installed to work along with PHP. I
installed php using rpm.
My question is how do i make it work. I have checked NG and tested all
the options. But to no avail.

I also tried by uncommenting the line extensin=mysql.so in
/etc/php.ini.

View Replies !
Fatal Error: Call To Undefined Function Mysql_connect() In URLdatabase.php On Line 7
Has anyone ever come across this error before?

Fatal error: Call to undefined function mysql_connect() in URLdatabase.php on line 7

I don't know what could be causing it.

View Replies !
Work With Localhost - Fatal Error: Call To Undefined Function Mysql_connect()
I just installed PHP and MySQL to work with localhost. However, when I try the mysql_connect function, it returns:

Fatal error: Call to undefined function mysql_connect() in ..index.php on line 13

.. is usually the whole line obviously. I asked someone I knew, if this was because MySQL was not installed properly, and he thinks it is. Does anyone know how to remedy this?

View Replies !
Fatal Error: Call To Undefined Function Mysql_connect() - Using Mysql Functions
I have a page has a small amount of php in it with some mysql functions, every time i try and look at it, I get a php error:

Fatal error: Call to undefined function mysql_connect() in C:Program FilesApache GroupApache2htdocshomepageindex.php on line 4

I'm pretty sure its not an issue with the code on the page, but just in case: Code:

View Replies !
MySQL Functions - Fatal Error: Call To Undefined Function Mysql_connect()
I am using AMP (Apache, MySQL and PHP) to develop a website, they're all installed correctly, and - as far as I know - working together correctly. I'm trying to connect to the MySQL database I've sent with this code: Code:

$connection = mysql_connect("localhost", "****", "*******");

but I'm getting this error: Code:

Fatal error: Call to undefined function mysql_connect() in C:Program FilesApache GroupApache2htdocsprojectsignupsubmit.php on line 10

Which makes me think maybe they aren't all working together. any ideas?

View Replies !
Fatal Error: Call To Undefined Function Mysql_connect() In C:Program FilesApache Gr
I am getting the error :

Fatal error: Call to undefined function mysql_connect() in C:Program FilesApache GroupApache2htdocsfirstdbprogram.php on line 4

I have PHP 5 installed,apache and mysql.

PHP is installed in c:php

IN the phph.ini I have done hte following: Code:

View Replies !
Fatal Error: Call To Undefined Function: Mysql_connect() In /var/www/html/testPHP/testMysql.php On Line 7
I am new to php and I'm testing php connectivity to mysql. I created a
php script using the php.net sample. The script uses the mysql_connect
method and when I execute it I get the error:

Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/testPHP/testMysql.php on line 7

I have mysqld ver 4.0.20 and php 4.2.2 that came bundled with apache
(that came bundled with RH9).

View Replies !
PHP 5.2.1: Cli Does Load Php_mysql.dll While The Same Script Executed By Apache 2.2 Fails Call To Undefined Function Mysql_connect()
After I overcame some short_open_tag (thanks, Rik!) I encounter
another strange php-behaviour. The script I just got to work on the
windows-commandline obviously does as php.ini tells php to do and
loads php_mysql.dll:

E:ersDHCP>php ./extractLog.php
.... some mysql-stuff, some output, OK

The same script invoked by the webserver apache 2.2 entails an error:

http://localhost/extractLog.php
PHP Fatal error: Call to undefined function mysql_connect()

My configuration php.ini does contain the line extension=php_mysql.dll
and seems to be OK while I use the script from commandline. Is there
anybody who can give me a hint where to cope with this error?Christian

View Replies !
Another "Fatal Error: Call To Undefined Function: Mysql_connect()"Question
I am getting the following error when I try to view a test page in my
browser. This test page just reads a table in mysql and outputs the
results.

Fatal error: Call to undefined function: mysql_connect() in
/var/web/public/test.php on line 2

I'm using:
Apache 2
MySQL 4.1.12
PHP 4.4.0

I have tried upgrading PHP to PHP5. I went back down to PHP4. I
verified that mysql.so was being loaded. I tried using the OLD_PASSWORD
feature in mysql. Verified that the PHP module is loaded in apache.

What is weird however (at least I think) is when I run the following via
telnet:

php ./test.php

It pulls up the page, connects successfully to the database and displays
the records. No error message.

View Replies !
Totally Lost! "Fatal Error: Call To Undefined Function: Mysql_connect()"
I'm a noob with a server so keep that in mind :) Been trying to connect
with php to mysql and all I get is:

"Fatal error: Call to undefined function: mysql_connect()"

I've read and read and can't figure out what is wrong. My current set
up is:

# rpm -qa | grep php

php-ldap-4.3.2-23.ent
php-mysql-4.3.2-3mdk
php-imap-4.3.2-23.ent
php-4.3.2-23.ent

# rpm -qa | grep php

php-ldap-4.3.2-23.ent
php-mysql-4.3.2-3mdk
php-imap-4.3.2-23.ent
php-4.3.2-23.ent

On RedHat 3.2ES

Can someone please help? I've been trying for 2 weeks now and I still
don't know what to do.

View Replies !
Mysql_connect() Used Twice
I need that my script retrieves data from two different databases so I use
mysql_connect() to open two connections. I have only one server, user and
password, just two different databases. Simplified, it'd be:

$con1=mysql_connect($server, $user, $pass);
mysql_select_db($database1, $con1);
$res1=mysql_query($sql1, $con1);

$con2=mysql_connect($server, $user, $pass);
mysql_select_db($database2, $con2);
$res2=mysql_query($sql2, $con2);

print_r($con1);
print_4($con2);

do_things_with_res1();
do_things_with_res2();

mysql_close($con2);
mysql_close($con1);

the problem is that, no matter what names I give to links and results, each
mysql_connect() overrides the previous ones. So when I call
do_things_with_res1() it actually uses $database2. The print_r() part shows
that $con1 has been unset!

I browsed php.ini and found this:

; Maximum number of links (persistent + non-persistent).
; -1 means no limit.
mysql.max_links = -1

View Replies !
Where Is Mysql_connect()?
I'm running PHP5 on Windows Vista with mysql 5.2. I have a simple php
file with

<?
$dbc = mysql_connect ();
?>

When I run the file, I get this error:
Fatal error: Call to undefined function mysql_connect() in E:www
mysiteconnecttest.php on line 2

PHP seems to be installed correctly. What could I be doing wrong?

View Replies !
Mysql_connect ?
what are the parameters for mysql_connect ? do i need to put in the database name, username, password ?

<? mysql_connect("localhost", "webuser", "");
$query = "SELECT name, phone FROM mytable";?>

View Replies !
Mysql_connect
Don't laugh but im new to php (not programming) I read somewhere that if u use mysql_connect (instead of mysql_pconnect) that u have to use it in every script.

I was just wonderting if a script is from on <?php to ?> or if a script is from the top of the file to the end. (basically if it doesn't end the connecting after it encouters its first set of a ?> tag.

View Replies !
Cannot Get Mysql_connect To Work
I'm trying to do something which should be very simple - connect to the
MySQL database. Here is the call, followed by the error msg.

$conn = mysql_connect("localhost", "root", "");

Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/buildhw.php on
line 13
failed

I've also tried this with the host arg as "", but I get the same
result. Logging on as root made no difference either.

View Replies !
Mysql_connect Not Working
I am very new to php, and I am trying to use it to access a mysql
database. But I'm trying to use mysql_connect but the browser returns
the following error sayin that the mysql_connect function is undefined.
Why? Can anyone help?

Fatal error: Call to undefined function mysql_connect() in
C:DataNowContractWorkFriendsKnittingLiveWebSi tefriends_emailsubmit.php
on line 11

View Replies !
Mysql_connect Function
How do I get the mysql_connect function in PHP to work when my webserver is win2000 based? It asks for my servername when I use this function. But because mysql executable is installed at c:mysqlbinmysql.exe, just typing in my server name won't start mysql. How do I make this work?

View Replies !
Mysql_connect Password
I am wondering if it's possible to pass the encrypted password through the mysql_connect function.

View Replies !
Mysql_connect Error
I got error when using mysql_connect function in my php script.
If i set the db host to localhost, it give me that error altough all
the user and password that I wrote is true(I can login using that
username/passwd using mysql console), but when I change the db host
into 127.0.0.1 mysql_connect will work.
Beside of that I can't make my php script to do I/O operation on
dir/file in the apache /var/www though the permision already own by
apache uid, even if I gave the permision to 777(just for the testing
sake) the I/O operation still wont work.
I really confuse what else to do :'(
I'm using SuSE 10, Apache/2.0.54, and php 4.5 (it's all from standard
rpm that provided by SuSE)

View Replies !
Mysql_connect Problem ...
this is the code:

$user = "user";
$pass = "";
$connect = mysql_connect('localhost',$user,$pass);
or die('could not connect: '. mysql_error());

mysql_close($connect);

i'm a beginer, and i just want to see if i could connect to server.
on pypmyadmin i set the following for the user@localhost:

password: No
global privileges: all privileges
grant: yes ...

and ofcourse i get the warning: mysql_connect()function.mysql-connect]:
Access denied for user 'user'@'localhost' error on the connect string line.

View Replies !
Mysql_close For Every Mysql_connect?
after all the pages of website have to interact with the database so for each page i have a mysql_connect, now if i jump to another page (link), this new one again perform an mysql_connect and so on, so maybe for 10 mysql_connect just 1 mysql_close is executed.

View Replies !
Mysql_connect Fails
i'm baffled. or maybe missing the obvious ....

when requesting a particular page, which attempts to connect to my MySQL
server, at least one user receives the 'Can't connect ...' message:

Warning: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2) in /usr/www/users/.../xyz.inc.php on line 108

line 108 of the included file is:

$link = mysql_connect ($h, $u, $p) ;

the user has no problem with the rest of the site, but always has this
problem if the page requested attempts to connect to the server.

no other user has reported the problem and this user is reliable.

i really can't see how the user's browser or firewall could cause this,
but ....

View Replies !
Multiple Mysql_connect
I need more than one mysql_connect on the same page, do I need to name them different? If so how?

View Replies !
Mysql_connect Doesn't Work
I'm going through tutorials and other php scripts are working, but when I try one that connects to mysql, an error message says the function is undefined.

View Replies !
Mysql_connect Behaviour
I have a function to connect to mysql which can be called several times during the running of a script:

function ConnectToDb($server, $user, $pass, $database)
{
$s = mysql_connect($server, $user, $pass); //or die ( "<H3>Server unreachable</H3>");
$d = mysql_select_db($database, $s);

if(!$s || !$d)
return false;
else
return true;
}
The function and script works fine. But if I remove the comments so that the mysql_connect reads:

$s = mysql_connect($server, $user, $pass) or die ( "<H3>Server unreachable</H3>");
Then the first attempt to connect works fine but a second attempt  to connect fails and the script dies here.

Does anyone know why this happens?

View Replies !
Arguments Of Mysql_connect
what do the arguments of the following mysql statement stand for?

mysql_connect([host][ort][:socket][, username][, password])

i mean what i can put instead of host, port , and socket.

View Replies !
Mysql_connect(): Too Many Connections
I just tried to visit my site and got the following error:

Warning: mysql_connect(): Too many connections in /home/httpd/vhosts/example.com/httpdocs/connect.php on line 2
Too many connections

Can ANYONE please tell me whats happenned and how to fix it?

View Replies !
Mysql_connect Vs Mysql_pconnect
I have developed a script that needs to make several calls to a database. I originally wrote it using mysql_connect. After looking everything over, I realized that one page load might have to open a database connection 5 or more times. Thus I went in search of a "better" method. After reading up on mysql_pconnect, I backed up my files and rewrote the script with one single mysql_pconnect at the beginning and tested it. I know that this opens a "persistant" connection and that there are some issues when using persistant connections.

I haven't had any issues arise from the change, but the script is not being used by more than a few people at a time during testing. Now, I just had a look at my php.ini file and noticed that the "mysql.allow_persistent" is set to off. Yet, the script still works fine. If mysql_pconnect works, even if mysql.allow_persistent is set to off, why write any other way? One "open database call" as apposed to several throughout one script seems more efficient to me?

View Replies !
Mysql_connect() Error
I have no idea what this error is. Can someone please help me out and explain to me what it means. Quote:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

View Replies !
Mysql_connect()---undefined
help me with this one....

Undefined error: mysql_connect("localhost",' ', ' '):;

WAMP5 server.

View Replies !
Mysql_connect () Error
I'm in the process of trying to connect to a database with the following: PHP Code:

$db_conn = mysql_connect("localhost", "root", "97svt") or die("unable to connect to the database");
mysql_select_db("techdb", $db_conn) or die("unable to select the database");

And I get an error like this one:

Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:ApacheApache2htdocsForumconfig.php on line 14
unable to connect to the database

I wanted to see if I have done something wrong. I'm using Apache 2.0 and MySQL 4.1.

View Replies !
Mysql_pconnect AND Mysql_connect
I have a problem with one of the scripts i wrote. The script uses seperate files. There's functions.php and some other files that use the functions.php file. Here's a little code fragment that needs to be changed in the functions.php file:

if($db = mysql_pconnect($dbhost, $dbuser, $dbpasswd)){
mysql_select_db($dbname, $db);
} else {
echo mysql_error();
exit();
}

I'm trying to convert the mysql_pconnect to a mysql_connect because my server doesn't allow more than X amount of concurrent connections to the database. I already tried changing the call to mysql_connect but I get a "No database selected" error when I run it. Any ideas?

View Replies !
Warning: Mysql_connect():
I just went to visit a website and i click on their forum link and this is what i got. Are they having problems w/ their site?

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in /home/bam2x/public_html/forums/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/bam2x/public_html/forums/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/bam2x/public_html/forums/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database .

View Replies !
Mysql_connect.php'
I have the code below: PHP Code:

<?php

session_start();

require_once ('../../mysql_connect.php'); // Connect to the database.

?>

<div id="Layer1" style="position:absolute; left:12px; top:14px; width:669px; height:26px; z-index:1"><span class="style1"><?php virtual('../includes/header.php'); ?></span></div>
<div id="Layer3" style="position:absolute; left:80px; top:86px; width:521px; height:172px; z-index:3">
.......................

View Replies !
Mysql_connect Comand
I am using webuilder software wich permits me to view and test php code locally, i had to install php-5.2.3-zip_package for this but now i try to use the comand mysql_connect and i get the error message: Call to undefined function mysql_connect() why is that happenning.

View Replies !
Mysql_connect Failed
I am running MYSQL 4.1.17, PHP 4.3.9 under apache 2.0.52 on solaris. PHP seems to work fine, except that it can't connect to mysql database. I got this error:

Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client

But MYSQL 4.1.17 is the latest version, and PHP 4.3.9 is the latest 4 version. Should I try PHP 5.0.2 or downgrade apache?

View Replies !
PHP Mysql_connect Password Security
I am looking for a secure way to store the password required for PHP's mysql_connect function.

View Replies !
Mysql_connect And Encrypted Password
Is it possible to give to mysql_connect an encrypted (md5 or sha1)
password? If not is there a workaround? I store passwords for users in database and don't want to use plain text passwords.
Then I use that information to connect to the database. So every user
have his own database. They are usually not in the same host even. So it would be nice to be...

View Replies !
Mysql_connect Can't Create A New Thread
I am continualy receiving the following type of error in my browser
from programs using php/mysql

Warning: mysql_connect(): Can't create a new thread (errno 11). If you
are not out of available memory, you can consult the manual for a
possible OS-dependent bug in
/home/httpd/vhosts/netvantage.com.au/httpdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php
on line 318

Cannot connect to MySQL server on 'localhost'. Please make sure you
have specified a valid MySQL database name in 'include/config.php'.

This requires me to do a manual kill and restart of mysql as it won't
restart gracefully. mysqld itself does not appear to be crashed but I
am getting the above error on all sites using mysqld (eg oscommerce,
plesk controlpanel) and need to restart it to get the sites working
again.
The mysql server version is mysql-3.23.58-1.9 and php is php-4.3.4. In
mysql I have increased the max_connections to 1024.

I am also receiving the following strange error and received it about
140 time in the last 24 hours in my httpd error_log (on RedHat 9
Apache/2.0.40 )

ERROR: can't parse '#FF0000:Busy'

There are no other associated errors or strange errors in the Apache
error logs.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved