Ubuntu WSL2.my.cnf.42';被忽略

Ubuntu WSL2.my.cnf.42';被忽略,ubuntu,mariadb,windows-subsystem-for-linux,mariadb-10.4,Ubuntu,Mariadb,Windows Subsystem For Linux,Mariadb 10.4,所以在Windows10上安装WSL2,安装ubuntu,安装apache Windows10版本2004(操作系统内置19041.21)/Ubuntu 18.04 现在正处于下一阶段,正在尝试安装mariadb。 已按照此处的说明安装 具体地 sudo apt-y安装mariadb服务器mariadb客户端 没有要求输入密码,因此执行下一步 sudo mysql\u安全安装 现在我得到了以下错误 Enter current password for root (enter for none)

所以在Windows10上安装WSL2,安装ubuntu,安装apache

Windows10版本2004(操作系统内置19041.21)/Ubuntu 18.04

现在正处于下一阶段,正在尝试安装mariadb。 已按照此处的说明安装

具体地
sudo apt-y安装mariadb服务器mariadb客户端
没有要求输入密码,因此执行下一步
sudo mysql\u安全安装
现在我得到了以下错误

Enter current password for root (enter for none):
Warning: World-writable config file '/mnt/c/Users/soup/.my.cnf.42' is ignored`
很明显,它忽略了/etc/mysql/my.cnf,因为它为用户/权限提供了正确的权限(如果是600644755,则没有区别)

并尝试使用windows临时文件。 在尝试时也是如此
sudo-service-mysql-restart
获取消息
mysql:unrecogned-service
显然出了问题 有人知道怎么解决这个问题吗?
谢谢

我已经放弃了这个,并且删除了mariadb并安装了mysql。 这是某种wsl错误,毫无疑问将在以后的版本中解决

完全清除

sudo apt-get remove --purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
sudo apt-get install mysql-server'
而是安装了mysql

sudo apt install mysql-server
sudo mysql_secure_installation
sudo service mysql start'

我已经放弃了这一点,并删除了mariadb并安装了mysql。这是一种wsl错误,毫无疑问,它将在稍后的版本中得到解决,完全清除mariadb的sudo apt get remove--purge mysql*sudo apt get autoremove sudo apt get autoclean sudo apt get remove dbconfig mysql sudo apt get dist upgrade sudo apt get install mysql server并改为安装mysql sudoapt安装mysql服务器sudo mysql\u安全安装sudo服务mysql启动
sudo apt install mysql-server
sudo mysql_secure_installation
sudo service mysql start'