Hello!
After several hours of searching web I give up.
Problem: I want to run mysqld with datadir option
When I run it manually without --datadir everything is fine
I have added required lines to /etc/apparmor.d/usr.sbin.mysqld and restarted apparmor
Quote:
/sys/devices/system/cpu/ r,
/disk0/mysql r,
/disk0/mysql/** rwk,
|
Then I copy /var/lib/mysql to my location, carefully, 10 times checking all the permissions and run. But daemon exits immediately after running.
Quote:
sudo mysqld_safe --datadir=/disk0/mysql --user=mysql
101222 11:29:46 mysqld_safe Logging to syslog.
101222 11:29:46 mysqld_safe Starting mysqld daemon with databases from /disk0/mysql
101222 11:29:47 mysqld_safe mysqld from pid file /disk0/mysql/d-st-n1.pid ended
|
I go to check syslog and see nothing
Quote:
Dec 22 11:29:46 d-st-n1 mysqld_safe: Starting mysqld daemon with databases from /disk0/mysql
Dec 22 11:29:47 d-st-n1 mysqld_safe: mysqld from pid file /disk0/mysql/d-st-n1.pid ended
|
Any ideas ?