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 2012-01-27 11:18:26

mati730
New member
Registered: 2012-01-26
Posts: 3

Install mysql server with ffp 0.7

I try to install mysql package from ffp 0.7

The install is ok...


fetch: found /ffp/funpkg/cache/s/mysql-5.1.61-oarm-1.txz
/ffp/funpkg/cache/s/mysql-5.1.61-oarm-1.txz: OK

/ffp/bin/funpkg -i /ffp/funpkg/cache/s/mysql-5.1.61-oarm-1.txz

Scanning /ffp/funpkg/cache/s/mysql-5.1.61-oarm-1.txz ...
# mysql - The world's most popular open source database
#
# MySQL is a relational database management system (RDBMS) that runs as a server
# providing multi-user access to a number of databases. It is named after
# developer Michael Widenius' daughter, My. The SQL phrase stands for Structured
# Query Language. (Wikipedia)
#
# Homepage: http://mysql.com/
#
Installing mysql-5.1.61-oarm-1

Searching for *.new files: /ffp/etc /ffp/start
Done.


I install db

root@NAS:/srv# /ffp/bin/mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/ffp/bin/mysqladmin -u root password 'new-password'
/ffp/bin/mysqladmin -u root -h NAS password 'new-password'

Alternatively you can run:
/ffp/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /ffp ; /ffp/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /ffp/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /ffp/bin/mysqlbug script!



But after... how to start the MySQL server for further configuration... ?
where is the conf file example... ? and the daemon mysqld.sh to start ?

Offline

 

#2 2012-01-27 21:04:07

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Install mysql server with ffp 0.7

mati730 wrote:

But after... how to start the MySQL server for further configuration... ?
where is the conf file example... ? and the daemon mysqld.sh to start ?

You can find example config files in /ffp/etc/mysql. The start script was indeed missing. I updated the package. Please try "slacker -Uu s:mysql" to upgrade.

Offline

 

#3 2012-01-28 11:33:11

mati730
New member
Registered: 2012-01-26
Posts: 3

Re: Install mysql server with ffp 0.7

Ok for the conf file and the start script.
No error when i start but when i want to secure the install i have :

ERROR 2013 (HY000): Lost connection to MySQL server at 'sending authentication information', system error: 32

Offline

 

#4 2012-02-19 19:43:08

stupid_productions
New member
Registered: 2012-02-19
Posts: 1

Re: Install mysql server with ffp 0.7

mati730 wrote:

Ok for the conf file and the start script.
No error when i start but when i want to secure the install i have :

ERROR 2013 (HY000): Lost connection to MySQL server at 'sending authentication information', system error: 32

I'm getting the same thing. If you hit enter quickly it will work, almost like it times out after 1 second.

Offline

 

#5 2012-03-12 20:21:09

KirilApostolov
New member
Registered: 2012-02-01
Posts: 3

Re: Install mysql server with ffp 0.7

mati730 wrote:

Ok for the conf file and the start script.
No error when i start but when i want to secure the install i have :

ERROR 2013 (HY000): Lost connection to MySQL server at 'sending authentication information', system error: 32

I'm getting same error too. sad

Offline

 

#6 2012-07-06 23:53:51

Uriens
Member
Registered: 2008-05-17
Posts: 13

Re: Install mysql server with ffp 0.7

I could start the mysql deamon under ffp 0.7 with the following start script. Not as sophisticated as the mysql.server start script, but works...

Code:

#!/ffp/bin/sh

# PROVIDE: mysqld
# REQUIRE: LOGIN

. /ffp/etc/ffp.subr

name="mysqld"
start_cmd="mysqld_start"
stop_cmd="mysqld_stop"
status_cmd="mysqld_status"

TMPDIR=/srv/tmp/mysql/
DATADIR=/mnt/usb/www/mysql/
mysqld_flags="--skip-networking --user=root --tmpdir=$TMPDIR --datadir=$DATADIR"

mysqld_start()
{
        mkdir -p $TMPDIR
        /ffp/bin/mysqld_safe $mysqld_flags </dev/null &
}

mysqld_stop()
{
    proc_stop mysqld
}

mysqld_status()
{
    proc_status mysqld
}

run_rc_command "$1"

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB