tomolimo / processmaker

GLPI plugin that provides an interface with ProcessMaker (http://www.processmaker.com/)
30 stars 11 forks source link

Can't connect to SQL server #60

Closed BlackxRyan closed 6 years ago

BlackxRyan commented 6 years ago

Hi tomolino.

I'm now trying to work on the society domain with two separate virtual machines :

172.17.255.2 : pm.1fogenie.fr 172.17.255.138 : glpitest.1fogenie.fr

These two domain names are registered in the DNS server.

The processmaker setup is ok :

image

But I can't connect to the SQL server and I'm sure the logins are the correct ones.

image

The database is named wf_workflow :

image

And my user has all privileges :

image

tomolimo commented 6 years ago

Hello @BlackxRyan

Where is the mysql server? On the GLPI machine or on the PM machine?

Regards, Tomolimo

BlackxRyan commented 6 years ago

The one with "wf_workflow" ? On PM machine.

tomolimo commented 6 years ago

the one which hosts PM DB. and the 'SQL server' must contains the server name of the server hosting the PM DB

BlackxRyan commented 6 years ago

It's the PM machine.

tomolimo commented 6 years ago

then don't use localhost, but pm.1fogenie.fr

tomolimo commented 6 years ago

but beware that the 'SQL user' account must have the remote access privilege.

BlackxRyan commented 6 years ago

Where can I check that ?

tomolimo commented 6 years ago

in PHPmyadmin

tomolimo commented 6 years ago

Seems like your root user has only the localhost access, and not the remote '%'

tomolimo commented 6 years ago

or any host that is valid. In your case, you may use glpitest.1fogenie.fr

BlackxRyan commented 6 years ago

Here are the users :

image

tomolimo commented 6 years ago

then you may use the root as it has the % and also the glpitest.1fognie.fr in its client field. Note: that only one of both is necessary.

tomolimo commented 6 years ago

ah, sorry I didn't see the Grant: 'non' for 'glpitest....' so anyway the root has the client % so there is no restriction to use it from glpi server.

BlackxRyan commented 6 years ago

It just updated

image

So what do I put in the SQL server field ?

image

tomolimo commented 6 years ago

pm.1fogenie.fr wf_workflow root root password

BlackxRyan commented 6 years ago

Still not works

image

And it takes a while to load.

tomolimo commented 6 years ago

try with IP address instead of pm.1fogenie.fr

BlackxRyan commented 6 years ago

Doesn't work too.

tomolimo commented 6 years ago

Could it be possible that something prevents network traffic from glpitest.1fogenie.fr to pm.1fogenie.fr?

BlackxRyan commented 6 years ago

Each machine can ping the other, and the PM configuration worked...

Is it using a particular port ?

tomolimo commented 6 years ago

Default mysql port is 3306. By the way did you activate network interface in mysql configuration?

tomolimo commented 6 years ago

I think the network interface of mysql is not active. Due to the fact that by default it is using pipes for localhost communications

BlackxRyan commented 6 years ago

Solved, I used what was told here : https://stackoverflow.com/a/14779244/9590095

I used the IP address for MySQL configuration (and created a user pm too).

image

It works correctly now.

image

Thanks for your help

tomolimo commented 6 years ago

you're welcome