当我运行这个查询时,MySQL 给了我一个错误:
mysqli_query($connect,"GRANT SELECT,INSERT ON myblog.*
TO '$username'@'localhost' IDENTIFIED BY
(SELECT user_password from users where user_name = '$username')")
or die("fail to grant ".mysqli_error($connect));
这个查询有什么问题?有没有更好的解决方案?