Mysql Assign User to Access Specific Database
Today, using a new user to access the mysql of the cloud server, I found that an error was reported and I could only access the infomation_schema database. Following the method on the blog to enter the command grant all privileges on test_db.* to testuser@localhost identified by "123456", mysql kept reporting errors.
I have been following the blog to grant permissions but it reports errors. I feel it should be due to version inconsistency causing command changes.
Sure enough, I found this command in the instruction document of refman-8.0-en.
Since I just started with mysql, I rely mostly on blogs and baidu. In fact, I should check these query methods against the instruction documents, instead of blindly believing a single solution, which causes precious working time to be wasted on meaningless debugging.


