Parameter ‘directory‘ is not a directory

删除.gradle 和 build文件夹

只删除build仍报错,.gradle找不到就在右键项目show in explore 在windows文件夹下找

参考

It seems that you are encountering an issue where the original data directory "/var/lib/mysql" is not empty. This can happen if there are existing files or directories present in that location before attempting to use it for MySQL. To resolve this issue, you have a few options: 1. Backup and remove existing data: If you don't need the existing data, you can back it up and then remove all the files and directories within the "/var/lib/mysql" directory. You can use the following commands to perform this: ``` sudo service mysql stop sudo mv /var/lib/mysql /var/lib/mysql_backup sudo mkdir /var/lib/mysql sudo chown -R mysql:mysql /var/lib/mysql sudo service mysql start ``` Please note that this will delete all the existing data, so make sure to back it up if you need it. 2. Specify a different data directory: If you want to keep the existing data intact, you can configure MySQL to use a different data directory. To do this, you need to edit the MySQL configuration file (usually located at "/etc/mysql/my.cnf" or "/etc/my.cnf") and change the "datadir" parameter to a different directory path. After making the change, restart MySQL for the new configuration to take effect. ``` sudo nano /etc/mysql/my.cnf # Find the line starting with "datadir" and change its value to a new directory path sudo service mysql restart ``` Remember to ensure that the new directory has sufficient permissions for the MySQL user. By following one of these approaches, you should be able to resolve the issue of the original data directory not being empty.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值