错误 3680 (HY000):无法创建模式目录 'test'(错误号:13 - 权限被拒绝)
ERROR 3680 (HY000): Failed to create schema directory 'test' (errno: 13 - Permission denied)
我用自制软件添加了 mysql。我尝试使用
创建一个 table
$ mysql -uroot
然后
mysql> create database test;
我明白了
ERROR 3680 (HY000): Failed to create schema directory 'test' (errno: 13 - Permission denied)
编辑
很可能您的 MySQL 数据目录中的权限是错误的。
查看您的数据目录并确保它属于使用 MySQL 是 运行 作为。
我用自制软件添加了 mysql。我尝试使用
创建一个 table$ mysql -uroot
然后
mysql> create database test;
我明白了
ERROR 3680 (HY000): Failed to create schema directory 'test' (errno: 13 - Permission denied)
编辑
很可能您的 MySQL 数据目录中的权限是错误的。
查看您的数据目录并确保它属于使用 MySQL 是 运行 作为。