Re: Help me
| From: | Joel Allyn Cron | Date: | Mon, 04 Aug 2003 12:27:51 +0000 |
| Subject: | Re: Help me | ||
| Groups: | php.pear.dev php.pear.general | ||
| Request: | Send a blank email to pear-dev+get-19259@lists.php.net to get a copy of this message | ||
Seems like mysql_select_db tries to connect as if with mysql_connect without arguments if you
haven't already established a link. Perhaps your newer version of mysql requires a password.
I would set up a user with the permissions you need to run your scripts and use mysql_connect or
mysql_pconnect with the user name and password required. If you use mysql_pconnect, I believe you
can switch dbs with mysql_select_db with the identifier returned by that call.
Hope this helps.
Joel
-----Original Message-----
From: Mohsen Pahlevanzadeh <m_pahlevanzadeh@linuxquestions.net>
To: pear-dev@lists.php.net
Date: Mon, 4 Aug 2003 02:01:17 -0700 (PDT)
Subject: [PEAR] Help me
Hi dears.I already has RH 7.3 & good works.
But i install RH 9.0 & i can insert or select by mysql command.But when i using
mysql_select_db("smr") or die(mysql_error()), program print "Access denied for user:
'@localhost' to database 'smr'".But i can use insert command by mysql
command.
Even user & group is mysql mysql.
I did't manipulate MySQL or PHP.Please guide me...
--regards
_____________________________________________________________
Thank you for choosing LinuxQuestions.
http://www.linuxquestions.org
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php