网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

安装MariaDBphpMyAdmin

1 安装设置MariaDB5.5

堆龙德庆网站建设公司创新互联建站,堆龙德庆网站设计制作,有大型网站制作公司丰富经验。已为堆龙德庆1000多家提供企业网站建设服务。企业网站搭建\成都外贸网站制作要多少钱,请找那个售后服务好的堆龙德庆做网站的公司定做!

[root@MySQL ~]# yum -y install mariadb-server

[root@mysql ~]# vi /etc/my.cnf
[mysqld]

character-set-server=utf8

[root@mysql ~]# systemctl enable  mariadb.service
[root@mysql ~]# systemctl start  mariadb.service

[root@mysql ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

2 安装设置httpd

[root@mysql ~]# yum -y install httpd

[root@mysql ~]# rm -f /etc/httpd/conf.d/welcome.conf
[root@mysql ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@mysql ~]# systemctl start httpd
[root@mysql ~]# vi /var/www/html/index.html




Test Page


直接访问网页

安装MariaDB phpMyAdmin

3 安装设置PHP

[root@mysql ~]#  yum -y install php php-mbstring php-pear

[root@mysql ~]# vi /etc/php.ini
date.timezone ="Asia/ShangHai"

[root@mysql ~]# systemctl restart httpd

[root@mysql ~]# vi /var/www/html/index.php





安装MariaDB phpMyAdmin

4 安装设置phpMyAdmin

[root@mysql ~]# yum --enablerepo=epel -y install phpMyAdmin php-mysql php-mcrypt

[root@mysql ~]# vi /etc/httpd/conf.d/phpMyAdmin.conf


     15      # Apache 2.4
     16     
     17        Require ip 127.0.0.1 9.110.187.100/24
     18        Require ip ::1
     19     

     20   

     21   
     22      # Apache 2.2
     23      Order Deny,Allow
     24      Deny from All
     25      Allow from 127.0.0.1
     26      Allow from ::1
     27   

     28
     29
     30
     31   
     32      # Apache 2.4
     33     
     34        Require ip 127.0.0.1 9.110.187.100/24
     35        Require ip ::1
     36     

     37   

安装MariaDB phpMyAdmin

[root@mysql ~]# systemctl restart httpd

安装MariaDB phpMyAdmin

安装MariaDB phpMyAdmin


标题名称:安装MariaDBphpMyAdmin
标题链接:http://bjjierui.cn/article/jgigee.html

其他资讯