phpmyadmin在centos 7中安裝

來源:互聯網
上載者:User

標籤:mysql

phpmyadmin簡介

    phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB. Frequently used operations (managing databases, tables, columns, relations, indexes, users, permissions, etc) can be performed via the user interface, while you still have the ability to directly execute any SQL statement.


    步驟1    在網路中下載,安裝包這裡我們下載的是phpMyAdmin-4.4.15.10-all-languages.zip版本的。注意要與安裝的php的版本和mariadb版本相符合。

    步驟2    unzip解壓縮之後,將其複製進入你設定的瀏覽器路徑中。這裡我使用預設的/var/www/html/這個路徑。

為了方便升級,建立了一個連結ln -sv phpMyAdmin-4.4.15.10-all-languages pma

    步驟3    cd pma中,然後修改config.example.inc.php的檔案,把裡面的$cfg[‘blowfish_secret‘] =‘’在這裡寫入一段自己產生的隨機數。用命令tr -a ‘a-zA-Z0-9‘ < /dev/urandom  | head -30 | md5sum

產生的隨機數加入其中。

    步驟4   將config.example.inc.php改為config.inc.php

    步驟5   用網路192.168.18.9/pma登陸這時候會出現The mbstring extension is missing. Please check your PHP configuration.的錯誤,這時候需要安裝一個php-mbstring的安裝包。

    步驟6   因為預設密碼不可為空白,所以在終端中鍵入mysql 進入mysql的命令列中,

   鍵入:MariaDB [(none)]> SET PASSWORD FOR ‘root‘@‘localhost‘=PASSWORD(‘150370992390kd‘);

             MariaDB [(none)]> FLUSH PRIVILEGES

              MariaDB [(none)]> exit

至此就可以用root使用者從web頁面登陸進行管理mysql資料庫了。

    

本文出自 “姑蘇城” 部落格,請務必保留此出處http://ji123.blog.51cto.com/11333309/1952453

phpmyadmin在centos 7中安裝

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.