LAMP on FC4
hi there,
I was going to update PHP, Apache and MySQL on my Fedora Core 4 with yum, so I've run this command by root: Code:
# yum update apache mysql php Quote:
Quote:
Quote:
Code:
# yum remove php Quote:
Code:
$link = @mysql_connect($host,$dbuser,$dbpwd) or die(ERROR_NO_COMMUNICATION_WITH_SERVER); Code:
$link=mysql_connect(localhost,$dbuser,$dbpwd); Quote:
|
My observations: in one case you have an '@', in the other you don't. Also, your use of `localhost' seems very barewordy to me. I'm no PHP expert, by far, but see where these two ideas go.
|
First of all, thanks for paying attention to my problem! :)
Missing '@' was misprint. In the code '@' is present. The problem is that sourcecodes (php-scripts) were not modified! They worked perfectly with old software. Trouble with mysqlconnect appears only after updating software. Note that software wasn't updated to critically new versions!.. |
don't know which php version you were running before, but there are big diferences between php 4 and 5 of course.
Maybe you can also check your localhost entry in /etc/hosts to see if it still points to 127.0.0.1 |
Quote:
Quote:
Code:
$ cat /etc/hosts |
Is your MySQL server actually running?
|
Sure. I can connect it via ip address 127.0.0.1 but not hostname localhost...
|
All times are GMT -5. The time now is 06:18 AM. |