码迷,mamicode.com
首页 > Web开发 > 详细

phpmyadmin在centos 7中安装

时间:2017-07-31 22:13:29      阅读:227      评论:0      收藏:0      [点我收藏+]

标签: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中安装

标签:mysql

原文地址:http://ji123.blog.51cto.com/11333309/1952453

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!