DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-09-25 03:17:52

pnin
Member
Registered: 2010-03-12
Posts: 15

Mysql install error

Another day, another error.

By following the instructions at http://81.216.140.39/dns-323/mysql_and_php/, using the files provided and with the help of http://nas-tweaks.net/CH3SNAS:Tutorials/Mysql I had success in installing Mysql, up to the testing point of using the testmysql.php example proposed in the tutorial.

I then proceeded to uninstall the two packages, keeping their config files in /ffp/etc, and installed more updated versions of php and Mysql (php-5.2.14-1 & Mysql-5.1.50-2) gotten from the usual repositories, thinking that by using updated versions I won't have to care about updating anytime soon. It's very fine but then I can't get past the "/ffp/bin/mysql_secure_installation" step, because when I try to enter a password it throws up the following error repeatedly until I abort with CTRL+C:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/ffp/var/run/mysql/mysql.sock' (2)

Does this mean I can't use the more recent versions? Or that the the config files have to be reset? Or is it something else?

Thanks for your help,

EDIT: after some searching the forum, was able to get past that error with a hint I got from viewtopic.php?id=1737&pid=15439#p15439; I issued the command below and "/ffp/bin/mysql_secure_installation" executed fine, since it appeared it was just looking for file 'mysql.sock' in the wrong path.

ln -s /ffp/var/mysql.sock /ffp/var/run/mysql/mysql.sock

But the server isn't working yet in lighttpd... sad

Last edited by pnin (2010-09-25 12:56:39)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB