Skip to main content

Posts

Showing posts from October, 2012

MySQL failed to start on Linux. 0 upgraded, 0 newly installed, 0 to remove and 464 not upgraded.

root@ubuntu:~# sudo apt-get install mysql-server  Reading package lists... Done Building dependency tree        Reading state information... Done mysql-server is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 464 not upgraded. The above installation error appearing while I've try to install my sql server, so it shows that installation has been broken, so you need to remove all the my sql server logs which are partially installed on linux, then again install it as the following steps, apt-get purge mysql-server apt-get purge mysql-common rm -rf /var/log/mysql rm -rf /var/log/mysql.* rm -rf /var/lib/mysql rm -rf /etc/mysql # and then: apt-get install mysql-server --fix-missing --fix-broken"

fatal error function name must be a string in php

In this below PHP programming I came across the following error <?php $user_ip = $_SERVER('REMOTE_ADDR');  echo $user_ip; ?> it  gives the error output in browser as " fatal error function name must be a string  on line 2 " so after checking that code I used ('REMOTE_ADDR') instead of ['REMOTE_ADDR'] so this could be the error free coding <?php $user_ip = $_SERVER ['REMOTE_ADDR'];  echo $user_ip; ?> o/p 127.0.0.1