標籤: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中安裝