简体   繁体   中英

Mysql super user can't create databases and only sees information_schema table

This is a recurring problem for some reason...

Using mysql 5.5, I am simply trying to create a user that can connect to the database remotely, have access to all databases, and create databases.

I have created a user using:

create user 'dev'@'%' identified by 'abcdefg';

then granted all permissions using:

GRANT ALL ON *.* to 'dev'@'192.168.%' IDENTIFIED BY 'abcdefg' WITH GRANT OPTION;

and the result is that the user cannot create databases, and can only see information_schema database for some reason.

Databases

Create database: Documentation
No Privileges

Database Ascending
information_schema
Total: 1

Does anyone know why this might be happening?

after you create user and grant it permissions, you need to flush privileges(when you are logged in with root user)

FLUSH PRIVILEGES;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM