Can't add user with password with phpmyadmin - sql

I'm using easyPHP Devserver 16.1.
I tried to add a new user with a password on phpmyadmin, but even if i put a password, when i check the users, there isn't any.
my screenshot
I tried to change my password for root, change it also in my config.inc.php but then i couldn't view my users and database anymore so i reinstalled easyphp.
Now my question is why can i not create a user with a password on phpMyadmin ?
When i create a new user with a password here is my sql request :
CREATE USER 'test'#'localhost' IDENTIFIED WITH mysql_native_password AS '***';GRANT ALL PRIVILEGES ON *.* TO 'test'#'localhost' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
Sorry for my bad english :/
EDIT :
So I copy and paste in the command line client and i made a mistake :
CREATE USER 'isaac'#'localhost' IDENTIFIED WITH mysql_native_password AS 'isaac';GRANT ALL PRIVILEGES ON *.* TO 'test'#'localhost' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
i didn't change "GRANT ALL PRIVILEGES ON . TO 'test'#'localhost'" so i had this error message :
#1524 - Plugin '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29' is not loaded.
Then i corrected my mistake :
CREATE USER 'isaac'#'localhost' IDENTIFIED WITH mysql_native_password AS 'isaac'; GRANT ALL PRIVILEGES ON *.* TO 'isaac'#'localhost' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
and i have this error :
#1396 - Operation CREATE USER failed for 'isaac'#'localhost'

Related

How do I authenticate against ldap.google.com?

I was able to connect ldaps://ldap.google.com using the downloaded cert.
I'm trying to do the user authentication against it, always failed
My settings, we are using GSuite Business plus planning.
The connection url: ldaps://ldap.google.com
edit mode: read only
users DN: dc=xxxx,dc=xx (no filter applied)
search scope: subtree
Bind type:
When I set it to ‘none’ I get error: “error during sync of users” in server log:
error code 50: insufficient access rights
Uncaught server error: LDAP query failed.
When I enter a user:
User + #domain = LDAP: error 50 - Not authorized to authenticate password
User without #domain = error 49 - Incorrect password
User in DN = uid or cn=xxxx, ou=xxxx - error 50 - Not authorized to authenticate password
Anything I'm missing? or google ldap don't allow it?

Connecting my jhipster project to postgresSql

I'm trying to connect my jhipster project with postgresql but I'm getting an error about the password.
Here is the error I'm getting
HHH000342: Could not obtain connection to query metadata : FATAL: password authentication failed for user "fabrice"
I have seen in pgadmin and the password is correct and so is the username .
My application-dev.yml
datasource:
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:postgresql://localhost:5432/fabrice
username: fabrice
password: postgres
hikari:
poolName: Hikari
auto-commit: false
This is the postgres users photos:
I think this was what you wanted :
CREATE ROLE fabrice WITH
LOGIN
NOSUPERUSER
INHERIT
NOCREATEDB
NOCREATEROLE
NOREPLICATION
ENCRYPTED PASSWORD 'md576436d4007f2e5338a99e5a76181a7a4';
The problem was the port used by postgreSql it was 5433 instead of 5432 .So for the others persons you may check the port used by postgresql

unable to import .sql file in workbench

I am trying to import .sql file in workbench but its showing error
Preparing...
Importing iqip.sql...
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
Please give access to host.
INSERT INTO mysql.user (Host, User, Password) VALUES ('%', 'root', password('YOURPASSWORD'));
GRANT ALL ON *.* TO 'root'#'%' WITH GRANT OPTION;

openerp 7.0 create a jasper report that time error dispaly

I am create jasper report module than after create a report in opener 7.0 than this error display
Report Error
Failed to invoke method execute in class com.nantic.jasperreports.JasperServer: FATAL: password authentication failed for user "gopal"
You should check your .conf, in my case openerp-server.conf, and check if there is something wrong on field db_password. This fields contains your openerp user's password to access your database. In my case my .conf looks like this:
[options]
; This is the password that allows database operations:
admin_passwd = myPass
db_host = false
db_port = false
db_user = openerp
db_password = 1234
addons_path = my_path/dev_core/addons, my_path/dev_core/my_modules
At the beginning I didn't set a password to my user openerp so my db_password was false and when I started working with jasper report I had to set a password to it, if it is your case you can set a password like this:
su root
su postgres
psql
postgres=# alter user openerp password '1234';

LDAP users not able to change their password using passwd command

I have a basic LDAP setup without SSL configured. Users are able to login but not able to change their password using passwd command. I have gone though many blogs but no luck. I have disabled selinux and iptables.
Any help on this will be much appreciated.
Details below,
OS: CentOS6.5
LDAP version: openldap-servers-2.4.23-34.el6_5.1.x86_64
Client version: openldap-clients-2.4.23-34.el6_5.1.x86_64
Output from the terminal when trying to change the password:
[servername ~]$ passwd
Changing password for user dkrishna.
Enter login(LDAP) password:
New password:
Retype new password:
LDAP password information update failed: Insufficient access
passwd: Authentication token manipulation error
Below are the logs,
==> /var/log/secure <==
Oct 8 09:31:33 passwd: pam_unix(passwd:chauthtok): user "dkrishna" does not exist in /etc/passwd
Oct 8 09:31:42 passwd: pam_unix(passwd:chauthtok): user "dkrishna" does not exist in /etc/passwd
==> /var/log/messages <==
Oct 8 09:31:42 passwd: pam_ldap: ldap_modify_s Insufficient access
ACL's configured as below,
database config
access to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
by * none
database monitor
access to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
by dn.exact="cn=admin,dc=tibbr,dc=com" read
by * none
access to attrs=userPassword
by self write
by anonymous auth
by users none
access to * by * read
I found the solution:
Add the following two lines to the end of the file: oclDatabase\=\{2\}bdb.ldif
olcAccess: {0}to attrs=userPassword by self write by dn.base="cn=Manager,dc=domain,dc=com" write by anonymous auth by * none
olcAccess: {1}to * by dn.base="cn=Manager,dc=domain,dc=com" write by self write by * read
bye
Looks like slapd.conf is deprecated when OCL database is configured.
Observe the following snippet from OCL configuration guide:
"From the time you have run the conversion the slapd.conf file is redundant. When loading slapd looks for the configuration directory (default slapd.d) and reads its configuration files from there and initializes the OLC (cn=config) DIT. If the slapd.d directory is not found then slapd looks for slapd.conf."