|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
php install with mysql
Hi
I have latest stable release of php,apache,mysql but I can't conncect between mysql with php on apache. I can create a database and tables with command prompt in mysql. On the php info script test mysql appears. I try to access a database with php from mysql. The errors I get is Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C |
|
#2
|
|||||
|
|||||
|
RE: php install with mysql
Yup. Setup is wrong. Nah just joking.
I assume that you have a MySQL username and password. If so, your code should look like this: php Code:
As you can see, to connect with php to MySQL you need the host, username and password. Hope this helps. |
|
#3
|
|||
|
|||
|
RE: php install with mysql
q) I don't have a username or password setup and I don't want one either. Where do I effect the username/password?
q)When I do the server instance wizard (mysql)the security part fails on me as it claims port 3363 on is not open and to check the firewall, does this effect php ? |
|
#4
|
|||
|
|||
|
RE: php install with mysql
A) A password is not necessary, but you still need a user. Run winmysqladmin.exe to setup user (or server instance wizard).
A) It does not effect php much but MySQL gets whacked since it uses a port. Windows XP SP2 is very picky about security. Click start >> control panel >> Windows firewall. Click the Exceptions tab and click on "Add Port...". Type MySQL as the name and 3363 as the port number. Leave selection at TCP. Click OK. Click OK again. Windows should now not complain about port 3363. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > php install with mysql |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|