Error Dropping Database (Can't rmdir '.test\', errno: 17)

后端 未结 17 2283
误落风尘
误落风尘 2020-11-28 22:09

Basically, I was taught on how to create a root password using the \"mysqladmin -u root -p password\" command, this was done all through the windows command editor. Now, the

17条回答
  •  遥遥无期
    2020-11-28 22:25

    mysql -s -N -username -p information_schema -e 'SELECT Variable_Value FROM GLOBAL_VARIABLES WHERE Variable_Name = "datadir"'
    

    The command will select the value only from MySQL's internal information_schema database and disables the tabular output and column headers.

    Output on Linux [mine result]:

    /var/lib/mysql
    

    or

    mysql> select @@datadir;
    

    on MYSQL CLI

    and then

    cd /var/lib/mysql && rm -rf test/NOTEMPTY
    

    change path based on your result

提交回复
热议问题