Special for you I test my note. Log:
Code: Select all
Welcome to NAS4Free!
nas4free:~# mkdir -p /mnt/data/db/mysql
nas4free:~# chmod 777 /mnt/data/db
nas4free:~# ln -s /mnt/data/db/mysql /var/db/mysql
Now
I create user and group over webgui.. Continue log
Code: Select all
nas4free:~# pkg_add -r mysql50-server
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release/Latest/mysql50-server.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release/Latest/mysql50-server.tbz' by URL
nas4free:~# setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/Latest/
nas4free:~# pkg_add -r mysql50-server Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/Latest/mysql50-server.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/All/mysql-client-5.0.95.tbz... Done.
===> Creating users and/or groups.
Using existing group 'mysql'.
Using existing user 'mysql'.
************************************************************************
Remember to run mysql_upgrade (with the optional --datadir=<dbdir> flag)
the first time you start the MySQL server after an upgrade from an
earlier version.
************************************************************************
nas4free:~# rehash
nas4free:~# 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:
/usr/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h nas4free.local password 'new-password'
Alternatively you can run:
/usr/local/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 /usr/local ; /usr/local/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/local/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Code: Select all
nas4free:~# chown -R mysql:mysql /mnt/data/db/mysql/
nas4free:~# mysqld_safe &
[1] 4625
nas4free:~# Starting mysqld daemon with databases from /var/db/mysql
Now you can check into /mnt/data/db/mysql/ files nas4free.local.err and nas4free.local pid. pid is 4625.
You can check your link with winscp. Go to /var/db, you can see such picture
If you see link from mysql folder, try open it - you must jump into
/mnt/data/db/mysql with content.
Also, I use ufs formatted disk, I can not use zfs. If you use zfs, please check behavior links on it .
nas4free.local.err content is
130221 07:49:02 mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
130221 7:49:02 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
130221 7:49:02 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
130221 7:49:02 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
130221 7:49:03 InnoDB: Started; log sequence number 0 0
130221 7:49:03 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.0.95' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-5.0.95
You do not have the required permissions to view the files attached to this post.