Bind Mount Essential Directories: Bind mount essential directories from the live system to the corresponding directories inside your mounted root directory.
bashmount --bind /dev /mnt/dev mount --bind /proc /mnt/proc mount --bind /sys /mnt/sys
Chroot into the Mounted System: Change the root to the mounted directory.
bashchroot /mnt
Create Missing Directories (if necessary): If MySQL is complaining about missing directories such as
/var/run/mysqld
, create them manually.bashmkdir -p /var/run/mysqld
sudo su -u mysql mysqld --defaults-file=/etc/my.cnf &
No hay comentarios:
Publicar un comentario