Forum Discussion
Attached is the log file, if you see the complete command is when it says the following:
Now going to run complete command line [/bin/su mysql -c 'cd /usr ;/usr/bin/mysqld_safe --datadir=/opt/mysql/pisdata --user=mysql ']
If I run this command manually, database starts and resource becomes online after some time due to monitor scritp, but if I online with gui interface it does not work...
[root@msql01 ~]# /bin/su mysql -c 'cd /usr ;/usr/bin/mysqld_safe --datadir=/opt/mysql/pisdata --user=mysql ' &
[1] 30726
[root@msql01 ~]# 2017-05-09T09:32:05.442027Z mysqld_safe Logging to '/var/log/mysqld.log'.
2017-05-09T09:32:05.447169Z mysqld_safe Logging to '/var/log/mysqld.log'.
2017-05-09T09:32:05.490017Z mysqld_safe Starting mysqld daemon with databases from /opt/mysql/pisdata
[root@msql01 ~]# ps -fea | grep mysql
root 30726 28146 0 12:32 pts/0 00:00:00 /bin/su mysql -c cd /usr ;/usr/bin/mysqld_safe --datadir=/opt/mysql/pisdata --user=mysql
mysql 30727 30726 0 12:32 ? 00:00:00 bash -c cd /usr ;/usr/bin/mysqld_safe --datadir=/opt/mysql/pisdata --user=mysql
mysql 30728 30727 0 12:32 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/opt/mysql/pisdata --user=mysql
mysql 30898 30728 1 12:32 ? 00:00:00 /usr/bin/mysqld --basedir=/usr --datadir=/opt/mysql/pisdata --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
root 30935 28146 0 12:32 pts/0 00:00:00 grep mysql
[root@msql01 ~]#
Related Content
- 2 months ago
- 5 months ago
- 12 years ago