note 55976 added to function.mysql-connect
| From: | rob at bronco dot co dot uk | Date: | Fri, 19 Aug 2005 13:49:40 +0000 |
| Subject: | note 55976 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93902@lists.php.net to get a copy of this message | ||
In a follow-up to Anthony Boyd, if you have the relevant capability you can also start the MySQL
server with the --old-passwords option, or put the line "old_passwords" in to my.cnf/other
MySQL config file, eg:
language = /usr/share/mysql/english
max_connections = 1000
skip-external-locking
old_passwords
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
bind-address = *.*.*.*
key_buffer = 256M
I prefer this option as it is more transparent to processes creating passwords that you do not
control, eg phpMyAdmin or - in my case - debian maintenance scripts.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55976
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55976&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55976&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55976&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55976&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55976&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55976&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55976&report=yes
Search -- http://master.php.net/manage/user-notes.php