mysql in chroot
chougulepavan@gmail.com
Registered Users Posts: 1 ■□□□□□□□□□
in Linux+
Hello,
I am trying to use mysql in my chroot env. i have mounted chroot through usb and try to access mysql in that,but it gives me error that Running in chroot,ignoring the request,and i check with port also it is not running on my basic system still gives me error when i am trying to use mysql can not connect to localhost mysql server:/var/lib/mysql/mysql.sock, the chroot directory is nothing but complete fc17 on it and my basic system also fc17, so i am not able to understand how am i start mysql in chroot ? help me with this.
Thanks,
Prashant
I am trying to use mysql in my chroot env. i have mounted chroot through usb and try to access mysql in that,but it gives me error that Running in chroot,ignoring the request,and i check with port also it is not running on my basic system still gives me error when i am trying to use mysql can not connect to localhost mysql server:/var/lib/mysql/mysql.sock, the chroot directory is nothing but complete fc17 on it and my basic system also fc17, so i am not able to understand how am i start mysql in chroot ? help me with this.
Thanks,
Prashant
Comments
-
W Stewart Member Posts: 794 ■■■■□□□□□□Are you trying to actually run mysql from the flash drive? I guess it's possible if you have a linux environment set up on the flash drive with the mysql service running but I'm not completely sure what you're trying to do here. You need to at least verify that the mysql service is running before you can connect to the database at localhost and that's if you are trying to actually connect to localhost and not to some other device.
-
W Stewart Member Posts: 794 ■■■■□□□□□□I think I see what you're trying to do now. Assuming that you can connect to mysql from outside of the chroot environment, you need to configure your /etc/my.cnf file(desktop) to create the socket file on your flash drive in order to connect to mysql while chrooted into the flash drive.