安装前的数据库连接权限问题
-
使用MariaDB,创建了名为test_com的数据库,并创建了名为testuser的用户。
create user ‘testuser’@’localhost’ identified by ‘testpassword’;
之后赋予权限
grant all on test_com.* to ‘testuser’@’localhost’ identified by ‘testpassword’;
启动install.php时,提示用户名密码正确,但无法连接test_com数据库。
如果通过
grant all on *.* to ‘testuser’@’localhost’ identified by ‘testpassword’;
再启动install.php时就一切正常。但这样但话testuser就拥有了所有数据库的权限,而不只是test_com数据库。求助,谢谢。
- 话题 ‘安装前的数据库连接权限问题’不再接受新回复。