NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

sgallou's avatar
sgallou
Follower
Nov 16, 2012

mysql-server installation on Duo

I'm newbie on the ReadyNas Duo (and generally on Linux), and I have trouble installing mysql-server (I need it because I want to try domogik on the Nas).

First I think that mysql-server was already installed on the Nas, but nothing in the running process (I also try to start the daemon with no error code but no sql process was running).

So I tried to install it by apt-get, installation seems ok, but post-installation step seems KO :

nas:/usr/bin# apt-get install mysql-server
Reading Package Lists... Done
Building Dependency Tree... Done
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 73 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up mysql-server (4.0.24-10sarge3) ...
/var/lib/dpkg/info/mysql-server.postinst: line 99: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server.postinst: line 159: logger: command not found
dpkg: error processing mysql-server (--configure):
subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


Nevertheless, I tried to log on sql :
nas:/usr/bin# mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


no '/var/run/mysqld/mysqld.sock' file exists...

I also try the MySqlOn add-on (+ reboot), without success.

Please help me... :cry:

1 Reply

Replies have been turned off for this discussion
  • Try to execute:

    /usr/sbin/mysqld -- \
    --basedir=/usr --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --socket=/var/run/mysqld/mysqld.sock


    If this dont work, look into the config file /etc/mysql/my.cnf and enable logging.

    Then view the errormessage with tail yourPathToLogFile.

    I had an issue, that the user admin wasn't the owner of the mysql datadir folder.

    Good luck.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More