更新时间:2023-02-20 09:22:19
如果php.ini
中的 on 中的sql.safe_mode
(不是PHP安全模式),则PHP始终使用脚本连接到SQL Server的所有者,而不是mysql_connect()
中指定的用户.
If the sql.safe_mode
(NOT the PHP safe mode) in on in the php.ini
, PHP is always using the script owner to connect to the SQL server and not the user specified in mysql_connect()
.
在配置过程中我混用了属性safe_mode
和sql.safe_mode
,这花了我6个小时!
I mixed up the property safe_mode
and sql.safe_mode
during the configuration and it cost me 6 hours!