简体   繁体   English

mysql服务器和phpmyadmin之间混乱

[英]Mess up between mysql server and phpmyadmin

After I installed XAMP on my ubuntu 12.10 it was working fine with mysql. 在ubuntu 12.10上安装XAMP后,它在mysql上运行正常。

I could start mysql- sudo mysql -uroot -p . 我可以启动mysql- sudo mysql -uroot -p I connet it using 127.0.0.1:3306 我使用127.0.0.1:3306其连接

Recently I installed phpmyadmin. 最近我安装了phpmyadmin。 When I start it it shows access denied. 当我启动它时,它显示访问被拒绝。 I got solution from web: 我从网上得到了解决方案:

sudo /etc/init.d/apache2 stop
sudo /etc/init.d/mysql stop
sudo /etc/init.d/proftpd stop
sudo /opt/lampp/lampp start

Now I start php myadmin it starts but now I could not connect with mysql on terminal. 现在我启动php myadmin,它启动了,但是现在我无法在终端上连接mysql。

Additionally phpmyadmin database does not shows all existing databse on mysql. 另外,phpmyadmin数据库不会在mysql上显示所有现有的数据库。

CAn anyone tell me what's going on here? 有人可以告诉我这是怎么回事吗?

This question may help to connect through Terminal. 这个问题可能有助于通过终端连接。

How to use phpmyadmin mysql database using terminal in ubuntu 10.4? 如何在Ubuntu 10.4中使用终端使用phpmyadmin mysql数据库?

The Below command used to access phpmyadmin mysql database though terminal 以下命令用于通过终端访问phpmyadmin mysql数据库

/opt/lampp/bin/mysql -uusername -ppassword

phpmyadmin contains database files in /opt/lampp/var/mysql location. phpmyadmin在/ opt / lampp / var / mysql位置包含数据库文件。 Your old mysql server may contains the database files in different location. 您的旧mysql服务器可能在不同位置包含数据库文件。 That's y you unable to get the database list. 是的,您无法获取数据库列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM