If you get PHP Warning: mysql_connect(): No such file or directory and unable to connect mysql through php then change localhost to 127.0.0.1 while connecting to database
example:
$connection = mysql_connect('localhost', 'root', 'password');
to
$connection = mysql_connect('127.0.0.1', 'root', 'password');
example:
$connection = mysql_connect('localhost', 'root', 'password');
to
$connection = mysql_connect('127.0.0.1', 'root', 'password');
Please tell how to add php code to my Blogger Blog? Any way to add those nice php gadget like pop up facebook box etc to my technology Blog? And how to add mysql to Blogger?
ReplyDeleteThank you for sharing such a wonderful Information !!
ReplyDeleteHere is a list of Top LINUX INTERVIEW QUESTIONS
Veritas Cluster Interview Questions
Redhat Cluster Suite Commands
SAMBA Server Interview Questions
Linux FTP vsftpd Interview Questions
SSH Interview Questions
Apache Interview Questions
Nagios Interview questions
IPTABLES Interview Questions
Ldap Server Interview Questions
LVM Interview questions
Sendmail Server Interview Questions
YUM Interview Questions
NFS Interview Questions
Tcpdump Command Examples & Usages
Example of YUM Commands
Read More at :- Linux Troubleshooting