Could not connect to host '192.168.1.3'.
MySQL Error Nr. 2003
Can't connect to MySQL server on '192.168.1.3' (113)
Click the 'Ping' button to see if there is a networking problem.
Cannot open database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
grant all on gestione.* to oper2@192.168.1.12 identifield by 'passw';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'identifield by passw' at line 1
grant all on gestione.* to oper2@192.168.1.12 identified by 'passw';Cannot open database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
sudo gedit /etc/mysql/my.cnfmi crea molti problemi in quanto l'ip del pc server cambia in continuazione e stramamente si sovrappone al pc client e quest'ultimo non si connette nemmeno ad internet.
dunque cercare al suo interno una riga simile alla seguente:
bind_address = 127.0.0.1
I modem di Alice sono rotture di scatole. Non mi ricordo se permettono di accedere alle configurazioni interne.
Io tempo fa risolsi restituendo il modem a Telecom e comprandomi un router mio.
In questo modo assegni un IP statico ad ogni MAC sulla rete, così che ogni PC abbia sempre lo stesso indirizzo.
bind_address = 192.168.0.1 (l'indirizzo ip del server)lo riavvii
sudo mysql -u root -p
mysql> grant all on miodatabase.* to antonio@192.168.0.2 identified byPoi nel pc client "B", che devi aver installato mysql client (oppure anche mysql server è lo stesso)
'passworddelclient';
SERVER HOSTNAME = 192.168.0.1Se non va penso ci sia qualcosa in mysql che non funziona..non so che dirti
USERNAME =antonio
PASSWORD=”passworddelclient”
PORT=3306
entri così:Se non va penso ci sia qualcosa in mysql che non funziona..non so che dirti
SERVER HOSTNAME = 192.168.0.1
USERNAME =antonio
PASSWORD=”passworddelclient”
PORT=3306
Cannot open database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Lo collego sia con admin che con il mio programma.
Se con admin vedi il database dovrebbe funzionare, non capisco perchè con il programma non dovrebbe andare :-\