mysql connect problem
| From: | Jim & Sara Feldman | Date: | Tue, 24 May 2005 21:14:57 +0000 |
| Subject: | mysql connect problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-215804@lists.php.net to get a copy of this message | ||
Hi:
I have recently upgraded from a Mac G4 running OS 10.3.9 to a G5 running OS 10.4. I ported a working PHP app and upgraded from PHP 4.3.4 to 4.3.10 and MySQL 4.0.17 to 4.1.11. I am having a problem connecting to MySQL from PHP.
I can connect to the database using either phpMyADMIN or directly from terminal mode using MySQL commands. However, when I try to enter the database from php, using
$result = mysql_pconnect("localhost", "api_user", "97533");
I get $result = FALSE. This command works on the old system as does the MySQL command:
mysql -u api_user -p
I am using the identical php.ini on the new and old machines. Any help in getting over this hurdle would be appreciated.
Jim
--
Jim Feldman
14 Linda Lane
Newton, MA 02461
617-527-0509