Benutzerspezifische Werkzeuge
Sie sind hier: Startseite / GNU / Linux / Datenbanken / phpMyAdmin auf Remote Host

phpMyAdmin auf Remote Host

Will man mit phpMyAdmin auf einen MySQL-Server zugreifen ist das lokal kein Problem. Liegt die Datenbank allerdings auf einem anderen Server, muss man ein wenig was tun!

/etc/mysql/my.cnf

bind-address = 0.0.0.0
$ service mysql restart

 

$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 61
Server version: 5.5.41-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select host,user from user; +-----------+------------------+ | host      | user             | +-----------+------------------+ | 127.0.0.1 | root             | | ::1       | root             | | localhost | debian-sys-maint | | localhost | root             | | mysql     | root             | +-----------+------------------+ 6 rows in set (0.00 sec) mysql> update user set host='%' where user='root' and host='mysql'; Query OK, 1 row affected (0.01 sec) Rows matched: 1  Changed: 1  Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.01 sec)
mysql> exit