Bug connecting to MariaDB (MySQL?) from console application
Posted: Tue 26 Apr 2022 18:25
Made a simple application with just a form and a button wich connects to a MariaDB DB and does some simple stuff, all fine
The credentials, DB name, user, password and stuff is all hardcoded as const strings (for now)
The application must be a console one; no big deal: new .dpr/proj file with apptype console and dew moew
But now it fails the connection to the MariaDB, with this message:
... (EUniError): "#42000Access denied for user 'HereTheTestUserName'@'%' to database 'TheDatabaseName"
Notice where it indicates the user name: it's not 'username'@'computername.or.whatever' but instead is 'username'@'%'.
Going back to the GUI app, I change the username to a wrong name, and it will complain with a message as 'wrongusername'@'thiscomputer'
The same action on the console name says 'wrongusername'@'%' without any computername, just the % sign
Please, help: this app must be commandline, and I can't deliver it
The credentials, DB name, user, password and stuff is all hardcoded as const strings (for now)
The application must be a console one; no big deal: new .dpr/proj file with apptype console and dew moew
But now it fails the connection to the MariaDB, with this message:
... (EUniError): "#42000Access denied for user 'HereTheTestUserName'@'%' to database 'TheDatabaseName"
Notice where it indicates the user name: it's not 'username'@'computername.or.whatever' but instead is 'username'@'%'.
Going back to the GUI app, I change the username to a wrong name, and it will complain with a message as 'wrongusername'@'thiscomputer'
The same action on the console name says 'wrongusername'@'%' without any computername, just the % sign
Please, help: this app must be commandline, and I can't deliver it