I’ve got a little problem with my database permissions. I created a user with literally no rights to test a database class I’m writing on my local machine. So now if I try to change the charset on an existing database via ‘ALTER DATABASE’ I just get an empty result and the character set is changed. No error for missing permissions. However, if I try the same thing on a not existing database I get as expected the missing permission error. I also tried the same thing for the ‘CREATE DATABASE’ statement and for this, it gives me an error for my user. So what I’m doing wrong? Did anyone get a solution for this?
Database system:
- Server: 127.0.0.1 via TCP/IP
- Server-Typ: MariaDB
- Server-Verbindung: SSL wird nicht verwendet
- Dokumentation Server-Version: 10.4.17-MariaDB – mariadb.org binary distribution
- Protokoll-Version: 10
Connection via PHP file with mysqli.
2
Answers
If you create a user with no permissions and you still get access then
IT IS the database which allows ALL users to apply changes.
Check your database configuratio.
You can also give us further data to help you configure it.
The problem is not reproducable: