php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #604 fuzzy error message, does not connect to Mysql server
Submitted: 1998-07-31 19:54 UTC Modified: 1998-08-01 12:42 UTC
From: ddw at elender dot hu Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0.2a OS: Linux 2.0.29 /CalderaOpenLinux L
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ddw at elender dot hu
New email:
PHP Version: OS:

 

 [1998-07-31 19:54 UTC] ddw at elender dot hu
PHP is a static apache module, apache v. 1.3.1



The error message is:
Warning: U??f?4WVS? in system.php on line 8
         ^^^^^^^^^^!!!!!!!!!!
Warning: 0 is not a MySQL link index in system.php on line 9
Cannot select database. 

the script is (comments left for explicit line numbers):
<?  
#  SecureVar("Sec_.*");
#  SecureVar("HOST.*");
#  SecureVar("SERVER.*");
#  $mail="gergo@dlux.rulez.org ";


  $conn=mysql_connect('anna.argent.hu');
  if(!mysql_select_db("cdabcd",$conn)){echo ("Cannot select database.\n");}
?>
The mysql server is v. 3.21.33, works properly. The database cdabcd exists. The error is the same if I give mysql username/password, with single quotes, double quotes as well. it is also the same with mysql_pconnect.
Ooops, it works with 
mysql_pconnect('127.0.0.1'); /I have just found it.../
But, my nameservice works, the /etc/hosts file is OK.

And a PHP2 incompatibility:
securevar() is not implemented (?)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-01 12:42 UTC] zeev
There seems to be a problem with your MySQL server.  Look:
19:36 bourbon-ttya1 bourbon:~/php3/cgi> telnet anna.argent.hu 3306
Trying 194.143.224.45...
Connected to anna.argent.hu.
Escape character is '^]'.
U??4WVS?Connection closed by foreign host.

Not too surprisingly, the fuzzy error text is exactly the error text you get as the result failure.
The same error occurs if I use the standard mysql client, 'mysql':
19:37 bourbon-ttya1 bourbon:~/php3/cgi> mysql -h anna.argent.hu
ERROR: U??4WVS?


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC