删除mysql的/var/lib/mysql目录下的所有文件

 

 

https://blog.csdn.net/tr1912/article/details/81271851

# mysqld --initialize --user=mysql
[root@localhost cyx]# cp /etc/my.cnf /etc/my.cnf.bak
[root@localhost cyx]# vim /etc/my.cnf
[root@localhost cyx]# cd /var/lib/mysql
 /var/lib/mysql

 

# mv mysql mysql-bak-cyx
[root@localhost lib]# mysqld --initialize --user=mysql
[root@localhost lib]# systemctl status mysqld

相关文章:

  • 2021-12-25
  • 2022-12-23
  • 2021-06-03
  • 2021-04-10
  • 2022-12-23
  • 2022-02-13
猜你喜欢
  • 2021-11-29
  • 2021-07-11
  • 2022-12-23
  • 2022-01-15
  • 2021-12-05
  • 2022-12-23
  • 2022-01-18
相关资源
相似解决方案