Hello,

I am trying to connect to MySQL with the following

if (!mysql_real_connect(connection,server,user,password,database, 0, NULL,
0)) {
      printf("Conection error : %s\n", mysql_error(connection));
      exit(1);
    }

The code compiles with g++ and works fine.

It compiles with mpicxx as well but when run through pbs script

mpirun -np 1 -hostfile $PBS_NODEFILE mysqlconnect

I get a run time error

Conection error : Access denied for user 'someUser'@'node2' (using
password: YES)

I guess mysql itself adds the @ "node2" and my connection fails.

How can I prevent this, any suggestions?

thanks in advance

_alev
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users

Reply via email to