GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Errore 1130 Connessione a MySQL su Ubuntu Server 12.04?

Spero che questo sia il posto giusto per questo... Attualmente sto eseguendo Ubuntu Server 12.04 tramite VirtualBox su un host Windows 7. Sto provando a connettermi al motore MySQL della VM usando MyDB Studio per MySQL e quando inserisco le mie credenziali di accesso MySQL, mi restituisce il seguente errore:

Error 1130: Host '192.168.56.1' is not allowed to connect to this MySQL server

Sto eseguendo la macchina virtuale con l'adattatore 1 abilitato per NAT e l'adattatore 2 abilitato per l'adattatore solo host. eth0 10.0.2.15 e eth1 192.168.56.21 .

Posso connettermi ad Apache a 192.168.56.21 e tramite PhpMyAdmin, tutto funziona come dovrebbe. Ho modificato il /etc/mysql/my.cnf file e commentata la riga bind-address = 127.0.0.1 aggiungendo un # di fronte ad esso – ho pensato che questo avrebbe dovuto consentire connessioni remote.

Qualche idea su come posso risolvere questo? Cosa potrebbe esserci che non va?

MODIFICA: Sto cercando di connettermi come "root".

EDIT:RISOLTO!!

Risposta accettata:

Sul tuo server esegui mysql dalla riga di comando:

mysql -u root -p -h localhost -P 3306

Quindi esegui questo comando nella shell di MySQL:

>use mysql
>GRANT ALL ON *.* to [email protected]'%' IDENTIFIED BY 'pass';
>FLUSH PRIVILEGES;

Divertiti.


Ubuntu
  1. Ospita WordPress in Ubuntu 20.04, Mysql 8, Ubuntu 20.04, Nginx

  2. Come installare MySQL Server su Ubuntu 16.04

  3. Come installare MySQL Server su Ubuntu 17.04

  4. Come disinstallare completamente MySQL Server su Ubuntu

  5. Come installare MySQL su Ubuntu 16.04

Come installare MySQL 8.0 su Ubuntu 18.04

Come configurare l'ultimo MySQL su Ubuntu 20.04 LTS

Disinstalla completamente MySQL Server in Ubuntu

Come installare il server MySQL in Ubuntu

Errore durante l'installazione di Ubuntu Server 18.04:nome pool non valido?

Come installare MySQL Server su Ubuntu 20.04