简体   繁体   English

如何将新版本的phpmyadmin安装到服务器?

[英]how to install new version of phpmyadmin to a server?

Built-in phpmyadmin on control panel of my domain is old version so I wanted to change it to new one. 我域的控制面板上的内置phpmyadmin是旧版本,因此我想将其更改为新版本。 I uploaded new version of phpmyadmin through ftp (folder: mydomain.com/phpmyadmin). 我通过ftp上传了新版本的phpmyadmin(文件夹:mydomain.com/phpmyadmin)。 Previously, I changed config.sample.inc.php to config.inc.php and added random string value in field $cfg['blowfish_secret']. 以前,我将config.sample.inc.php更改为config.inc.php,并在字段$ cfg ['blowfish_secret']中添加了随机字符串值。 Now, I cannot login in phpmyadmin and I cannot find which username to use(tried 'root',admin etc...). 现在,我无法登录phpmyadmin,也找不到要使用的用户名(尝试“ root”,admin等)。 Whatever I enter in login form i receive error message "Cannot log in to the MySQL server". 无论我以登录形式输入什么,我都会收到错误消息“无法登录到MySQL服务器”。

I know that It is a problem between phpmyadmin and MySQL, and I don't know what to do next? 我知道phpmyadmin和MySQL之间存在问题,我不知道下一步该怎么做?

To upgrade phpmyadmin, you have to conduct 6 steps: 要升级phpmyadmin,您必须执行6个步骤:

  • find your version 找到你的版本
  • find your phpmyadmin directory 找到您的phpmyadmin目录
  • copy your configuration file 复制您的配置文件
  • download the newest version of phpmyadmin 下载最新版本的phpmyadmin
  • put the new files in place 放置新文件
  • add your config file 添加您的配置文件

Source . 来源

If you have the config file, then you can solve your problem by following the steps. 如果您有配置文件,则可以按照以下步骤解决您的问题。 If you no longer have the config file, then you need to create a config file. 如果不再有配置文件,则需要创建一个配置文件。 To do that, read this . 为此,请阅读

Besides the secret key, you will have to make sure that the root username and password are entered into your config.inc.php, by default the codings are not there, you have to add them in manually, please refer to below URL (last step) for the code. 除了密钥之外,您还必须确保将根用户名和密码输入到config.inc.php中。默认情况下,编码不存在,您必须手动添加它们,请参阅下面的URL(最后步骤)获取代码。 This apply to both linux and windows server. 这适用于linux和Windows服务器。

http://boxtutor.com/how-to-install-phpmyadmin-in-linux-servers/ http://boxtutor.com/how-to-install-phpmyadmin-in-linux-servers/

Whatever I enter in login form i receive error message "Cannot log in to the MySQL server". 无论我以登录形式输入什么,我都会收到错误消息“无法登录到MySQL服务器”。

Which is almost certainly caused by 几乎可以肯定是由

I cannot find which username to use(tried 'root',admin etc...). 我找不到要使用的用户名(尝试过“ root”,admin等)。

You'll need to find your username and password to log in. If you're not sure, ask your hosting provider for assistance with this. 您需要找到用户名和密码才能登录。如果不确定,请向您的托管服务提供商寻求帮助。 It's not something we can help you figure out since it's your login information. 由于这是您的登录信息,因此我们无法帮助您解决问题。

Once you find those, you should be able to enter them directly in the phpMyAdmin login box (provided that you haven't changed the auth_type from the default of 'cookie', which is what I use). 找到这些文件后,您应该可以直接在phpMyAdmin登录框中输入它们(前提是您没有将auth_type更改为默认值“ cookie”,这是我使用的)。

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

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