|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
When using submitform.php3, the MYSQL connection fails. I am denied access ...the line in question is the following..mysql_connect (localhost,username,password) I have inserted my username and password without quotes. Should I be filling something into the localhost area.
|
|
#2
|
|||
|
|||
|
host, username and password should ALL be in quotes, unless you are using variables to pass them to the function.
|
|
#3
|
|||
|
|||
|
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by rod k:
host, username and password should ALL be in quotes, unless you are using variables to pass them to the function.[/quote] Where do I go to see what my host_server name, username. password is?? I am new to php and to test it out I installed a script on my server. I go to the browser and point is to the admin index file. This is what I get; Warning: Unknown MySQL Server Host (dweb) (0) in lib.inc.php3 on line 124 The original script came with "localhost" but that wasn't working either. Where should I look for the MySQL server host info? Shoul I also set up a username and password while there? How? Thank you for any help? ------------------ Distributors Web Get Real.....Go Virtual! http://distributorsweb.com/sig |
|
#4
|
|||
|
|||
|
Where is mysql located? If you have a host, they will tell you what your username and password are. If you set it up yourself then you have to create permissions and assign a username and password. See GRANT in the mysql manual. If localhost isn't working it means that you are running php and mysql on different machines. If so, you need to give the URL or IP address of the machine that mysql is on. Note also that you have to have permission to connect from a particular machine.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > localhost ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|