I have a program on Linux that runs quietly on a virtual machine with Ubuntu 14 and MySQL 5.5 . However, when you try to migrate to Ubuntu 18 and MySQL 5.7 , the program displays this message:
Can not connect to local MySQL server through socket '' (111).
Everything has been done correctly: I install mysql-server
and mysql-client
with apt-get . I restart services, but it still does not work.
The funniest thing is that it works if I create a totally VM with Ubuntu 14 , install the programs and MySQL Server . However if I do the same process that worked in Ubuntu with the old version, giving the same apt-get install ( mysql-server e mysql-client )
, the program does not work on the newest
Note: The same thing happens with mariaDB