Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of installing phpmyadmin by using composer in php

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how php installs phpmyadmin using composer. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Phpmyadmin is a mysql management tool suitable for beginners with a long history.

Now, using composer can be easily installed, step.

First of all, make sure that the local mysqli plug-in is installed.

Now, suppose my native web document root is

D:/workspace/t1/public

Then under cmd

Cd d:/workspace/t1/publiccomposer create-project phpmyadmin/phpmyadmin

At this point, I will install the latest (currently version 4.7.1) phpmyadmin on my computer.

Now, enter the directory

Make a copy of the config.sample.inc.php and name it config.inc.php

Then uncomment the following four lines and fill in the correct values.

$cfg ['Servers'] [$I] [' controlhost'] = '127.0.0.1'; / / the domain name $cfg ['Servers'] [$I] [' controlport'] =''; / / if the database is 3306, do not enter $cfg ['Servers'] [$I] [' controluser'] = 'root'; / / database user $cfg [' Servers'] [$I] ['controlpass'] =' root'; / / database password

This is already installed.

Open the browser and enter

Localhost/phpmyadmin/index.php [img] http://dl2.iteye.com/upload/attachment/0125/9853/d07a4a8e-35e9-3a9e-b928-4df37e236ce5.png[/img]

In the figure above, enter the database user name and database password to log in.

It doesn't matter if you always make the following mistakes. Forget it.

Mysqli_real_connect (): Headers and client library minor version mismatch. Headers:50541 Library:50634

How to shield this error:

Modify\ phpmyadmin\ libraries\ dbi\ DBIMysqli.php

/ / screen errors $err_level = error_reporting (0) in this abnormal way; $return_value = mysqli_real_connect ($link, $host, $user, $password,'', $server ['port'], $server [' socket'], $client_flags); error_reporting ($err_level)

Finally, in fact, access through web is convenient, but it is not safe, so it is only recommended to put it on the local machine. [B] cannot be placed on the production server [/ b].

Thank you for reading! This is the end of this article on "how php uses composer to install phpmyadmin". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report