chroot mysqld
running a minimal install Debian Sarge w/ Mysql-server-4.1 installed
I am trying to have mysql run in a chroot. and for the most part it seems i have done it but when i run lsof|grep mysql Code:
mysqld 3253 mysql mem REG 3,1 33440 22394 /var/chroot/mysql/lib/tls/libnss_nis.so.2 |
If nothing shows up, I suggest the possibility that the mysql server is not running.
I just tried it on SuSE, which puts it all in /var/lib, instead of /var/run. It worked fine, AFTER I ran /usr/bin/mysql_safe (to start the mysql server), then ran updatedb, then ran 'ls /var/lib/mysql/mysql.sock". It was all there. So. The question I have to ask is, did you start the mysql server? |
:D Yes. I did. And it runs fine. I can start and stop it. I can access the database from localy and remotely. So everythign seems like it is working
except that lsof shows /var/run/mysqld/mysqld.sock my concern is that it is opened from /var/chroot/mysqld/var/run... and when i do an ls of /var/run/mysqld. the file mysqld.sock is not there. other then the mysqld.sock issue, which is vexing, i do not have any problems with it. well none i can see at the moment. |
All times are GMT -5. The time now is 06:48 AM. |