× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

mysql-server installation on Duo

sgallou
Follower

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:
Message 1 of 2
mfe_
Tutor

Re: mysql-server installation on Duo

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.
Message 2 of 2
Top Contributors
Discussion stats
  • 1 reply
  • 3500 views
  • 0 kudos
  • 2 in conversation
Announcements