
February 19th, 2007, 08:14 AM
|
|
Registered User
|
|
Join Date: Apr 2007
Posts: 22,309
Time spent in forums: < 1 sec
Reputation Power: 24
|
|
|
PHP MySql installation
Hi,
I am new to php & learning from last week. I have installed php successfully after struggling of 3 days. Yesterday i tried to access the my sql database but couldnt. I tried to investigate to find why php cant be able to access my sql.
The following are the properties i have set up manually in php.ini in windows directory.
mysql.default_port string
The default TCP port number to use when connecting to the database server if no other port is specified. If no default is specified, the port will be obtained from the MYSQL_TCP_PORT environment variable, the mysql-tcp entry in /etc/services or the compile-time MYSQL_PORT constant, in that order. Win32 will only use the MYSQL_PORT constant.
mysql.default_socket string
The default socket name to use when connecting to a local database server if no other socket name is specified.
---- There is no port in /etc/services against my sql. Can you please suggest me what how could i maintain the port no in services file.
mysql.default_host string
The default server host to use when connecting to the database server if no other host is specified. Doesn't apply in SQL safe mode.
I have changed it to localhost
mysql.default_user string
The default user name to use when connecting to the database server if no other name is specified. Doesn't apply in SQL safe mode.
i have set up manually root
mysql.default_password string
The default password to use when connecting to the database server if no other password is specified. Doesn't apply in SQL safe mode.
set up the password manually root.
Can you please explain me why its not working....still
|