php - Is the database created in MySQL with terminal different from the database that show in the PhpMyAdmin? -
i sorry if question sounds bit stupid because new php , mysql. so, please bare me.
i have created database in mysql terminal, , tried find in phpmyadmin couldn't find it. question is, 2 databases different each other or did wrong why didn't show up?
any advice appreciated.
phpmyadmin web gui acts client interacting mysql server. in terminal, access server using mysql
command-line client, , create database on server.
now, both of these clients can configured use mysql server can access on network. command-line client defaults connecting 127.0.0.1
on port 3306
(or /var/run/mysql.sock that's unimportant in case). in phpmyadmin,config.php
defines server connect to. don't remember defaults, servers configured via $cfg['servers']
. this document explains configuration. so, should able @ config.php
, determine whether or not you're connecting 127.0.0.1
port 3306.
another possible reason might not see db in phpmyadmin if only_db
set in config.php
. $cfg['servers'][$i]['only_db']
.
also ensure created database , shows in show databases;
in mysql
command-line client.
Comments
Post a Comment