phpmyadmin在centos 7中安装
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? ? 在網(wǎng)絡(luò)中下載,安裝包這里我們下載的是phpMyAdmin-4.4.15.10-all-languages.zip版本的。注意要與安裝的php的版本和mariadb版本相符合。
? ? 步驟2 ? ?unzip解壓縮之后,將其復(fù)制進入你設(shè)置的瀏覽器路徑中。這里我使用默認的/var/www/html/這個路徑。
為了方便升級,創(chuàng)建了一個鏈接ln -sv?phpMyAdmin-4.4.15.10-all-languages pma
????步驟3 ? ?cd pma中,然后修改config.example.inc.php的文件,把里面的$cfg['blowfish_secret'] =‘’在這里寫入一段自己生成的隨機數(shù)。用命令tr -a 'a-zA-Z0-9' < /dev/urandom ?| head -30 | md5sum
生成的隨機數(shù)加入其中。
????步驟4 ? 將config.example.inc.php改為config.inc.php
? ? 步驟5 ? 用網(wǎng)絡(luò)192.168.18.9/pma登陸這時候會出現(xiàn)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數(shù)據(jù)庫了。
本文轉(zhuǎn)自 神跡難覓 51CTO博客,原文鏈接:xxxhttp://blog.51cto.com/ji123/1952453xxxx,如需轉(zhuǎn)載請自行聯(lián)系原作者
總結(jié)
以上是生活随笔為你收集整理的phpmyadmin在centos 7中安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Eclipse/myeclipse中*.
- 下一篇: Linux / Windows应用方案不